CbmRoot
Loading...
Searching...
No Matches
AnalysisTaskMultiPairAnalysis.h
Go to the documentation of this file.
1/* Copyright (C) 2015-2016 Justus-Liebig-Universitaet Giessen, Giessen
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Julian Book [committer] */
4
5#ifndef ANALYSISTASKMULTIPAIRANALYSIS_H
6#define ANALYSISTASKMULTIPAIRANALYSIS_H
7
8//#####################################################
9//# #
10//# Basic Analysis task for PairAnalysis #
11//# single event analysis #
12//# #
13//# Julian Book, Uni Ffm / Julian.Book@cern.ch #
14//# #
15//#####################################################
16
18
19#include "FairTask.h"
20
21#include "TList.h"
22#include "TStopwatch.h"
23#include "TSystem.h"
24
25#include "AnalysisCuts.h"
26#include "PairAnalysisEvent.h"
28
29class PairAnalysis;
30class TH1D;
31
32class AnalysisTaskMultiPairAnalysis : public FairTask {
33
34public:
36 AnalysisTaskMultiPairAnalysis(const char* name);
37 AnalysisTaskMultiPairAnalysis(const char* name, Int_t id);
38 AnalysisTaskMultiPairAnalysis(const char* name, Int_t id, Int_t scale);
40
41 virtual InitStatus Init();
42 virtual void Exec(Option_t* option);
43 virtual void FinishTask();
44
45 void SetEventFilter(AnalysisCuts* const filter) { fEventFilter = filter; }
46
47 void AddPairAnalysis(PairAnalysis* const papa)
48 {
49 fListPairAnalysis.Add((TObject*) papa);
50 } //why cast to tobject????????
51 void SetBeamEnergy(Double_t beamEbyHand = -1.)
52 {
53 fBeamEnergy = beamEbyHand;
54 Warning("SetBeamEnergy", "This function is only kept for backward compatibility!!! Value will be "
55 "overwritten, when parameter is availbale (>JUN16 release).");
56 } // TODO: this should become obsolete in NOV16
57
58protected:
60 TObjArray* fPairArray = NULL;
61 TList fListPairAnalysis; // List of papa framework instances
63
64 Double_t fBeamEnergy = 0.; // beam energy in GeV (set by hand)
65 Int_t fThermalScaling = 0;
66
67 AnalysisCuts* fEventFilter = NULL; // event filter
69 Int_t fEventsTotal = 0; // total number of processed events
70 Int_t fEventsSelected = 0; // number of selcted events
71
72 TStopwatch fTimer;
73 ProcInfo_t fProcInfo;
74 Int_t fId = 0;
75
78
80 4); //Analysis Task handling multiple instances of PairAnalysis
81};
82#endif
Implementation of the electron identification algorithm in the RICH detector using Artificial Neural ...
void SetBeamEnergy(Double_t beamEbyHand=-1.)
AnalysisTaskMultiPairAnalysis & operator=(const AnalysisTaskMultiPairAnalysis &c)
TObjArray * fPairArray
List of meta data in the framework classes.
void SetEventFilter(AnalysisCuts *const filter)
void AddPairAnalysis(PairAnalysis *const papa)
Double_t fBeamEnergy
List of histogram manager lists in the framework classes.
ProcInfo_t fProcInfo
stopwatch for cpu consumption
AnalysisTaskMultiPairAnalysis(const AnalysisTaskMultiPairAnalysis &c)
ClassDef(AnalysisTaskMultiPairAnalysis, 4)