]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSTrigger.h
Correct bug in MakeSlidingCell and define 3 new data members related to the number...
[u/mrichter/AliRoot.git] / PHOS / AliPHOSTrigger.h
index 3edc96514cc49077abbfd72cc4f4a7c35a5579b1..74315ec8615a50d92dc946a83215b5e4c00fc314 100644 (file)
@@ -30,7 +30,9 @@ class AliPHOSTrigger : public AliTriggerDetector {
   virtual void    CreateInputs();
   virtual void    Trigger();  //Make PHOS trigger
   
-
+  const Int_t  GetNTRU() const              {return fNTRU ; }  
+  const Int_t  GetNTRUZ() const             {return fNTRUZ ; }  
+  const Int_t  GetNTRUPhi() const           {return fNTRUPhi ; }  
   const Int_t  GetL0Threshold() const       {return fL0Threshold ; }  
   const Int_t  GetL1LowThreshold() const    {return fL1LowThreshold ; }
   const Int_t  GetL1MediumThreshold() const {return fL1MediumThreshold ; }
@@ -38,26 +40,35 @@ class AliPHOSTrigger : public AliTriggerDetector {
 
   void         Print(const Option_t * opt ="") const ;  
 
+  void         SetNTRU(Int_t ntru)            {fNTRU              = ntru; }
+  void         SetNTRUZ(Int_t ntru)           {fNTRUZ             = ntru; }
+  void         SetNTRUPhi(Int_t ntru)         {fNTRUPhi           = ntru; }
   void         SetL0Threshold(Int_t amp)      {fL0Threshold       = amp; }
   void         SetL1LowThreshold(Int_t amp)   {fL1LowThreshold    = amp; } 
   void         SetL1MediumThreshold(Int_t amp){fL1MediumThreshold = amp; } 
   void         SetL1HighThreshold(Int_t amp)  {fL1HighThreshold   = amp; }
 
  private:
-  TClonesArray *  FillTRU(const TClonesArray * digits) ;
-  void MakeSlidingCell(const TClonesArray * trus, const Int_t mod, 
+  TClonesArray *  FillTRU(const TClonesArray * digits, 
+                         const AliPHOSGeometry * geom, const Int_t nModules, 
+                         const Int_t nCrystalsPhi, const Int_t nCrystalsZ) const ;
+  void MakeSlidingCell(const TClonesArray * trus, const Int_t mod,
+                      const Int_t nCrystalsPhi, const Int_t nCrystalsZ, 
                       Float_t *ampmax) ;
   void SetTriggers(const Float_t * ampmax) ;
 
 
  private: 
 
+  Int_t    fNTRU ;              //! Number of TRUs per module
+  Int_t    fNTRUZ ;             //! Number of crystal rows per Z in one TRU
+  Int_t    fNTRUPhi ;           //! Number of crystal rows per Phi in one TRU
   Int_t    fL0Threshold ;       //! L0 trigger energy threshold
   Int_t    fL1LowThreshold ;    //! High pT trigger energy threshold
   Int_t    fL1MediumThreshold ; //! 
   Int_t    fL1HighThreshold ;   //! 
 
-  ClassDef(AliPHOSTrigger,1)
+  ClassDef(AliPHOSTrigger,2)
 } ;