ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/DataBase.h
Revision: 1.1
Committed: Tue Dec 2 09:30:11 2008 UTC (16 years, 5 months ago) by loizides
Content type: text/plain
Branch: MAIN
Log Message:
Added DataBase for objects that do not need to the TObjects bits.

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2     // $Id: DataBase.h,v 1.14 2008/09/17 04:21:16 loizides Exp $
3     //
4     // DataBase
5     //
6     // This is the common base class for all objects in the tree that do not require the TObject
7     // bits to be written out (as opposed to DataObject).
8     //
9     // Authors: C.Loizides, J.Bendavid
10     //--------------------------------------------------------------------------------------------------
11    
12     #ifndef MITANA_DATATREE_DATABASE_H
13     #define MITANA_DATATREE_DATABASE_H
14    
15     #include <TObject.h>
16    
17     namespace mithep
18     {
19     class DataBase : public TObject
20     {
21     public:
22     DataBase() {}
23     ~DataBase() {}
24    
25     Bool_t IsCached() const { return TestBit(23); }
26     Bool_t MustClear() const { return TestBit(14); }
27     Bool_t MustDelete() const { return TestBit(15); }
28    
29     protected:
30     void ResetCacheBit() { SetBit(23,0); }
31     void SetCacheBit() { SetBit(23); }
32     void SetClearBit() { SetBit(14); }
33     void SetDeleteBit() { SetBit(15); }
34    
35     ClassDef(DataBase, 1)
36     };
37     }
38     #endif