]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ZDC/AliZDCReco.h
Detector Algorithm for pedestal runs.
[u/mrichter/AliRoot.git] / ZDC / AliZDCReco.h
index bb4242e2ca6448f0e4151f7baef814d48b965c1f..db0957bc74a391c8748be63c30cf431fc78c6410 100644 (file)
@@ -21,7 +21,8 @@ public:
             Int_t detspnSideC, Int_t detsppSideC,  
             Int_t trsp, Int_t trspSideA, Int_t trspSideC,
             Int_t npart, Int_t npartSideA, Int_t npartSideC, 
-            Float_t b, Float_t bSideA, Float_t bSideC);
+            Float_t b, Float_t bSideA, Float_t bSideC,
+            UInt_t recoFlag, Bool_t scalerOn, UInt_t* scaler);
 
   AliZDCReco(const AliZDCReco &oldreco);
   virtual ~AliZDCReco() {}
@@ -70,6 +71,15 @@ public:
   virtual Float_t GetImpParameter()    const {return fImpParameter;}
   virtual Float_t GetImpParSideA()     const {return fImpParSideA;}
   virtual Float_t GetImpParSideC()     const {return fImpParSideC;}
+  //
+  virtual UInt_t  GetRecoFlag()      const {return fRecoFlag;}
+  virtual UInt_t  GetZDCPattern()    const {return (fRecoFlag & 0x0000003f);}
+  virtual UInt_t  GetChOnFlag()      const {return (fRecoFlag & 0x00000100);}
+  virtual UInt_t  GetChOvflwFlag()   const {return (fRecoFlag & 0x00000200);}
+  virtual UInt_t  GetChUndflwFlag()  const {return (fRecoFlag & 0x00000400);}
+  //
+  virtual Bool_t  IsScalerOn()          const {return fIsScalerOn;}
+  virtual UInt_t  GetZDCScaler(Int_t k) const {return fZDCScaler[k];}
 
   // Print method
   virtual void Print(Option_t *) const;
@@ -105,9 +115,12 @@ private:
   Float_t fImpParameter;   // Estimate of the impact parameter
   Float_t fImpParSideA;           // Estimate of the impact parameter side A
   Float_t fImpParSideC;           // Estimate of the impact parameter side B
+  //
+  UInt_t  fRecoFlag;       // Reconstruction flag
+  Bool_t  fIsScalerOn;     // True if scaler has been read in the event
+  UInt_t  fZDCScaler[32];  // Counts from ZDC VME scaler
 
-
-  ClassDef(AliZDCReco,6)  // RecPoints for the Zero Degree Calorimeters
+  ClassDef(AliZDCReco,8)  // RecPoints for the Zero Degree Calorimeters
 };
  
 #endif