]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGGA/EMCALTasks/AliEmcalPhysicsSelection.h
Fixing minor bug recognizing diffractive events in simulation
[u/mrichter/AliRoot.git] / PWGGA / EMCALTasks / AliEmcalPhysicsSelection.h
1 #ifndef ALIEMCALPHYSICSSELECTION_H
2 #define ALIEMCALPHYSICSSELECTION_H
3
4 // $Id$
5
6 #include "AliPhysicsSelection.h"
7
8 class AliEmcalPhysicsSelection: public AliPhysicsSelection
9 {
10  public:
11   enum EOfflineEmcalTypes { 
12     kEmcalHC = BIT(28), //=true when EMCAL cell above given Et found
13     kEmcalHT = BIT(29), //=true when EMCAL cluster above given Et found
14     kEmcalOk = BIT(31), //=false when EMCAL good event criteria are not met
15   };
16
17   AliEmcalPhysicsSelection();
18   virtual ~AliEmcalPhysicsSelection() {;}
19
20   virtual UInt_t GetSelectionMask(const TObject* obj);
21
22   void           SetCellMinE(Double_t e)       { fCellMinE     = e; }
23   void           SetClusMinE(Double_t e)       { fClusMinE     = e; }
24   void           SetMarkFastOnly(Bool_t b)     { fMarkFastOnly = b; }
25   void           SetMarkLedEvent(Bool_t b)     { fMarkLedEvent = b; }
26   void           SetSkipFastOnly(Bool_t b)     { fSkipFastOnly = b; }
27   void           SetSkipLedEvent(Bool_t b)     { fSkipLedEvent = b; }
28   Double_t       GetCellMaxE() const { return fCellMaxE;    }
29   Double_t       GetClusMaxE() const { return fClusMaxE;    }
30   Bool_t         IsFastOnly()  const { return fIsFastOnly;  }
31   Bool_t         IsLedEvent()  const { return fIsLedEvent;  }
32   Bool_t         IsGoodEvent() const { return fIsGoodEvent; }
33
34  protected:
35   Bool_t         fMarkFastOnly;     //=true then mark FastOnly events (only for LHC11a)
36   Bool_t         fMarkLedEvent;     //=true then mark Led events (only for LHC11a)
37   Bool_t         fSkipFastOnly;     //=true then skip FastOnly events (only for LHC11a)
38   Bool_t         fSkipLedEvent;     //=true then skip Led events (only for LHC11a)
39   Double_t       fCellMinE;         //minimum cell energy
40   Double_t       fClusMinE;         //minimum clus energy
41   Bool_t         fIsFastOnly;       //!=true if FASTONLY event is found
42   Bool_t         fIsLedEvent;       //!=true if LED event is found
43   Bool_t         fIsGoodEvent;      //!=true if good EMCAL event
44   Double_t       fCellMaxE;         //!maximum cell energy in event
45   Double_t       fClusMaxE;         //!maximum clus energy in event
46
47   ClassDef(AliEmcalPhysicsSelection, 2); // Emcal physics selection
48 };
49 #endif