1 |
bendavid |
1.1 |
// $Id: ProcIDRef.cc,v 1.2 2008/11/20 17:49:16 loizides 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.
|
11 |
|
|
// Nothing is actually read or written from/to the buffer
|
12 |
|
|
// but the bool is set to false in the read part of the streamer to guarantee this default value
|
13 |
|
|
// is set even when an object containing the CacheFlag is read into a TClonesArray
|
14 |
|
|
|
15 |
|
|
if (b.IsReading()) {
|
16 |
|
|
fIsValid = kFALSE;
|
17 |
|
|
} else { /*writing (do nothing in this case) */
|
18 |
|
|
;
|
19 |
|
|
}
|
20 |
|
|
}
|