AliPhysics  master (3d17d9d)
Go to the documentation of this file.
1 #ifndef AliAodSkimTask_H
2 #define AliAodSkimTask_H
11 #include <AliAnalysisTaskSE.h>
12 #include <TString.h>
13 class AliAODMCHeader;
14 class TH1F;
17 {
18  public:
19  AliAodSkimTask(const char *name=0);
20  virtual ~AliAodSkimTask();
33  void SetCopyMC(Bool_t b) {fDoCopyMC=b;}
48  void SetCutMC(Bool_t b) {fCutMC=b;}
54  void SetRemPid(Bool_t b) {fDoRemPid=b;}
56  void SetYCutMC(Double_t v) {fYCutMC=v;}
57  const char *Str() const;
58  protected:
60  void UserExec(Option_t* option);
62  void Terminate(Option_t* option);
63  Bool_t PythiaInfoFromFile(const char *currFile, Float_t &xsec, Float_t &trials, Int_t &pthard);
64  Double_t fClusMinE; // minimum cluster energy to accept event
65  Double_t fTrackMinPt; // minimum track pt to accept event
66  Double_t fTrackMaxPt; // maximum track pt to accept event
67  Bool_t fDoBothMinTrackAndClus; // switch to enable simultaneous filtering for minimum track and cluster cuts
68  Bool_t fCutMC; // if true cut MC particles with |Y|>fYCutMC
69  Double_t fYCutMC; // cut for MC particles (default = 0.7)
70  Double_t fCutMinPt; // minimum pT to keep track
71  UInt_t fCutFilterBit; // filter bit(s) to select
72  TString fGammaBr; // gamma branch name
73  Bool_t fDoCopyHeader; // if true copy header
74  Bool_t fDoCopyVZERO; // if true copy VZERO
75  Bool_t fDoCopyTZERO; // if true copy TZERO
76  Bool_t fDoCopyVertices; // if true copy vertices
77  Bool_t fDoCopyTOF; // if true copy TOF
78  Bool_t fDoCopyTracklets; // if true copy tracklets
79  Bool_t fDoCopyTracks; // if true copy tracks
80  Bool_t fDoRemoveTracks; // if true remove tracks
81  Bool_t fDoCleanTracks; // if true clean tracks
82  Bool_t fDoRemCovMat; // if true remove cov matrix from tracks
83  Bool_t fDoRemPid; // if true remove PID object from tracks
84  Bool_t fDoCopyTrigger; // if true copy trigger (EMC)
85  Bool_t fDoCopyPTrigger; // if true copy trigger (PHS)
86  Bool_t fDoCopyCells; // if true copy cells (EMC)
87  Bool_t fDoCopyPCells; // if true copy cells (PHS)
88  Bool_t fDoCopyClusters; // if true copy clusters
89  Bool_t fDoCopyDiMuons; // if true copy dimuons
90  Bool_t fDoCopyTrdTracks; // if true copy trd tracks
91  Bool_t fDoCopyV0s; // if true copy v0s
92  Bool_t fDoCopyCascades; // if true copy cascades
93  Bool_t fDoCopyZDC; // if true copy zdc
94  Bool_t fDoCopyConv; // if true copy conversions
95  Bool_t fDoCopyMC; // if true copy MC particles
96  Bool_t fDoCopyMCHeader; // if true copy MC header
97  Bool_t fDoVertWoRefs; // if true then do not copy TRefs in vertices
98  Bool_t fDoVertMain; // if true then only copy main vertices
99  Bool_t fDoCleanTracklets; // if true then clean tracklets
105  AliAODMCHeader *fAODMcHeader;
107  TH1F *fHevs;
108  TH1F *fHclus;
109  TH1F *fHtrack;
110  const char *GetVersion() const { return "1.4"; }
111  virtual Bool_t KeepTrack(AliAODTrack *t);
112  virtual void CleanTrack(AliAODTrack *t);
114  AliAodSkimTask(const AliAodSkimTask&); // not implemented
115  AliAodSkimTask& operator=(const AliAodSkimTask&); // not implemented
116  ClassDef(AliAodSkimTask, 7); // AliAodSkimTask
117 };
118 #endif
Double_t fYCutMC
Double_t fTrackMaxPt
void SetClusMinE(Double_t v)
void SetCopyTOF(Bool_t b)
Bool_t fDoCopyTrigger
Int_t fPypthardbin
pythia trials
Bool_t fDoCopyPTrigger
Bool_t fDoCopyTracklets
virtual Bool_t KeepTrack(AliAODTrack *t)
double Double_t
Definition: External.C:58
Bool_t fDoVertWoRefs
void SetCopyZDC(Bool_t b)
void SetCopyClusters(Bool_t b)
void SetMinCutPt(Double_t pt)
void SetDoBothMinTrackAndClus(Bool_t b)
TH1F * fHevs
output list
void SetCopyMC(Bool_t b)
void SetTrackMinPt(Double_t v)
void SetCopyVertices(Bool_t b)
Float_t fPyxsec
events seen since last acceptance
void Terminate(Option_t *option)
AliAODEvent * fAOD
pythia pthard bin
Float_t fPytrials
pythia xsection
void SetCopyHeader(Bool_t b)
void SetTrackMaxPt(Double_t v)
Bool_t fDoRemoveTracks
Bool_t fDoCopyTracks
Bool_t fDoCopyHeader
Double_t fClusMinE
void SetCopyCells(Bool_t b)
void SetDoVertMain(Bool_t b)
int Int_t
Definition: External.C:63
void SetCopyConv(Bool_t b)
const char * Str() const
void SetDoVertWoRefs(Bool_t b)
unsigned int UInt_t
Definition: External.C:33
float Float_t
Definition: External.C:68
Double_t fTrackMinPt
void SetCleanTracks(Bool_t b)
void UserExec(Option_t *option)
UInt_t fCutFilterBit
void SetCopyTrigger(Bool_t b)
virtual ~AliAodSkimTask()
const char * GetVersion() const
track distribution
void SetCopyTracklets(Bool_t b)
Bool_t fDoCopyClusters
Use to skim AOD files.
TH1F * fHtrack
cluster distribution
void UserCreateOutputObjects()
void SetRemPid(Bool_t b)
Bool_t fDoCopyCascades
Bool_t fDoCleanTracklets
void SetCopyCascades(Bool_t b)
Bool_t fDoCleanTracks
TList * fOutputList
MC header.
Bool_t fDoCopyPCells
void SetCopyVZERO(Bool_t b)
void SetCopyV0s(Bool_t b)
TH1F * fHclus
events processed/accepted
void SetGammaBrName(TString s)
void SetRemoveTracks(Bool_t b)
void SetCutFilterBit(UInt_t b)
Bool_t fDoCopyVertices
AliAODMCHeader * fAODMcHeader
input event
Double_t fCutMinPt
void SetCleanTracklets(Bool_t b)
void SetCutMC(Bool_t b)
virtual void CleanTrack(AliAODTrack *t)
Bool_t PythiaInfoFromFile(const char *currFile, Float_t &xsec, Float_t &trials, Int_t &pthard)
void SetCopyMCHeader(Bool_t b)
Bool_t fDoCopyDiMuons
void SetCopyPCells(Bool_t b)
const char Option_t
Definition: External.C:48
Bool_t fDoCopyTrdTracks
AliAodSkimTask & operator=(const AliAodSkimTask &)
AliAodSkimTask(const char *name=0)
bool Bool_t
Definition: External.C:53
Bool_t fDoBothMinTrackAndClus
void SetYCutMC(Double_t v)
void SetCopyPTrigger(Bool_t b)
void SetCopyTZERO(Bool_t b)
void SetRemCovMat(Bool_t b)
void SetCopyDiMuons(Bool_t b)
void SetCopyTracks(Bool_t b)
void SetCopyTrdTracks(Bool_t b)
Bool_t fDoCopyMCHeader