25#include "FairBaseParSet.h"
26#include "FairRootManager.h"
27#include "FairRunAna.h"
28#include "FairRuntimeDb.h"
34#include <TStopwatch.h>
65 fMetaData.SetName(Form(
"PairAnalysisMetaData_%s", name));
66 fListHistos.SetName(Form(
"PairAnalysisHistos_%s", name));
84 fMetaData.SetName(Form(
"PairAnalysisMetaData_%s", name));
85 fListHistos.SetName(Form(
"PairAnalysisHistos_%s", name));
105 fMetaData.SetName(Form(
"PairAnalysisMetaData_%s", name));
106 fListHistos.SetName(Form(
"PairAnalysisHistos_%s", name));
145 FairRuntimeDb* rtdb = FairRunAna::Instance()->GetRuntimeDb();
147 FairBaseParSet* par =
dynamic_cast<FairBaseParSet*
>(rtdb->getContainer(
"FairBaseParSet"));
149 Double_t parBeamMom = par->GetBeamMom();
151 if (parBeamMom > 0. && TMath::Abs(parBeamMom - 15.) > 1.e-10) {
153 Info(
"Init",
" Use beam momentum from parameter set: %f ",
fBeamEnergy);
167 while ((papa =
static_cast<PairAnalysis*
>(nextDie()))) {
176 FairRootManager* man = FairRootManager::Instance();
177 if (!man) { Fatal(
"AnalysisTaskMultiPairAnalysis::Init",
"No FairRootManager!"); }
194 "AnalysisTaskMultiPairAnalysis::Init:"
195 " Real time %fs, CPU time %fs, Memory %li MB(res.) %li MB(virt.) \n",
220 "AnalysisTaskMultiPairAnalysis::Exec: Process %.3e events, CPU time "
221 "%.1fs, (%fs per event, eff %.3f), Memory %li MB(res.) %li MB(virt.) \n",
237 while ((papa =
static_cast<PairAnalysis*
>(nextDie()))) {
247 if (
h->GetHistogramList()->FindObject(
"Event.noCuts")) {
261 Bool_t useInternal = kFALSE;
263 while ((papa =
static_cast<PairAnalysis*
>(nextDie()))) {
297 fprintf(stderr,
"AnalysisTaskMultiPairAnalysis::FinishTask - write histo list to %s \n",
298 FairRootManager::Instance()->GetOutFile()->GetName());
299 FairRootManager::Instance()->GetOutFile()->cd();
ClassImp(AnalysisTaskMultiPairAnalysis) AnalysisTaskMultiPairAnalysis
Implementation of the electron identification algorithm in the RICH detector using Artificial Neural ...
virtual Bool_t IsSelected(Double_t *const)
AnalysisTaskMultiPairAnalysis()
virtual void Exec(Option_t *option)
virtual InitStatus Init()
Int_t fEventsTotal
event handler
AnalysisCuts * fEventFilter
TObjArray * fPairArray
List of meta data in the framework classes.
Double_t fBeamEnergy
List of histogram manager lists in the framework classes.
ProcInfo_t fProcInfo
stopwatch for cpu consumption
PairAnalysisEvent * fInputEvent
PairAnalysisMetaData fMetaData
virtual void FinishTask()
TList fListPairAnalysis
output array
virtual ~AnalysisTaskMultiPairAnalysis()
Data class with information on a STS local track.
void SetInput(FairRootManager *man)
virtual void Clear(Option_t *opt="C")
static PairAnalysisMC * Instance()
static void SetFillMap(TBits *map)
static void SetEvent(PairAnalysisEvent *const ev)
static void SetValue(ValueTypes var, Double_t val)
static Double_t * GetData()
Bool_t DontClearArrays() const
const THashList * GetQAHistList() const
const THashList * GetHistogramList() const
Bool_t DoEventProcess() const
THashList * GetCutStepHistogramList() const
PairAnalysisHistos * GetHistoManager() const
const TObjArray * GetHistogramArray() const
TObjArray ** GetPairArraysPointer()
void Process(TObjArray *arr)