ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/src/CacheFlag.cc
Revision: 1.1
Committed: Tue Feb 17 15:52:52 2009 UTC (16 years, 2 months ago) by bendavid
Content type: text/plain
Branch: MAIN
Log Message:
Added CacheFlag

File Contents

# User Rev Content
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     }