AliPhysics  c7b8e89 (c7b8e89)
AliEmcalPicoTrackMaker.h
Go to the documentation of this file.
1 #ifndef ALIEMCALPICOTRACKMAKER_H
2 #define ALIEMCALPICOTRACKMAKER_H
3 
4 class TClonesArray;
5 class AliVParticle;
6 class AliNamedArrayI;
7 
8 #include "AliAnalysisTaskSE.h"
9 
11  public:
13  AliEmcalPicoTrackMaker(const char *name);
14  virtual ~AliEmcalPicoTrackMaker();
15 
16  void SetTrackEfficiency(Double_t eff = 0.95) { fTrackEfficiency = eff ; }
17  void SetTrackEtaLimits(Double_t min, Double_t max) { fMaxTrackEta = max ; fMinTrackEta = min ; }
18  void SetTrackPhiLimits(Double_t min, Double_t max) { fMaxTrackPhi = max ; fMinTrackPhi = min ; }
19  void SetTrackPtLimits(Double_t min, Double_t max) { fMaxTrackPt = max ; fMinTrackPt = min ; }
20  void SetTracksInName(const char *name) { fTracksInName = name; }
21  void SetTracksOutName(const char *name) { fTracksOutName = name; }
22  void SetMCParticlesName(const char *name) { fMCParticlesName = name; }
23  void SetCopyMCFlag(Bool_t c, const char* name) { fCopyMCFlag = c ; fMCParticlesName = name; }
24 
25 
26  protected:
28  void UserExec(Option_t *option);
29 
30  AliVParticle* GetMCParticle(Int_t label);
31 
32  Int_t fAODfilterBits[2]; // AOD track filter bit map
33  TString fTracksOutName; // name of output track array
34  TString fTracksInName; // name of input track array
35  TString fMCParticlesName; // name of MC particle array, used by IsHIJINGParticle
36  Double_t fMinTrackPt; // mix pt of tracks
37  Double_t fMaxTrackPt; // max pt of tracks
38  Double_t fMinTrackEta; // cut on track eta
39  Double_t fMaxTrackEta; // cut on track eta
40  Double_t fMinTrackPhi; // cut on track phi
41  Double_t fMaxTrackPhi; // cut on track phi
42  Double_t fTrackEfficiency; // track efficiency
43  Bool_t fCopyMCFlag; // copy MC flag
44  TClonesArray *fTracksIn;
45  TClonesArray *fTracksOut;
46  TClonesArray *fMCParticles;
49 
50  private:
51  AliEmcalPicoTrackMaker(const AliEmcalPicoTrackMaker&); // not implemented
52  AliEmcalPicoTrackMaker &operator=(const AliEmcalPicoTrackMaker&); // not implemented
53 
54  ClassDef(AliEmcalPicoTrackMaker, 8); // Task to make PicoTracks in AOD/ESD events
55 };
56 #endif
double Double_t
Definition: External.C:58
void SetTrackEfficiency(Double_t eff=0.95)
void SetCopyMCFlag(Bool_t c, const char *name)
TCanvas * c
Definition: TestFitELoss.C:172
void SetTrackPtLimits(Double_t min, Double_t max)
AliNamedArrayI * fMCParticlesMap
MC particle array.
AliEmcalPicoTrackMaker & operator=(const AliEmcalPicoTrackMaker &)
void SetTrackEtaLimits(Double_t min, Double_t max)
int Int_t
Definition: External.C:63
void SetTracksInName(const char *name)
AliVParticle * GetMCParticle(Int_t label)
void SetTracksOutName(const char *name)
TClonesArray * fTracksOut
track array in
void UserExec(Option_t *option)
TClonesArray * fMCParticles
track array out
void SetTrackPhiLimits(Double_t min, Double_t max)
const char Option_t
Definition: External.C:48
bool Bool_t
Definition: External.C:53
Bool_t fInit
MC particle map.
void SetMCParticlesName(const char *name)