Revision: | 1.2 |
Committed: | Wed Mar 28 12:15:33 2012 UTC (13 years, 1 month ago) by paus |
Content type: | text/plain |
Branch: | MAIN |
CVS Tags: | Mit_032, Mit_031, Mit_030, Mit_029c, Mit_029b, Mit_030_pre1, Mit_029a, Mit_029, Mit_029_pre1, Mit_028a, Mit_028, Mit_027a, Mit_027, Mit_026, Mit_025e, HEAD |
Changes since 1.1: | +3 -3 lines |
Log Message: | Enable skimming. |
# | User | Rev | Content |
---|---|---|---|
1 | loizides | 1.1 | //-------------------------------------------------------------------------------------------------- |
2 | paus | 1.2 | // $Id: CacheFlag.h,v 1.1 2009/03/08 12:08:31 loizides Exp $ |
3 | loizides | 1.1 | // |
4 | // CacheFlag | ||
5 | // | ||
6 | paus | 1.2 | // Container for a transient Bool_t which is set by the reading streamer to kFALSE. This meant to |
7 | // be used as a cache valid flag for transient cached quantities. | ||
8 | loizides | 1.1 | // |
9 | // Authors: J.Bendavid | ||
10 | //-------------------------------------------------------------------------------------------------- | ||
11 | |||
12 | #ifndef MITANA_DATACONT_CACHEFLAG_H | ||
13 | #define MITANA_DATACONT_CACHEFLAG_H | ||
14 | |||
15 | #include "MitAna/DataCont/interface/Types.h" | ||
16 | |||
17 | namespace mithep | ||
18 | { | ||
19 | class CacheFlag | ||
20 | { | ||
21 | public: | ||
22 | CacheFlag() : fIsValid(kFALSE) {} | ||
23 | |||
24 | void ClearCache() { fIsValid = kFALSE; } | ||
25 | Bool_t IsValid() const { return fIsValid; } | ||
26 | void SetValid(Bool_t v = kTRUE) { fIsValid = v; } | ||
27 | |||
28 | protected: | ||
29 | Bool_t fIsValid; //!flag whether cache is valid | ||
30 | |||
31 | ClassDef(CacheFlag, 1) // Implementation of a transient Bool_t container | ||
32 | }; | ||
33 | } | ||
34 | #endif |