]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ANALYSIS/AliTriggerAnalysis.h
Coverity fix.
[u/mrichter/AliRoot.git] / ANALYSIS / AliTriggerAnalysis.h
index 9b983c7ee88a1643101bfdb25dca451139c15559..4f2c08f4fbb7dca3212d674bcd3456ceb2729a30 100644 (file)
@@ -49,10 +49,12 @@ class AliTriggerAnalysis : public TObject
     Bool_t IsTriggerClassFired(const AliESDEvent* aEsd, const Char_t* tclass) const;
     
     // some "raw" trigger functions
-    Int_t SPDFiredChips(const AliESDEvent* aEsd, Int_t origin, Bool_t fillHists = kFALSE);
+    Int_t SPDFiredChips(const AliESDEvent* aEsd, Int_t origin, Bool_t fillHists = kFALSE, Int_t layer = 0);
     Bool_t SPDGFOTrigger(const AliESDEvent* aEsd, Int_t origin);
     V0Decision V0Trigger(const AliESDEvent* aEsd, AliceSide side, Bool_t online, Bool_t fillHists = kFALSE);
-    Bool_t ZDCTrigger(const AliESDEvent* aEsd, AliceSide side) const;
+    Bool_t ZDCTrigger   (const AliESDEvent* aEsd, AliceSide side) const;
+  Bool_t ZDCTDCTrigger(const AliESDEvent* aEsd, AliceSide side, Bool_t useZN=kTRUE, Bool_t useZP=kFALSE, Bool_t fillHists=kFALSE) const;
+  Bool_t ZDCTimeTrigger(const AliESDEvent *aEsd, Bool_t fillHists=kFALSE) const;
     Bool_t FMDTrigger(const AliESDEvent* aEsd, AliceSide side);
     Int_t SSDClusters(const AliESDEvent* aEsd);
     static const char* GetTriggerName(Trigger trigger);
@@ -66,13 +68,16 @@ class AliTriggerAnalysis : public TObject
     void SetV0AdcThr(Float_t thr) { fV0AdcThr = thr; }
     void SetV0HwPars(Float_t thr, Float_t winLow, Float_t winHigh) { fV0HwAdcThr = thr; fV0HwWinLow = winLow; fV0HwWinHigh = winHigh; }
     void SetFMDThreshold(Float_t low, Float_t hit) { fFMDLowCut = low; fFMDHitCut = hit; }
-    
+    void SetDoFMD(Bool_t flag = kTRUE) {fDoFMD = flag;}
+
     Int_t GetSPDGFOThreshhold() const { return fSPDGFOThreshold; }
     Float_t GetV0TimeOffset() const { return fV0TimeOffset; }
     Float_t GetV0AdcThr()     const { return fV0AdcThr; }
     Float_t GetFMDLowThreshold() const { return fFMDLowCut; }
     Float_t GetFMDHitThreshold() const { return fFMDHitCut; }
-    
+    TMap * GetTriggerClasses() const { return fTriggerClasses;}
+
+
     virtual Long64_t Merge(TCollection* list);
     void SaveHistograms() const;
     
@@ -100,6 +105,7 @@ class AliTriggerAnalysis : public TObject
     Float_t fV0HwWinLow;            // online V0 trigger - lower edge of time window
     Float_t fV0HwWinHigh;           // online V0 trigger - upper edge of time window
 
+    Bool_t  fDoFMD;                 // If false, skips the FMD (physics selection runs much faster)
     Float_t fFMDLowCut;                    // 
     Float_t fFMDHitCut;                    // 
     
@@ -107,7 +113,9 @@ class AliTriggerAnalysis : public TObject
     TH1F* fHistFiredBitsSPD;   // fired hardware bits
     TH1F* fHistV0A;            // histograms that histogram the criterion the cut is applied on: bb triggers
     TH1F* fHistV0C;            // histograms that histogram the criterion the cut is applied on: bb triggers
-    TH1F* fHistZDC;            // histograms that histogram the criterion the cut is applied on: fired bits (6 bins)
+    TH1F* fHistZDC;            //histograms that histogram the criterion the cut is applied on: fired bits (6 bins)
+    TH1F* fHistTDCZDC;         // histograms that histogram the criterion the cut is applied on: TDC bits (32 bins)
+    TH2F* fHistTimeZDC;        // histograms that histogram the criterion the cut is applied on: ZDC TDC timing
     TH1F* fHistFMDA;           // histograms that histogram the criterion the cut is applied on: number of hit combination above threshold
     TH1F* fHistFMDC;           // histograms that histogram the criterion the cut is applied on: number of hit combination above threshold
     TH1F* fHistFMDSingle;      // histograms that histogram the criterion the cut is applied on: single mult value (more than one entry per event)
@@ -118,7 +126,7 @@ class AliTriggerAnalysis : public TObject
     Bool_t fMC;              // flag if MC is analyzed
     AliESDtrackCuts* fEsdTrackCuts;  //Track Cuts to select ESD tracks
 
-    ClassDef(AliTriggerAnalysis, 10)
+    ClassDef(AliTriggerAnalysis, 12)
     
   private:
     AliTriggerAnalysis(const AliTriggerAnalysis&);