AliPhysics  master (3d17d9d)
AliEmcalTRDTrackingTask.h
Go to the documentation of this file.
1 #ifndef AliEmcalTRDTrackingTask_H
2 #define AliEmcalTRDTrackingTask_H
3 
4 #if !(defined(__CINT__) || defined(__MAKECINT__))
5 #include <tuple>
6 #endif
7 
8 #include <vector>
9 
11 
12 class THnSparse;
13 
26 
27  public:
29  AliEmcalTRDTrackingTask(const char *name);
30  virtual ~AliEmcalTRDTrackingTask();
31 
33 
34  static AliEmcalTRDTrackingTask* AddTaskTRDTracking(const char *suffix = "");
35 
36  protected:
38  void ExecOnce();
39  void GenerateHistoBins() ;
41  void FillDetectorLevelTHnSparse(Double_t trackPt, Double_t sigma1OverPt, Byte_t trackType, Int_t ntracklets, Double_t trackCharge);
42 #if !(defined(__CINT__) || defined(__MAKECINT__))
43  THnSparse* GenerateTHnSparse(const char* name, const std::vector<std::tuple<std::string, std::vector<Double_t>::iterator, std::vector<Double_t>::iterator>>& axis);
44 #endif
45 
46 
47  // Service fields (non-streamed)
51  std::vector<Double_t> fPtHistBins ;
52  std::vector<Double_t> fPtResHistBins ;
53  std::vector<Double_t> fIntegerHistBins ;
54  std::vector<Double_t> fChargeHistBins; ;
55 
56  // Histograms
57  THnSparse* fTracks ;
58 
59  private:
60  AliEmcalTRDTrackingTask(const AliEmcalTRDTrackingTask&); // not implemented
61  AliEmcalTRDTrackingTask &operator=(const AliEmcalTRDTrackingTask&); // not implemented
62 
63  ClassDef(AliEmcalTRDTrackingTask, 5) // Track QA task (efficiency and pt resolution)
64 };
65 #endif
std::vector< Double_t > fChargeHistBins
AliEmcalTRDTrackingTask & operator=(const AliEmcalTRDTrackingTask &)
double Double_t
Definition: External.C:58
Container with name, TClonesArray and cuts for particles.
std::vector< Double_t > fPtHistBins
! pt bins
THnSparse * fTracks
! charge bins
std::vector< Double_t > fIntegerHistBins
! integer bins
int Int_t
Definition: External.C:63
void FillDetectorLevelTHnSparse(Double_t trackPt, Double_t sigma1OverPt, Byte_t trackType, Int_t ntracklets, Double_t trackCharge)
Base task in the EMCAL framework (lighter version of AliAnalysisTaskEmcal)
THnSparse * GenerateTHnSparse(const char *name, const std::vector< std::tuple< std::string, std::vector< Double_t >::iterator, std::vector< Double_t >::iterator >> &axis)
std::vector< Double_t > fPtResHistBins
! pt res bins
AliTrackContainer * fDetectorLevel
! detector level container
static AliEmcalTRDTrackingTask * AddTaskTRDTracking(const char *suffix="")
bool Bool_t
Definition: External.C:53
AliMCParticleContainer * fGeneratorLevel
! generator level container
Container for MC-true particles within the EMCAL framework.
Bool_t fIsEsd
! whether it is ESD data