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

# Content
1 //--------------------------------------------------------------------------------------------------
2 // $Id: CacheFlag.h,v 1.1 2009/02/17 15:52:51 bendavid Exp $
3 //
4 // CacheFlag
5 //
6 // Container for a transient Bool_t which is set by the reading streamer to kFALSE.
7 // 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 class CacheFlag
21 {
22 public:
23 CacheFlag() : fIsValid(kFALSE) {}
24
25 void ClearCache() { fIsValid = kFALSE; }
26 Bool_t IsValid() const { return fIsValid; }
27 void SetValid(Bool_t v = kTRUE) { fIsValid = v; }
28
29 protected:
30 Bool_t fIsValid; //!flag whether cache is valid
31
32 ClassDef(CacheFlag, 1) // Implementation of a transient Bool_t container
33 };
34 }
35 #endif