CbmRoot
|
#include <CbmMcbm2019TimeWinEventBuilderTask.h>
Private Member Functions | |
void | FillOutput () |
void | SaveHistos () |
ClassDef (CbmMcbm2019TimeWinEventBuilderTask, 1) | |
Private Attributes | |
CbmMcbm2019TimeWinEventBuilderAlgo * | fpAlgo = nullptr |
TClonesArray * | fEvents = nullptr |
Bool_t | fbFillHistos {kTRUE} |
output container of CbmEvents More... | |
TString | fsOutFileName {"data/HistosEvtWin.root"} |
Switch ON/OFF filling of histograms. More... | |
Definition at line 29 of file CbmMcbm2019TimeWinEventBuilderTask.h.
CbmMcbm2019TimeWinEventBuilderTask::CbmMcbm2019TimeWinEventBuilderTask | ( | ) |
Default constructor
Create Algo. To be made generic/switchable when more event building algo are available!
Definition at line 23 of file CbmMcbm2019TimeWinEventBuilderTask.cxx.
References fpAlgo.
|
delete |
CbmMcbm2019TimeWinEventBuilderTask::~CbmMcbm2019TimeWinEventBuilderTask | ( | ) |
Constructor with parameters (Optional) Destructor
Definition at line 30 of file CbmMcbm2019TimeWinEventBuilderTask.cxx.
void CbmMcbm2019TimeWinEventBuilderTask::AddDetector | ( | ECbmModuleId | selDet | ) |
Definition at line 146 of file CbmMcbm2019TimeWinEventBuilderTask.cxx.
References CbmMcbm2019TimeWinEventBuilderAlgo::AddDetector(), and fpAlgo.
void CbmMcbm2019TimeWinEventBuilderTask::AddDetector | ( | EventBuilderDetector | selDet | ) |
Definition at line 157 of file CbmMcbm2019TimeWinEventBuilderTask.cxx.
References CbmMcbm2019TimeWinEventBuilderAlgo::AddDetector(), and fpAlgo.
|
private |
|
virtual |
Executed for each event.
Call Algo ProcessTs method
Save the resulting vector of events in TClonesArray
Definition at line 60 of file CbmMcbm2019TimeWinEventBuilderTask.cxx.
References FillOutput(), fpAlgo, and CbmMcbm2019TimeWinEventBuilderAlgo::ProcessTs().
|
private |
Clear TClonesArray before usage.
Get vector reference from algo
Move CbmEvent from temporary vector to TClonesArray
Clear event vector after usage
Definition at line 81 of file CbmMcbm2019TimeWinEventBuilderTask.cxx.
References CbmMcbm2019TimeWinEventBuilderAlgo::ClearEventVector(), fEvents, fpAlgo, CbmMcbm2019TimeWinEventBuilderAlgo::GetEventVector(), and Cbm::ToString().
Referenced by Exec().
|
virtual |
Finish task called at the end of the run
Call Algo finish method
Definition at line 73 of file CbmMcbm2019TimeWinEventBuilderTask.cxx.
References fbFillHistos, CbmMcbm2019TimeWinEventBuilderAlgo::Finish(), fpAlgo, and SaveHistos().
|
virtual |
Initiliazation of task at the beginning of a run
Get a handle from the IO manager
Register output array (CbmEvent)
Call Algo Init method
Definition at line 38 of file CbmMcbm2019TimeWinEventBuilderTask.cxx.
References fEvents, fpAlgo, and CbmMcbm2019TimeWinEventBuilderAlgo::InitAlgo().
|
delete |
|
virtual |
ReInitiliazation of task when the runID changes
Definition at line 57 of file CbmMcbm2019TimeWinEventBuilderTask.cxx.
void CbmMcbm2019TimeWinEventBuilderTask::RemoveDetector | ( | ECbmModuleId | selDet | ) |
Definition at line 149 of file CbmMcbm2019TimeWinEventBuilderTask.cxx.
References fpAlgo, and CbmMcbm2019TimeWinEventBuilderAlgo::RemoveDetector().
void CbmMcbm2019TimeWinEventBuilderTask::RemoveDetector | ( | EventBuilderDetector | selDet | ) |
Definition at line 161 of file CbmMcbm2019TimeWinEventBuilderTask.cxx.
References fpAlgo, and CbmMcbm2019TimeWinEventBuilderAlgo::RemoveDetector().
|
private |
Obtain vector of pointers on each histo from the algo (+ optionally desired folder)
(Re-)Create ROOT file to store the histos
Store current directory position to allow restore later
open separate histo file in recreate mode
Save all plots and create folders if needed
Make sure we end up in chosen folder
Write plot
Restore original directory position
Definition at line 102 of file CbmMcbm2019TimeWinEventBuilderTask.cxx.
References fpAlgo, fsOutFileName, and CbmMcbm2019TimeWinEventBuilderAlgo::GetHistoVector().
Referenced by Finish().
void CbmMcbm2019TimeWinEventBuilderTask::SetEventOverlapMode | ( | EOverlapMode | mode | ) |
Definition at line 183 of file CbmMcbm2019TimeWinEventBuilderTask.cxx.
References fpAlgo, and CbmMcbm2019TimeWinEventBuilderAlgo::SetEventOverlapMode().
void CbmMcbm2019TimeWinEventBuilderTask::SetFillHistos | ( | Bool_t | bFlag = kTRUE | ) |
Definition at line 134 of file CbmMcbm2019TimeWinEventBuilderTask.cxx.
References fbFillHistos, fpAlgo, and CbmMcbm2019TimeWinEventBuilderAlgo::SetFillHistos().
void CbmMcbm2019TimeWinEventBuilderTask::SetIgnoreTsOverlap | ( | Bool_t | bFlagIn | ) |
Definition at line 187 of file CbmMcbm2019TimeWinEventBuilderTask.cxx.
References fpAlgo, and CbmMcbm2019TimeWinEventBuilderAlgo::SetIgnoreTsOverlap().
void CbmMcbm2019TimeWinEventBuilderTask::SetOutFilename | ( | TString | sNameIn | ) |
Definition at line 138 of file CbmMcbm2019TimeWinEventBuilderTask.cxx.
References fsOutFileName.
|
virtual |
Load the parameter container from the runtime database
Nothing to do
Definition at line 33 of file CbmMcbm2019TimeWinEventBuilderTask.cxx.
void CbmMcbm2019TimeWinEventBuilderTask::SetReferenceDetector | ( | ECbmModuleId | refDet | ) |
Definition at line 142 of file CbmMcbm2019TimeWinEventBuilderTask.cxx.
References fpAlgo, and CbmMcbm2019TimeWinEventBuilderAlgo::SetReferenceDetector().
void CbmMcbm2019TimeWinEventBuilderTask::SetReferenceDetector | ( | EventBuilderDetector | refDet | ) |
Definition at line 153 of file CbmMcbm2019TimeWinEventBuilderTask.cxx.
References fpAlgo, and CbmMcbm2019TimeWinEventBuilderAlgo::SetReferenceDetector().
void CbmMcbm2019TimeWinEventBuilderTask::SetTriggerMaxNumber | ( | ECbmModuleId | selDet, |
Int_t | iVal | ||
) |
Definition at line 171 of file CbmMcbm2019TimeWinEventBuilderTask.cxx.
References fpAlgo, and CbmMcbm2019TimeWinEventBuilderAlgo::SetTriggerMaxNumber().
void CbmMcbm2019TimeWinEventBuilderTask::SetTriggerMinNumber | ( | ECbmModuleId | selDet, |
UInt_t | uVal | ||
) |
Definition at line 166 of file CbmMcbm2019TimeWinEventBuilderTask.cxx.
References fpAlgo, and CbmMcbm2019TimeWinEventBuilderAlgo::SetTriggerMinNumber().
void CbmMcbm2019TimeWinEventBuilderTask::SetTriggerWindow | ( | ECbmModuleId | det, |
Double_t | dWinBeg, | ||
Double_t | dWinEnd | ||
) |
Definition at line 177 of file CbmMcbm2019TimeWinEventBuilderTask.cxx.
References fpAlgo, and CbmMcbm2019TimeWinEventBuilderAlgo::SetTriggerWindow().
|
private |
output container of CbmEvents
Definition at line 90 of file CbmMcbm2019TimeWinEventBuilderTask.h.
Referenced by Finish(), and SetFillHistos().
|
private |
Definition at line 88 of file CbmMcbm2019TimeWinEventBuilderTask.h.
Referenced by FillOutput(), and Init().
|
private |
Definition at line 86 of file CbmMcbm2019TimeWinEventBuilderTask.h.
Referenced by AddDetector(), CbmMcbm2019TimeWinEventBuilderTask(), Exec(), FillOutput(), Finish(), Init(), RemoveDetector(), SaveHistos(), SetEventOverlapMode(), SetFillHistos(), SetIgnoreTsOverlap(), SetReferenceDetector(), SetTriggerMaxNumber(), SetTriggerMinNumber(), and SetTriggerWindow().
|
private |
Switch ON/OFF filling of histograms.
Name of the histogram output file
Definition at line 93 of file CbmMcbm2019TimeWinEventBuilderTask.h.
Referenced by SaveHistos(), and SetOutFilename().