Go to the documentation of this file.
6 #ifndef CBMDIGITIZATION_H
7 #define CBMDIGITIZATION_H 1
13 #include "FairLogger.h"
44 Double_t eventRate = -1.,
57 Double_t eventRate = -1.,
59 AddInput(0, fileName, eventRate, mode);
121 void Run(Int_t nEvents) {
Run(0, nEvents); }
128 void Run(Int_t event1, Int_t event2);
151 Bool_t persistent = kTRUE);
179 void SetOutputFile(TString fileName, Bool_t overwrite = kFALSE);
void AddInput(TString fileName, Double_t eventRate=-1., ECbmTreeAccess mode=ECbmTreeAccess::kRegular)
Add an input file.
void SetCreateMatches(Bool_t choice=kTRUE)
Set creation of links to MC.
void SetStartTime(Double_t time)
Set the start time of the run.
virtual ~CbmDigitization()
Destructor
void SetDigitizer(ECbmModuleId system, CbmDigitizeBase *digitizer, TString branch="", Bool_t persistent=kTRUE)
Set a digitizer explicitly.
Int_t CreateDefaultDigitizers()
Instantiate the default digitisers for the active systems.
TString GetGeoTag(ECbmModuleId system, TGeoManager *geo)
Get the geometry tag of a system from a TGeoManager.
void Run(Int_t nEvents)
Process nEvents from input, starting with the first event.
CbmDigitization operator=(const CbmDigitization &)=delete
Assignment operator forbidden.
Double_t fTimeSliceLength
void SetMonitorFile(const char *fileName)
Set the monitor file name.
void Run()
Process all events from input.
void DeactivateAllBut(ECbmModuleId system)
Deactivate all systems except the specified one.
TString fOutFile
Output data (digis)
void SetParameterRootFile(TString fileName)
Set the parameter file name.
void SetTimeStart(Double_t time)
Set the offset for the first event time.
void GenerateRunInfo(Bool_t choice=kTRUE)
Write run info (default is kTRUE)
ECbmTreeAccess
Mode to read entries from a ROOT TTree.
void StoreAllTimeSlices(Bool_t choice=kTRUE)
Store all time-slices.
void AddInput(UInt_t inputId, TString fileName, Double_t eventRate=-1., ECbmTreeAccess mode=ECbmTreeAccess::kRegular)
Add an input file.
CbmDigitizationSource * fSource
Input source.
void StoreAllTimeSlices(Bool_t choice=kTRUE)
Store all time-slices.
CbmDigitization()
Constructor.
Source class for the input to digitization in CBM.
void EmbedInput(UInt_t inputId, TString fileName, UInt_t targetInputId, ECbmTreeAccess mode=ECbmTreeAccess::kRegular)
Embed an input file into another one.
ClassDef(CbmDigitization, 3)
CBM task class for filling digis into time slices.
Int_t CheckInput()
Check the presence of input branches.
void DefaultInit()
Initialize the branches, digitizers and parameter files With default values.
Bool_t AddParameterAsciiFile(TString fileName)
Add an ASCII parameter file.
TString fMoniFile
Resource monitoring information.
TList fParAsciiFiles
ASCII parameter files.
void SetProduceNoise(Bool_t choice=kTRUE)
Set production of inter-event noise.
void SetOutputFile(TString fileName, Bool_t overwrite=kFALSE)
Set the output file name.
CbmDigitization(const CbmDigitization &)=delete
Copy constructor forbidden.
TString fParRootFile
ROOT parameter file.
CbmDigitizeBase * GetDigitizer(ECbmModuleId system)
Get the pointer on a given digitizer if existing.
void SetTimeSliceLength(Double_t length)
Set length of the time-slices.
Abstract base class for CBM digitisation tasks.
void SetEventMode(Bool_t choice=kTRUE)
Set event-by-event mode.
void Deactivate(ECbmModuleId system)
Deactivate a system for digitisation.
std::map< ECbmModuleId, CbmDigitizeInfo * > fDigitizers
void SetDefaultBranches()
Default settings for digitizers.