ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/DataBase.h
Revision: 1.5
Committed: Tue Mar 3 17:04:09 2009 UTC (16 years, 2 months ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_009c, Mit_009b, Mit_009a, Mit_009, Mit_008, Mit_008pre2, Mit_008pre1
Changes since 1.4: +5 -5 lines
Log Message:
Cleanup and double32.

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.5 // $Id: DataBase.h,v 1.4 2009/02/18 15:38:54 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    
25 loizides 1.3 Bool_t Is(EObjType t) const { return (ObjType()==t); }
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     virtual EObjType ObjType() const { return kDataBase; }
30 loizides 1.1
31     protected:
32 loizides 1.5 void ResetCacheBit() { SetBit(23,0); }
33     void SetCacheBit() { SetBit(23); }
34     void SetClearBit() { SetBit(14); }
35     void SetDeleteBit() { SetBit(15); }
36 loizides 1.1
37 loizides 1.4 ClassDef(DataBase, 1) // Common base for objects that do not get referenced
38 loizides 1.1 };
39     }
40     #endif