1 /* $Id: AliOfflineTrigger.h 35782 2009-10-22 11:54:31Z jgrosseo $ */
3 #ifndef ALIOFFLINETRIGGER_H
4 #define ALIOFFLINETRIGGER_H
7 #include <AliPWG0Helper.h>
11 class AliOfflineTrigger : public TObject
14 enum AliceSide { kASide = 1, kCSide };
17 virtual ~AliOfflineTrigger() {}
19 Bool_t IsEventTriggered(const AliESDEvent* aEsd, AliPWG0Helper::Trigger trigger) const;
21 void SetSPDGFOThreshhold(Int_t t) { fSPDGFOThreshold = t; }
22 void SetV0Threshhold(Int_t aSide, Int_t cSide) { fV0AThreshold = aSide; fV0CThreshold = cSide; }
24 Int_t GetSPDGFOThreshhold() const { return fSPDGFOThreshold; }
25 Int_t GetV0AThreshold() const { return fV0AThreshold; }
26 Int_t GetV0CThreshold() const { return fV0CThreshold; }
29 Bool_t SPDGFOTrigger(const AliESDEvent* aEsd) const;
30 Bool_t V0Trigger(const AliESDEvent* aEsd, AliceSide side) const;
31 Bool_t ZDCTrigger(const AliESDEvent* aEsd, AliceSide side) const;
32 Bool_t FMDTrigger(const AliESDEvent* aEsd) const;
34 Int_t fSPDGFOThreshold; // number of chips to accept a SPD GF0 trigger
35 Int_t fV0AThreshold; // threshold for number of BB triggers in V0A
36 Int_t fV0CThreshold; // threshold for number of BB triggers in V0C
38 ClassDef(AliOfflineTrigger, 0)
41 AliOfflineTrigger(const AliOfflineTrigger&);
42 AliOfflineTrigger& operator=(const AliOfflineTrigger&);