]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGJE/EMCALJetTasks/AliJetConstituentTagCopier.h
DiJet analysis updates (Marta)
[u/mrichter/AliRoot.git] / PWGJE / EMCALJetTasks / AliJetConstituentTagCopier.h
1 #ifndef ALIJETCONSTITUENTTAGCOPIER_H
2 #define ALIJETCONSTITUENTTAGCOPIER_H
3
4 // $Id: AliJetConstituentTagCopier.h  $
5
6 #include "AliAnalysisTaskEmcal.h"
7
8 class TClonesArray;
9 class TString;
10 class AliNamedArrayI;
11
12 class AliJetConstituentTagCopier : public AliAnalysisTaskEmcal {
13  public:
14   AliJetConstituentTagCopier();
15   AliJetConstituentTagCopier(const char *name);
16   virtual ~AliJetConstituentTagCopier();
17
18   void                        SetMCParticlesName(const char *n)      { fMCParticlesName       = n         ; }
19   void                        SetCleanBeforeCopy(Bool_t c)           { fCleanBeforeCopy       = c         ; }
20   void                        SetMCLabelShift(Int_t s)               { fMCLabelShift          = s         ; }
21
22  protected:
23   void                        ExecOnce();
24   Bool_t                      Run();
25   void                        DoClusterLoop(TClonesArray *array);
26   void                        DoTrackLoop(TClonesArray *array);
27   void                        DoEmcalParticleLoop(TClonesArray *array);
28
29   TString                     fMCParticlesName;                       // name of MC particle collection
30   Bool_t                      fCleanBeforeCopy;                       // clean bit map before copying
31   Int_t                       fMCLabelShift;                          // if MC label > fMCLabelShift, MC label -= fMCLabelShift
32   TClonesArray               *fMCParticles;                           //!MC particle collection
33   AliNamedArrayI             *fMCParticlesMap;                        //!MC particle map
34
35  private:
36   AliJetConstituentTagCopier(const AliJetConstituentTagCopier&);            // not implemented
37   AliJetConstituentTagCopier &operator=(const AliJetConstituentTagCopier&); // not implemented
38
39   ClassDef(AliJetConstituentTagCopier, 3) // Copy tags from particle level constituent to detector level
40 };
41
42 #endif