1 |
loizides |
1.3 |
// $Id: CacheFlag.cc,v 1.2 2009/02/18 15:38:55 loizides Exp $
|
2 |
bendavid |
1.1 |
|
3 |
|
|
#include "MitAna/DataTree/interface/CacheFlag.h"
|
4 |
|
|
|
5 |
|
|
ClassImp(mithep::CacheFlag)
|
6 |
|
|
|
7 |
|
|
//--------------------------------------------------------------------------------------------------
|
8 |
|
|
void mithep::CacheFlag::Streamer(TBuffer &b)
|
9 |
|
|
{
|
10 |
loizides |
1.2 |
// 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 |
bendavid |
1.1 |
|
14 |
loizides |
1.2 |
if (b.IsReading())
|
15 |
bendavid |
1.1 |
fIsValid = kFALSE;
|
16 |
|
|
}
|