Revision: | 1.1 |
Committed: | Sun Mar 8 12:08:31 2009 UTC (16 years, 1 month ago) by loizides |
Content type: | text/plain |
Branch: | MAIN |
CVS Tags: | Mit_025c_branch2, Mit_025c_branch1, Mit_025c_branch0, Mit_025d, Mit_025c, Mit_025b, Mit_025a, Mit_025, Mit_025pre2, Mit_024b, Mit_025pre1, Mit_024a, Mit_024, Mit_023, Mit_022a, Mit_022, Mit_020d, TMit_020d, Mit_020c, Mit_021, Mit_021pre2, Mit_021pre1, Mit_020b, Mit_020a, Mit_020, Mit_020pre1, Mit_018, Mit_017, Mit_017pre3, Mit_017pre2, Mit_017pre1, Mit_016, Mit_015b, Mit_015a, Mit_015, Mit_014e, Mit_014d, Mit_014c, Mit_014b, Mit_014a, Mit_014, Mit_014pre3, Mit_014pre2, Mit_014pre1, Mit_013d, Mit_013c, Mit_013b, Mit_013a, Mit_013, Mit_013pre1, Mit_012i, Mit_012h, Mit_012g, Mit_012f, Mit_012e, Mit_012d, Mit_012c, Mit_012b, Mit_012a, Mit_012, Mit_011a, Mit_011, Mit_010a, Mit_010, Mit_009c, Mit_009b, Mit_009a, Mit_009, Mit_008, Mit_008pre2 |
Branch point for: | Mit_025c_branch |
Log Message: | Added BitMask and CacheFlag. Also have type-based BitMaskT for 8, 16, 32 and 64 bit masks. Use more generic BitMask with char ptr for every other case. Solves weird ROOT problem with re-skimming. |
# | User | Rev | Content |
---|---|---|---|
1 | loizides | 1.1 | //-------------------------------------------------------------------------------------------------- |
2 | // $Id: CacheFlag.h,v 1.3 2009/03/07 08:31:04 loizides 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_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 |