CbmRoot
CbmDigiContainer.h
Go to the documentation of this file.
1 
6 #ifndef CBMDIGICONTAINER_H
7 #define CBMDIGICONTAINER_H 1
8 
9 #include <Rtypes.h> // for THashConsistencyHolder, ClassDef
10 #include <RtypesCore.h> // for Bool_t, UInt_t, ULong64_t, kFALSE
11 #include <TNamed.h> // for TNamed
12 #include <TString.h> // for TString
13 
14 #include <boost/any.hpp> // for any
15 
16 #include <string> // for string
17 
18 class CbmMatch;
19 
30 class CbmDigiContainer : public TNamed {
31 
32 public:
34  CbmDigiContainer(const char* name = "") : TNamed(name, "") {}
35 
36 
38  virtual ~CbmDigiContainer() {}
39 
40 
45  virtual void AddDigi(boost::any, const CbmMatch*) {}
46 
47 
51  virtual Bool_t ConnectToTree() { return kFALSE; }
52 
53 
62  virtual boost::any GetDigi(UInt_t index) = 0;
63 
64 
69  virtual const CbmMatch* GetDigiMatch(UInt_t index) = 0;
70 
71 
75  virtual Bool_t HasMatches() const = 0;
76 
77 
79  virtual const char* GetName() const { return fName; }
80 
81 
83  virtual ULong64_t GetNofDigis() const = 0;
84 
85 
87  virtual std::string ToString() const { return GetName(); }
88 
89 
91 };
92 
93 
94 #endif /* CBMDIGICONTAINER_H */
CbmMatch
Definition: CbmMatch.h:22
CbmDigiContainer::ToString
virtual std::string ToString() const
String output.
Definition: CbmDigiContainer.h:87
CbmDigiContainer::GetDigiMatch
virtual const CbmMatch * GetDigiMatch(UInt_t index)=0
Get a match object from the container.
CbmDigiContainer::CbmDigiContainer
CbmDigiContainer(const char *name="")
Constructor.
Definition: CbmDigiContainer.h:34
CbmDigiContainer
Abstract container for digis in CBM.
Definition: CbmDigiContainer.h:30
CbmDigiContainer::ConnectToTree
virtual Bool_t ConnectToTree()
Connect the container to ROOT tree branch.
Definition: CbmDigiContainer.h:51
CbmDigiContainer::GetNofDigis
virtual ULong64_t GetNofDigis() const =0
Get the number of digis in the container.
CbmDigiContainer::ClassDef
ClassDef(CbmDigiContainer, 1)
CbmDigiContainer::AddDigi
virtual void AddDigi(boost::any, const CbmMatch *)
Definition: CbmDigiContainer.h:45
CbmDigiContainer::HasMatches
virtual Bool_t HasMatches() const =0
Presence of match branch.
CbmDigiContainer::GetDigi
virtual boost::any GetDigi(UInt_t index)=0
Get a digi from the container.
CbmDigiContainer::~CbmDigiContainer
virtual ~CbmDigiContainer()
Destructor.
Definition: CbmDigiContainer.h:38
CbmDigiContainer::GetName
virtual const char * GetName() const
Name of container.
Definition: CbmDigiContainer.h:79