ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/DataBase.h
Revision: 1.2
Committed: Tue Dec 9 17:46:59 2008 UTC (16 years, 4 months ago) by loizides
Content type: text/plain
Branch: MAIN
Changes since 1.1: +3 -1 lines
Log Message:
Added ObjType to retrieve type of object.

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.2 // $Id: DataBase.h,v 1.1 2008/12/02 09:30:11 loizides Exp $
3 loizides 1.1 //
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 loizides 1.2 #include "MitAna/DataTree/interface/ObjTypes.h"
16 loizides 1.1 #include <TObject.h>
17    
18     namespace mithep
19     {
20     class DataBase : public TObject
21     {
22     public:
23     DataBase() {}
24     ~DataBase() {}
25    
26     Bool_t IsCached() const { return TestBit(23); }
27     Bool_t MustClear() const { return TestBit(14); }
28     Bool_t MustDelete() const { return TestBit(15); }
29 loizides 1.2 virtual EObjType ObjType() const { return kDataBase; }
30 loizides 1.1
31     protected:
32     void ResetCacheBit() { SetBit(23,0); }
33     void SetCacheBit() { SetBit(23); }
34     void SetClearBit() { SetBit(14); }
35     void SetDeleteBit() { SetBit(15); }
36    
37     ClassDef(DataBase, 1)
38     };
39     }
40     #endif