ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/DataBase.h
Revision: 1.4
Committed: Wed Feb 18 15:38:54 2009 UTC (16 years, 2 months ago) by loizides
Content type: text/plain
Branch: MAIN
Changes since 1.3: +2 -3 lines
Log Message:
Reworked particle interface to cache FourVectorM

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.4 // $Id: DataBase.h,v 1.3 2008/12/11 17:04:29 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.3 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