AliPhysics  8b695ca (8b695ca)
AliEmcalAodTrackFilterTask.h
Go to the documentation of this file.
1 #ifndef ALIEMCALAODTRACKFILTERTASK_H
2 #define ALIEMCALAODTRACKFILTERTASK_H
3 
4 class TClonesArray;
5 
6 #include <TF1.h>
7 
8 #include "AliAnalysisTaskSE.h"
9 
11  public:
13  AliEmcalAodTrackFilterTask(const char *name);
15 
16  void SetAODfilterBits(Int_t b0 = 0, Int_t b1 = 0) { fAODfilterBits[0] = b0 ; fAODfilterBits[1] = b1 ; }
20  void SetDist(Double_t d) { fDist = d ; }
23  void SetMC(Bool_t b) { fIsMC = b ; }
24  void SetTracksInName(const char *name) { fTracksInName = name; }
25  void SetTracksOutName(const char *name) { fTracksOutName = name; }
27  void SetTrackEfficiency(Double_t eff = 0.95) { fTrackEfficiency = new TF1("eff", "[0]", 0, 500); fTrackEfficiency->FixParameter(0,eff); }
29  void SetTrackEfficiency(TF1* eff) { fTrackEfficiency = eff ; }
30 
31  protected:
33  void UserExec(Option_t *option);
34 
35  Int_t fAODfilterBits[2]; // AOD track filter bit map
36  TString fTracksOutName; // name of output track array
37  TString fTracksInName; // name of input track array
38  Bool_t fIncludeNoITS; // includes tracks with failed ITS refit
39  Double_t fCutMaxFrShTPCClus; // max fraction of shared TPC clusters
40  Bool_t fUseNegativeLabels; // whether or not should use negative MC labels
41  Bool_t fIsMC; // whether it is a MC event or not
42  Bool_t fDoPropagation; // if true then propagate all hybrid tracks to EMCal surface
43  Bool_t fAttemptProp; // if true then attempt to propagate if not done yet
44  Bool_t fAttemptPropMatch; // if true then attempt to propagate if not done yet but IsEMCAL is true
45  Bool_t fKeepInvMassTag; // if true then pass in track container labels for tagging tracks in jets
46  Double_t fDist; // distance to surface (440cm default)
47  TF1 *fTrackEfficiency; // track efficiency
48  TClonesArray *fTracksIn;
49  TClonesArray *fTracksOut;
50 
51  private:
52  AliEmcalAodTrackFilterTask(const AliEmcalAodTrackFilterTask&); // not implemented
54 
55  ClassDef(AliEmcalAodTrackFilterTask, 4); // Task to filter Aod tracks
56 };
57 #endif
double Double_t
Definition: External.C:58
void SetCutMaxFractionSharedTPCClusters(Double_t c=0.4)
void SetAODfilterBits(Int_t b0=0, Int_t b1=0)
void SetTrackEfficiency(Double_t eff=0.95)
TCanvas * c
Definition: TestFitELoss.C:172
TClonesArray * fTracksOut
track array in
int Int_t
Definition: External.C:63
AliEmcalAodTrackFilterTask & operator=(const AliEmcalAodTrackFilterTask &)
const char Option_t
Definition: External.C:48
void SetTracksInName(const char *name)
bool Bool_t
Definition: External.C:53
void SetTracksOutName(const char *name)