Go to the documentation of this file.
6 #ifndef CBMDIGITIZATIONSOURCE_H
7 #define CBMDIGITIZATIONSOURCE_H 1
11 #include "FairEventHeader.h"
12 #include "FairLogger.h"
13 #include "FairMCEventHeader.h"
14 #include "FairSource.h"
20 class FairEventHeader;
63 virtual Bool_t
ActivateObject(TObject**
object,
const char* branchName);
106 UInt_t targetInputId,
132 LOG(fatal) <<
"GetSourceTpye";
139 virtual Bool_t
Init();
159 virtual Int_t
ReadEvent(UInt_t event = 0);
const std::set< TString > & GetBranchList() const
List of branch names @value Reference to set of branch names.
virtual Bool_t ActivateObject(TObject **object, const char *branchName)
Activate a branch and set its address.
virtual ~CbmDigitizationSource()
Destructor.
void AddInput(UInt_t inputId, TChain *chain, Double_t rate, ECbmTreeAccess mode=ECbmTreeAccess::kRegular)
Add a transport input.
virtual void Close()
Abstract in base class. No implementation here.
virtual Bool_t Init()
Abstract in base class. No implementation here.
CbmMCInputSet * fCurrentInputSet
std::map< Double_t, CbmMCInputSet * > fNextEvent
input ID -> inputSet
Int_t ReadEventByEvent(UInt_t event)
Get next entry in event-by-event mode.
Bool_t CheckBranchList(CbmMCInputSet *input)
Compare an input set branch list with the reference list.
virtual Bool_t InitUnpackers()
Abstract in base class. No implementation here.
CbmDigitizationSource()
Constructor.
virtual Bool_t ReInitUnpackers()
Abstract in base class. No implementation here.
void SetTimeStart(Double_t time)
Set the offset for the first event time.
CbmMCInput * GetFirstInput()
First input from the first input set @value Pointer to first input.
ECbmTreeAccess
Mode to read entries from a ROOT TTree.
virtual void SetParUnpackers()
Abstract in base class. No implementation here.
virtual void Reset()
Abstract in base class. No implementation here.
Source class for the input to digitization in CBM.
TObjArray * fListOfFolders
ClassDef(CbmDigitizationSource, 1)
std::set< TString > fBranches
void SetEventMode(Bool_t choice=kTRUE)
Set event-by-event mode @value choice kTRUE if event-by-event mode.
void EmbedInput(UInt_t inputId, TChain *chain, UInt_t targetInputId, ECbmTreeAccess mode=ECbmTreeAccess::kRegular)
Embed a transport input.
void ReadRunId()
Read run ID from the first entry in the first input.
virtual Source_Type GetSourceType()
Source type is kFILE.
FairMCEventHeader * fMCEventHeader
time -> inputSet
std::map< UInt_t, CbmMCInputSet * > fInputMap
virtual Int_t ReadEvent(UInt_t event=0)
Provide one tree entry.
virtual Int_t CheckMaxEventNo(Int_t lastEntry=0)
Maximal entry number the source can run to.
virtual void FillEventHeader(FairEventHeader *event)
Fill the output event header.
std::vector< CbmMCInputSet * > fInputSets