]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG/EMCAL/AliEmcalMCTrackSelector.h
Merge branch 'master' of https://git.cern.ch/reps/AliRoot
[u/mrichter/AliRoot.git] / PWG / EMCAL / AliEmcalMCTrackSelector.h
CommitLineData
578adbef 1#ifndef ALIEMCALMCTRACKSELECTOR_H
2#define ALIEMCALMCTRACKSELECTOR_H
3
4// $Id$
5
6class TClonesArray;
4be74b27 7class TString;
1f12855f 8class TH1I;
5be3857d 9class AliNamedArrayI;
578adbef 10
11#include "AliAnalysisTaskSE.h"
12
13class AliEmcalMCTrackSelector : public AliAnalysisTaskSE {
14 public:
15 AliEmcalMCTrackSelector();
16 AliEmcalMCTrackSelector(const char *name);
17 virtual ~AliEmcalMCTrackSelector();
18
19 void UserCreateOutputObjects();
20 void UserExec(Option_t *option);
21
578adbef 22 void SetChargedMC(Bool_t c = kTRUE) { fChargedMC = c ; }
df16061d 23 void SetEtaMax(Double_t e) { fEtaMax = e ; }
24 void SetRejectNK(Bool_t r = kTRUE) { fRejectNK = r ; }
25 void SetTracksOutName(const char *name) { fTracksOutName = name ; }
578adbef 26
27 protected:
09230f47 28 Int_t GetNumberOfTracks() const;
29 AliVParticle *GetTrack(Int_t i);
30 void AddTrack(AliVParticle *track, Int_t nacc);
31
578adbef 32 TString fTracksOutName; // name of output track array
33 Bool_t fRejectNK; // true = reject k0l and neutrons
34 Bool_t fChargedMC; // true = only charged particles
1f12855f 35 TString fTracksMapName; // name of the track map
df16061d 36 Double_t fEtaMax; // maximum eta to accept tracks
37 Bool_t fInit; //!true = task initialized
09230f47 38 Bool_t fEsdMode; //!switch for ESD/AOD mode
39 TClonesArray *fTracksIn; //!track array in (AOD only)
578adbef 40 TClonesArray *fTracksOut; //!track array out
5be3857d 41 AliNamedArrayI *fTracksMap; //!track mapping
578adbef 42
43 private:
44 AliEmcalMCTrackSelector(const AliEmcalMCTrackSelector&); // not implemented
45 AliEmcalMCTrackSelector &operator=(const AliEmcalMCTrackSelector&); // not implemented
46
1f12855f 47 ClassDef(AliEmcalMCTrackSelector, 2); // Task to select tracks in MC events
578adbef 48};
49#endif