1 |
// $Id: CacheFlag.cc,v 1.1 2009/02/17 15:52:52 bendavid Exp $
|
2 |
|
3 |
#include "MitAna/DataTree/interface/CacheFlag.h"
|
4 |
|
5 |
ClassImp(mithep::CacheFlag)
|
6 |
|
7 |
//--------------------------------------------------------------------------------------------------
|
8 |
void mithep::CacheFlag::Streamer(TBuffer &b)
|
9 |
{
|
10 |
// Custom streamer for the cache flag. Nothing is actually read or written from/to the buffer,
|
11 |
// but the cache flag is set to false in the read part of the streamer. This guarantees the
|
12 |
// default value is set even when an object containing the CacheFlag is read into a TClonesArray.
|
13 |
|
14 |
if (b.IsReading())
|
15 |
fIsValid = kFALSE;
|
16 |
}
|