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 | |
TString | fsOutFileName {"data/HistosEvtWin.root"} |
Switch ON/OFF filling of histograms. | |
Definition at line 28 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 21 of file CbmMcbm2019TimeWinEventBuilderTask.cxx.
References fpAlgo.
|
delete |
CbmMcbm2019TimeWinEventBuilderTask::~CbmMcbm2019TimeWinEventBuilderTask | ( | ) |
Constructor with parameters (Optional) Destructor
Definition at line 29 of file CbmMcbm2019TimeWinEventBuilderTask.cxx.
void CbmMcbm2019TimeWinEventBuilderTask::AddDetector | ( | EventBuilderDetector | selDet | ) |
Definition at line 146 of file CbmMcbm2019TimeWinEventBuilderTask.cxx.
References CbmMcbm2019TimeWinEventBuilderAlgo::AddDetector(), and fpAlgo.
void CbmMcbm2019TimeWinEventBuilderTask::ChangeMuchBeamtimeDigiFlag | ( | Bool_t | bFlagIn = kFALSE | ) |
Definition at line 184 of file CbmMcbm2019TimeWinEventBuilderTask.cxx.
References CbmMcbm2019TimeWinEventBuilderAlgo::ChangeMuchBeamtimeDigiFlag(), and fpAlgo.
|
private |
|
virtual |
Executed for each event.
Call Algo ProcessTs method
Save the resulting vector of events in TClonesArray
Definition at line 59 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 CbmEvent::ToString().
Referenced by Exec().
|
virtual |
Finish task called at the end of the run
Call Algo finish method
Definition at line 72 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 56 of file CbmMcbm2019TimeWinEventBuilderTask.cxx.
void CbmMcbm2019TimeWinEventBuilderTask::RemoveDetector | ( | EventBuilderDetector | selDet | ) |
Definition at line 150 of file CbmMcbm2019TimeWinEventBuilderTask.cxx.
References fpAlgo, and CbmMcbm2019TimeWinEventBuilderAlgo::RemoveDetector().
|
private |
Obtain vector of pointers on each histo from the algo (+ optionally desired folder)
Save old global file and folder pointer to avoid messing with FairRoot
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 old global file and folder pointer to avoid messing with FairRoot
Definition at line 100 of file CbmMcbm2019TimeWinEventBuilderTask.cxx.
References fpAlgo, fsOutFileName, and CbmMcbm2019TimeWinEventBuilderAlgo::GetHistoVector().
Referenced by Finish().
void CbmMcbm2019TimeWinEventBuilderTask::SetEventOverlapMode | ( | EOverlapMode | mode | ) |
Definition at line 176 of file CbmMcbm2019TimeWinEventBuilderTask.cxx.
References fpAlgo, and CbmMcbm2019TimeWinEventBuilderAlgo::SetEventOverlapMode().
void CbmMcbm2019TimeWinEventBuilderTask::SetFillHistos | ( | Bool_t | bFlag = kTRUE | ) |
Definition at line 135 of file CbmMcbm2019TimeWinEventBuilderTask.cxx.
References fbFillHistos, fpAlgo, and CbmMcbm2019TimeWinEventBuilderAlgo::SetFillHistos().
void CbmMcbm2019TimeWinEventBuilderTask::SetIgnoreTsOverlap | ( | Bool_t | bFlagIn | ) |
Definition at line 180 of file CbmMcbm2019TimeWinEventBuilderTask.cxx.
References fpAlgo, and CbmMcbm2019TimeWinEventBuilderAlgo::SetIgnoreTsOverlap().
void CbmMcbm2019TimeWinEventBuilderTask::SetOutFilename | ( | TString | sNameIn | ) |
Definition at line 140 of file CbmMcbm2019TimeWinEventBuilderTask.cxx.
References fsOutFileName.
|
virtual |
Load the parameter container from the runtime database
Nothing to do
Definition at line 32 of file CbmMcbm2019TimeWinEventBuilderTask.cxx.
void CbmMcbm2019TimeWinEventBuilderTask::SetReferenceDetector | ( | EventBuilderDetector | refDet | ) |
Definition at line 142 of file CbmMcbm2019TimeWinEventBuilderTask.cxx.
References fpAlgo, and CbmMcbm2019TimeWinEventBuilderAlgo::SetReferenceDetector().
void CbmMcbm2019TimeWinEventBuilderTask::SetTriggerMaxNumber | ( | ECbmModuleId | selDet, |
Int_t | iVal ) |
Definition at line 159 of file CbmMcbm2019TimeWinEventBuilderTask.cxx.
References fpAlgo, and CbmMcbm2019TimeWinEventBuilderAlgo::SetTriggerMaxNumber().
void CbmMcbm2019TimeWinEventBuilderTask::SetTriggerMinNumber | ( | ECbmModuleId | selDet, |
UInt_t | uVal ) |
Definition at line 155 of file CbmMcbm2019TimeWinEventBuilderTask.cxx.
References fpAlgo, and CbmMcbm2019TimeWinEventBuilderAlgo::SetTriggerMinNumber().
void CbmMcbm2019TimeWinEventBuilderTask::SetTriggerWindow | ( | ECbmModuleId | det, |
Double_t | dWinBeg, | ||
Double_t | dWinEnd ) |
Definition at line 164 of file CbmMcbm2019TimeWinEventBuilderTask.cxx.
References fpAlgo, and CbmMcbm2019TimeWinEventBuilderAlgo::SetTriggerWindow().
void CbmMcbm2019TimeWinEventBuilderTask::SetTsParameters | ( | Double_t | dTsStartTime, |
Double_t | dTsLength, | ||
Double_t | dTsOverLength ) |
Definition at line 170 of file CbmMcbm2019TimeWinEventBuilderTask.cxx.
References dTsStartTime, fpAlgo, and CbmMcbm2019TimeWinEventBuilderAlgo::SetTsParameters().
|
private |
output container of CbmEvents
Definition at line 87 of file CbmMcbm2019TimeWinEventBuilderTask.h.
Referenced by Finish(), and SetFillHistos().
|
private |
Definition at line 85 of file CbmMcbm2019TimeWinEventBuilderTask.h.
Referenced by FillOutput(), and Init().
|
private |
Definition at line 83 of file CbmMcbm2019TimeWinEventBuilderTask.h.
Referenced by AddDetector(), CbmMcbm2019TimeWinEventBuilderTask(), ChangeMuchBeamtimeDigiFlag(), Exec(), FillOutput(), Finish(), Init(), RemoveDetector(), SaveHistos(), SetEventOverlapMode(), SetFillHistos(), SetIgnoreTsOverlap(), SetReferenceDetector(), SetTriggerMaxNumber(), SetTriggerMinNumber(), SetTriggerWindow(), and SetTsParameters().
|
private |
Switch ON/OFF filling of histograms.
Name of the histogram output file
Definition at line 90 of file CbmMcbm2019TimeWinEventBuilderTask.h.
Referenced by SaveHistos(), and SetOutFilename().