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

File Contents

# User Rev Content
1 bendavid 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.2 // $Id: CacheFlag.h,v 1.1 2009/02/17 15:52:51 bendavid Exp $
3 bendavid 1.1 //
4     // CacheFlag
5     //
6 loizides 1.2 // Container for a transient Bool_t which is set by the reading streamer to kFALSE.
7 bendavid 1.1 // This meant to be used as a cache valid flag for transient cached quantities.
8     //
9     // Authors: J.Bendavid
10     //--------------------------------------------------------------------------------------------------
11    
12     #ifndef MITANA_DATATREE_CACHEFLAG
13     #define MITANA_DATATREE_CACHEFLAG
14    
15     #include <TObject.h>
16     #include "MitAna/DataTree/interface/Types.h"
17    
18     namespace mithep
19     {
20 loizides 1.2 class CacheFlag
21 bendavid 1.1 {
22     public:
23 loizides 1.2 CacheFlag() : fIsValid(kFALSE) {}
24 bendavid 1.1
25 loizides 1.2 void ClearCache() { fIsValid = kFALSE; }
26 bendavid 1.1 Bool_t IsValid() const { return fIsValid; }
27 loizides 1.2 void SetValid(Bool_t v = kTRUE) { fIsValid = v; }
28 bendavid 1.1
29     protected:
30 loizides 1.2 Bool_t fIsValid; //!flag whether cache is valid
31 bendavid 1.1
32 loizides 1.2 ClassDef(CacheFlag, 1) // Implementation of a transient Bool_t container
33 bendavid 1.1 };
34     }
35     #endif