ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/src/CacheFlag.cc
Revision: 1.2
Committed: Wed Feb 18 15:38:55 2009 UTC (16 years, 2 months ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_008pre1
Changes since 1.1: +5 -9 lines
Log Message:
Reworked particle interface to cache FourVectorM

File Contents

# User Rev Content
1 loizides 1.2 // $Id: CacheFlag.cc,v 1.1 2009/02/17 15:52:52 bendavid 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     }