]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - VZERO/AliVZEROTriggerMask.h
Improved particle selection in TOF
[u/mrichter/AliRoot.git] / VZERO / AliVZEROTriggerMask.h
index 8e506d33b86b4ff071347a5631dfceeb850c3064..56750a9f01625fe4f000928ac56b1f3080c0472a 100644 (file)
@@ -7,8 +7,12 @@
 ///_________________________________________________________________________   
 
 #include <TObject.h>
+
 class TTree;
 class TClonesArray;
+class AliESDVZERO;
+class AliVZEROCalibData;
+class AliVZERORecoParam;
 
 class AliVZEROTriggerMask : public TObject
 {
@@ -16,40 +20,30 @@ class AliVZEROTriggerMask : public TObject
                    AliVZEROTriggerMask();   // constructor
    virtual        ~AliVZEROTriggerMask(){}  // destructor
 
-   void FillMasks(TTree* vzeroDigitsTree,
-                 TClonesArray* const vzeroDigits);
+   void FillMasks(AliESDVZERO *esdV0,
+                 AliVZEROCalibData *cal,
+                 TF1 *slewing);
    Double_t GetZPosition(const char* symname);
 
-   void            SetAdcThreshold(Float_t t=55.0) 
-     {fAdcThresHold=t;}
-   void            SetTimeWindowWidthBBA(Float_t w=50.0)
-     {fTimeWindowWidthBBA=w;}
-   void            SetTimeWindowWidthBBC(Float_t w=50.0)
-     {fTimeWindowWidthBBC=w;}
-   void            SetTimeWindowWidthBGA(Float_t w=20.0) 
-     {fTimeWindowWidthBGA=w;}
-   void            SetTimeWindowWidthBGC(Float_t w=20.0) 
-     {fTimeWindowWidthBGC=w;}
-
-   UInt_t GetBBtriggerV0A() const { return fBBtriggerV0A;}
-   UInt_t GetBGtriggerV0A() const { return fBGtriggerV0A;}
-   UInt_t GetBBtriggerV0C() const { return fBBtriggerV0C;}
-   UInt_t GetBGtriggerV0C() const { return fBGtriggerV0C;}
+   void SetRecoParam(const AliVZERORecoParam *param) { fRecoParam = param; }
+   const AliVZERORecoParam* GetRecoParam() const
+   {
+     if (!fRecoParam) {
+       AliFatal("Reco-param object is not set!");
+       return NULL;
+     }
+     return fRecoParam;
+   }
 
 private:
+   AliVZEROTriggerMask(const AliVZEROTriggerMask& mask);
+   AliVZEROTriggerMask& operator = (const AliVZEROTriggerMask& mask);
 
-   Float_t fAdcThresHold; // Threshold on the ADC
-   Float_t fTimeWindowWidthBBA; // size of the BBA window
-   Float_t fTimeWindowWidthBGA; // size of the BGA window
-   Float_t fTimeWindowWidthBBC; // size of the BBC window
-   Float_t fTimeWindowWidthBGC; // size of the BGC window
-   UInt_t fBBtriggerV0A; // bit mask for Beam-Beam trigger in V0A
-   UInt_t fBGtriggerV0A; // bit mask for Beam-Gas trigger in V0A
-   UInt_t fBBtriggerV0C; // bit mask for Beam-Beam trigger in V0C
-   UInt_t fBGtriggerV0C; // bit mask for Beam-Gas trigger in V0C
-
+   Float_t fV0ADist;     // Z position of V0A
+   Float_t fV0CDist;     // Z position of V0C
+   const AliVZERORecoParam* fRecoParam; //! Pointer to VZERO reco-param object
 
-   ClassDef( AliVZEROTriggerMask, 1 )  // VZERO Trigger Detector class
+   ClassDef( AliVZEROTriggerMask, 3 )  // VZERO Trigger Detector class
 };
 
 #endif // ALIVZEROTRIGGERMASK_H