AliPhysics  e59a9ba (e59a9ba)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliEmcalMCTrackSelector.h
Go to the documentation of this file.
1 #ifndef ALIEMCALMCTRAKCSELECTOR_H
2 #define ALIEMCALMCTRAKCSELECTOR_H
3 
4 class TClonesArray;
5 class TString;
6 class AliVEvent;
7 class AliMCEvent;
8 class AliNamedArrayI;
9 class AliAODMCParticle;
10 
11 #include "AliAnalysisTaskSE.h"
12 
13 class AliEmcalMCTrackSelector : public AliAnalysisTaskSE {
14  public:
16  AliEmcalMCTrackSelector(const char *name);
17  virtual ~AliEmcalMCTrackSelector();
18 
20  void UserExec(Option_t *option);
21 
22  void SetOnlyPhysPrim(Bool_t s) { fOnlyPhysPrim = s ; }
23  void SetChargedMC(Bool_t c = kTRUE) { fChargedMC = c ; }
24  void SetEtaMax(Double_t e) { fEtaMax = e ; }
25  void SetRejectNK(Bool_t r = kTRUE) { fRejectNK = r ; }
26  void SetOnlyHIJING(Bool_t s) { fOnlyHIJING = s ; }
27  void SetParticlesOutName(const char *name) { fParticlesOutName = name ; }
28 
29  protected:
30  void ConvertMCParticles(); // for ESD analysis
31  void CopyMCParticles(); // for AOD analysis
32 
33  virtual Bool_t AcceptParticle(AliAODMCParticle* part) const;
34 
35  TString fParticlesOutName; // name of output particle array
36  Bool_t fOnlyPhysPrim; // true = only physical primary particles
37  Bool_t fRejectNK; // true = reject K_0^L and neutrons
38  Bool_t fChargedMC; // true = only charged particles
39  Bool_t fOnlyHIJING; // true = only HIJING particles
40  Double_t fEtaMax; // maximum eta to accept particles
42  Bool_t fInit;
43  TClonesArray *fParticlesIn;
44  TClonesArray *fParticlesOut;
46  AliVEvent *fEvent;
47  AliMCEvent *fMC;
48  Bool_t fIsESD;
49  Bool_t fDisabled;
50 
51  private:
52  AliEmcalMCTrackSelector(const AliEmcalMCTrackSelector&); // not implemented
53  AliEmcalMCTrackSelector &operator=(const AliEmcalMCTrackSelector&); // not implemented
54 
55  ClassDef(AliEmcalMCTrackSelector, 5); // Task to select particle in MC events
56 };
57 #endif
TClonesArray * fParticlesOut
particle array in (AOD)
Bool_t fIsESD
MC event (ESD)
void UserExec(Option_t *option)
Bool_t fDisabled
ESD or AOD analysis.
ClassDef(AliEmcalMCTrackSelector, 5)
void SetParticlesOutName(const char *name)
AliEmcalMCTrackSelector & operator=(const AliEmcalMCTrackSelector &)
AliNamedArrayI * fParticlesMap
particle array out
AliVEvent * fEvent
particle index/label
void SetRejectNK(Bool_t r=kTRUE)
void SetChargedMC(Bool_t c=kTRUE)
Bool_t fInit
name of the particle map
TClonesArray * fParticlesIn
true = task initialized
virtual Bool_t AcceptParticle(AliAODMCParticle *part) const