AliPhysics  a0db429 (a0db429)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
AliEmcalTrackingQATask.h
Go to the documentation of this file.
1 #ifndef ALIEMCALTRACKINGQATASK_H
2 #define ALIEMCALTRACKINGQATASK_H
3 
4 #include "AliAnalysisTaskEmcal.h"
5 
7 class THnSparse;
8 class TH3;
9 
11 
12  public:
14  AliEmcalTrackingQATask(const char *name);
15  virtual ~AliEmcalTrackingQATask();
16 
18  void SetGeneratorLevelName(const char* name);
19  void SetDetectorLevelName(const char* name);
20  void SetSelectHIJING(Bool_t s) {fSelectHIJING = s; }
21  void SetDoSigma1OverPt(Bool_t s) {fDoSigma1OverPt = s; }
23 
24  protected:
25  Bool_t FillHistograms() ;
26  void ExecOnce() ;
27  void GenerateHistoBins() ;
31  void FillDetectorLevelTHnSparse(Double_t cent, Double_t trackEta, Double_t trackPhi, Double_t trackPt,
32  Double_t sigma1OverPt, Int_t mcGen, Byte_t trackType);
33  void FillGeneratorLevelTHnSparse(Double_t cent, Double_t partEta, Double_t partPhi, Double_t partPt, Int_t mcGen, Byte_t findable);
34  void FillMatchedParticlesTHnSparse(Double_t cent, Double_t partEta, Double_t partPhi, Double_t partPt,
35  Double_t trackEta, Double_t trackPhi, Double_t trackPt, Byte_t trackType);
36 
37  // Task configuration
38  Bool_t fSelectHIJING ; // select HIJING particles
39  Bool_t fDoSigma1OverPt ; // add sigma(1/pt), if false add sigma(pt)/pt instead
40  Bool_t fDoSigmaPtOverPtGen ; // MC: if true do sigma((ptgen - ptdet) / ptgen), otherwise do sigma((ptgen - ptdet) / ptdet)
41 
42  // Service fields (non-streamed)
45  Int_t fNPtHistBins ;
46  Double_t* fPtHistBins ;
47  Int_t fNEtaHistBins ;
48  Double_t* fEtaHistBins ;
49  Int_t fNPhiHistBins ;
50  Double_t* fPhiHistBins ;
51  Int_t fNCentHistBins ;
52  Double_t* fCentHistBins ;
54  Double_t* fPtRelDiffHistBins ;
55  Int_t fNPtResHistBins ;
56  Double_t* fPtResHistBins ;
57  Double_t* f1OverPtResHistBins ;
60  Double_t* fIntegerHistBins ;
61 
62 
63  // Histograms
64  THnSparse* fTracks ;
65  THnSparse* fParticlesPhysPrim ;
66  THnSparse* fParticlesMatched ;
67 
68  private:
69  AliEmcalTrackingQATask(const AliEmcalTrackingQATask&); // not implemented
70  AliEmcalTrackingQATask &operator=(const AliEmcalTrackingQATask&); // not implemented
71 
72  ClassDef(AliEmcalTrackingQATask, 3) // Track QA task (efficiency and pt resolution)
73 };
74 #endif
Double_t * fPtRelDiffHistBins
number of pt relative difference bins
void SetGeneratorLevelName(const char *name)
void SetDetectorLevelName(const char *name)
Int_t fNPtResHistBins
pt relative difference bins
void SetDoSigmaPtOverPtGen(Bool_t s)
Int_t fNPtHistBins
detector level container
Double_t * fCentHistBins
number of cent bins
Double_t * fPtResHistBins
number of pt res bins
Double_t * fEtaHistBins
number of eta bins
void FillMatchedParticlesTHnSparse(Double_t cent, Double_t partEta, Double_t partPhi, Double_t partPt, Double_t trackEta, Double_t trackPhi, Double_t trackPt, Byte_t trackType)
void FillDetectorLevelTHnSparse(Double_t cent, Double_t trackEta, Double_t trackPhi, Double_t trackPt, Double_t sigma1OverPt, Int_t mcGen, Byte_t trackType)
AliEmcalTrackingQATask & operator=(const AliEmcalTrackingQATask &)
Double_t * f1OverPtResHistBins
pt res bins
THnSparse * fTracks
integer bins
void FillGeneratorLevelTHnSparse(Double_t cent, Double_t partEta, Double_t partPhi, Double_t partPt, Int_t mcGen, Byte_t findable)
Int_t fNIntegerHistBins
number of 1/pt res bins
Double_t * fPtHistBins
number of pt bins
Double_t * fIntegerHistBins
number of integer bins
Int_t fNPtRelDiffHistBins
cent bins
AliParticleContainer * fDetectorLevel
generator level container
Double_t * fPhiHistBins
number of phi bins
AliParticleContainer * fGeneratorLevel
THnSparse * fParticlesPhysPrim
all tracks
Int_t fN1OverPtResHistBins
1/pt res bins
THnSparse * fParticlesMatched
all physical primary particles