Go to the documentation of this file.
25 #include <TStopwatch.h>
27 #include "FairBaseParSet.h"
28 #include "FairRootManager.h"
29 #include "FairRunAna.h"
30 #include "FairRuntimeDb.h"
64 fMetaData.SetName(Form(
"PairAnalysisMetaData_%s", name));
65 fListHistos.SetName(Form(
"PairAnalysisHistos_%s", name));
99 FairRuntimeDb* rtdb = FairRunAna::Instance()->GetRuntimeDb();
101 FairBaseParSet* par =
102 dynamic_cast<FairBaseParSet*
>(rtdb->getContainer(
"FairBaseParSet"));
104 Double_t parBeamMom = par->GetBeamMom();
106 if (parBeamMom > 0. && TMath::Abs(parBeamMom - 15.) > 1.e-10) {
108 Info(
"Init",
" Use beam momentum from parameter set: %f ",
fBeamEnergy);
122 while ((papa =
static_cast<PairAnalysis*
>(nextDie()))) {
135 FairRootManager* man = FairRootManager::Instance();
137 Fatal(
"AnalysisTaskMultiPairAnalysis::Init",
"No FairRootManager!");
153 "AnalysisTaskMultiPairAnalysis::Init:"
154 " Real time %fs, CPU time %fs, Memory %li MB(res.) %li MB(virt.) \n",
182 "AnalysisTaskMultiPairAnalysis::Exec: Process %.3e events, CPU time "
183 "%.1fs, (%fs per event, eff %.3f), Memory %li MB(res.) %li MB(virt.) \n",
204 while ((papa =
static_cast<PairAnalysis*
>(nextDie()))) {
214 if (
h->GetHistogramList()->FindObject(
"Event.noCuts")) {
228 Bool_t useInternal = kFALSE;
230 while ((papa =
static_cast<PairAnalysis*
>(nextDie()))) {
266 "AnalysisTaskMultiPairAnalysis::FinishTask - write histo list to %s \n",
267 FairRootManager::Instance()->GetOutFile()->GetName());
268 FairRootManager::Instance()->GetOutFile()->cd();
static void SetEvent(PairAnalysisEvent *const ev)
virtual void Exec(Option_t *option)
virtual InitStatus Init()
static void SetFillMap(TBits *map)
const THashList * GetQAHistList() const
virtual ~AnalysisTaskMultiPairAnalysis()
void Process(TObjArray *arr)
virtual void FinishTask()
ClassImp(AnalysisTaskMultiPairAnalysis) AnalysisTaskMultiPairAnalysis
AnalysisCuts * fEventFilter
Int_t fEventsTotal
event handler
Data class with information on a STS local track.
const THashList * GetHistogramList() const
AnalysisTaskMultiPairAnalysis()
TObjArray ** GetPairArraysPointer()
void SetInput(FairRootManager *man)
PairAnalysisHistos * GetHistoManager() const
static void SetValue(ValueTypes var, Double_t val)
TList fListPairAnalysis
output array
virtual Bool_t IsSelected(Double_t *const)
THashList * GetCutStepHistogramList() const
const TObjArray * GetHistogramArray() const
Bool_t DontClearArrays() const
Double_t fBeamEnergy
List of histogram manager lists in the framework classes.
static Double_t * GetData()
Implementation of the electron identification algorithm in the RICH detector using Artificial Neural ...
static PairAnalysisMC * Instance()
PairAnalysisEvent * fInputEvent
PairAnalysisMetaData fMetaData
TObjArray * fPairArray
List of meta data in the framework classes.
ProcInfo_t fProcInfo
stopwatch for cpu consumption
Bool_t DoEventProcess() const
virtual void Clear(Option_t *opt="C")