]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSv1.h
Removing inheritances from TAttLine, TAttMarker and AliRndm in AliModule. The copy...
[u/mrichter/AliRoot.git] / PHOS / AliPHOSv1.h
index 741ae58a1e157f0db99c5efcb4d8c29efb7af5f5..3d5c6af030d4625d3c632ebc7c10a002fe0226a0 100644 (file)
@@ -3,27 +3,32 @@
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
 
+/* $Id$ */
+
+/* History of cvs commits:
+ *
+ * $Log$
+ * Revision 1.40  2006/09/13 07:31:01  kharlov
+ * Effective C++ corrections (T.Pocheptsov)
+ *
+ * Revision 1.39  2005/05/28 14:19:05  schutz
+ * Compilation warnings fixed by T.P.
+ *
+ */
+
 //_________________________________________________________________________
 // Implementation version v1 of PHOS Manager class 
-// Layout EMC + PPSD has name GPS2  
 // Layout EMC + CPV  has name IHEP
 //*--                  
 //*-- Author: Yves Schutz (SUBATECH)
 
 // --- ROOT system ---
-#include "TClonesArray.h"
-
+class TClonesArray ;
+class TLorentzVector ;
 class TFile;
 
 // --- AliRoot header files ---
 #include "AliPHOSv0.h"
-#include "AliPHOSGeometry.h"
-#include "AliPHOSReconstructioner.h"
-#include "AliPHOSTrackSegmentMaker.h"
-#include "AliPHOSPID.h"
-#include "AliPHOSCPVModule.h"
-#include "AliPHOSCPVHit.h"
-#include "AliPHOSCPVDigit.h"
 
 class AliPHOSv1 : public AliPHOSv0 {
 
@@ -31,75 +36,60 @@ public:
 
   AliPHOSv1(void) ;
   AliPHOSv1(const char *name, const char *title="") ;
-  AliPHOSv1(AliPHOSReconstructioner * Reconstructioner, const char *name, const char *title="") ;
-  AliPHOSv1(const AliPHOSv1 & phos) {
-    // cpy ctor: no implementation yet
-    // requested by the Coding Convention
-    assert(0==1) ; 
-  }
   virtual ~AliPHOSv1(void) ;
 
-  virtual void   AddHit( Int_t shunt, Int_t primary, Int_t track, Int_t id, Float_t *hits, Int_t pid, TLorentzVector p, Float_t *pos) ; 
-  Float_t        Calibrate(Int_t amp){ return (amp - fDigitizeA)/fDigitizeB ; }
-  Int_t          Digitize(Float_t Energy){ return (Int_t ) (fDigitizeA + Energy*fDigitizeB); }
-  //  virtual void   Hit2Digit(Int_t event) ;
-  virtual void   Hits2SDigits() ;
-  virtual void   MakeBranch(Option_t* opt, char *file=0 ) ;
-  void           Reconstruction(AliPHOSReconstructioner * Reconstructioner) ;
-  void           ResetClusters(){} ;
-  virtual void   ResetHits() ; 
-  virtual void   SDigits2Digits() ;  
+  using AliPHOSv0::AddHit;
+  virtual void   AddHit( Int_t shunt, Int_t primary, Int_t id, Float_t *hits) ; 
+  virtual void   FinishEvent() ;
+  virtual void   FinishPrimary() ;
   virtual Int_t  IsVersion(void) const {
     // Gives the version number 
     return 1 ; 
   }
 
-  virtual void   ResetReconstruction() ; // Reset reconstructed objects
-  void           SetReconstructioner(AliPHOSReconstructioner& Reconstructioner) {
-    // sets the reconstructionner object to be used
-    fReconstructioner = &Reconstructioner ;
-  }  
-  void           SetDigitThreshold(Float_t th) { fDigitThreshold = th ; } 
-  void           SetPpsdEnergyThreshold(Float_t enth)      { fPpsdEnergyThreshold = enth ; } 
-  void           SetCpvEnergyThreshold(Float_t enth)       { fCpvEnergyThreshold = enth ; } 
-
-  virtual void   SetTreeAddress(); 
   virtual void   StepManager(void) ;                              
-  virtual TString Version(void){ 
-    // returns the version number 
-    return TString("v1") ; 
-  }
-
-  AliPHOSv1 & operator = (const AliPHOSv1 & rvalue)  {
-    // assignement operator requested by coding convention but not needed
-    assert(0==1) ;
-    return *this ; 
-  }
-
-  // IHEP's CPV specific functions
-
-  //  AliPHOSCPVModule &GetEMCModule(int n) { return *(AliPHOSCPVModule*)fEMCModules->operator[](n); }
-  //  AliPHOSCPVModule &GetCPVModule(int n) { return *(AliPHOSCPVModule*)fCPVModules->operator[](n); }
+  virtual const TString Version(void)const { return TString("v1") ;  }
 
-  void       CPVDigitize (TLorentzVector p, Float_t *xy, Int_t moduleNumber, TClonesArray *digits) ;
+  void       CPVDigitize (TLorentzVector p, Float_t *xy, TClonesArray *digits) ;
   Float_t    CPVPadResponseFunction(Float_t qhit, Float_t zg, Float_t xg) ;
   Double_t   CPVCumulPadResponse(Double_t x, Double_t y) ;
 
+  //Variables conserning light yeild and APD efficiency
+  Float_t GetLightYieldMean()         const { return  fLightYieldMean ;}
+  Float_t GetLightYieldAttenuation()  const { return  fLightYieldAttenuation ;}
+  Float_t GetRecalibrationFactor()    const { return  fRecalibrationFactor ;}
+  Float_t GetAPDGain()                const { return  fAPDGain ;}
+  Float_t GetIntrinsicPINEfficiency() const { return  fIntrinsicPINEfficiency ;}
+  Float_t GetElectronsPerGeV()        const { return  fElectronsPerGeV ;}
+
+  void    SetLightYieldMean(Float_t LightYieldMean) 
+                                   {fLightYieldMean = LightYieldMean;}
+  void    SetLightYieldAttenuation(Float_t LightYieldAttenuation)
+                                   {fLightYieldAttenuation = LightYieldAttenuation;}
+  void    SetIntrinsicPINEfficiency(Float_t IntrinsicPINEfficiency) 
+                                   {fIntrinsicPINEfficiency = IntrinsicPINEfficiency;}
+  void    SetRecalibrationFactor(Float_t RecalibrationFactor) 
+                                   {fRecalibrationFactor = RecalibrationFactor;}
+  void    SetElectronsPerGeV(Float_t ElectronsPerGeV) 
+                                   {fElectronsPerGeV = ElectronsPerGeV;}
+  void    SetAPDGain(Float_t APDGain)   {fAPDGain = APDGain;}
+
 protected:
 
-  Float_t fDigitThreshold ;                       // Threshold for the digit registration 
-  Float_t fPpsdEnergyThreshold;                   //PPSD
-  Float_t fCpvEnergyThreshold;                    //CPV  
-  Float_t fPinElectronicNoise  ;                  // Electronic Noise in the PIN
-  Float_t fDigitizeA ;                            //Parameters of the 
-  Float_t fDigitizeB ;                            //digitization 
-  Int_t   fnSdigits ; 
-  AliPHOSReconstructioner  * fReconstructioner ;  // Clusterization and subtracking procedures
-  AliPHOSTrackSegmentMaker * fTrackSegmentMaker ; // Reconstructioner of the PHOS track segment: 2 x PPSD + 1 x EMC
-  //  TClonesArray             * fEMCModules;         // Array of EMC modules
-  //  TClonesArray             * fCPVModules;         // Array of CPV modules for the IHEP's version of CPV
-
-  ClassDef(AliPHOSv1,1)  // Implementation of PHOS manager class for layout EMC+PPSD
+  Float_t fLightYieldMean ;         // Mean lightyield in the PbOW4 xtal per GeV (Poisson distribution)
+  Float_t fIntrinsicPINEfficiency ; // Photo efficiency of the PIN diode   
+  Float_t fLightYieldAttenuation ;  // Attenuation of the light through the crystal
+  Float_t fRecalibrationFactor ;    // Recalibration factor
+  Float_t fElectronsPerGeV ;        // Number of electrons per GeV created in the PIN by a ionizing particle
+  Float_t fAPDGain ;                // APD Gain
+  Float_t fLightFactor ;            //! a calculated factor
+  Float_t fAPDFactor ;              //! a calculated factor
+
+ private:
+  AliPHOSv1(AliPHOSv1 & phos);
+  AliPHOSv1 & operator = (const AliPHOSv1 & /*rvalue*/);
+
+  ClassDef(AliPHOSv1,2)  // Implementation of PHOS manager class for layout EMC+PPSD
 
 };