3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
6 //_________________________________________________________________________
7 // Implementation version v1 of PHOS Manager class
8 // Layout EMC + CPV has name IHEP
10 //*-- Author: Yves Schutz (SUBATECH)
12 // --- ROOT system ---
13 #include "TClonesArray.h"
17 // --- AliRoot header files ---
18 #include "AliPHOSv0.h"
19 #include "AliPHOSGeometry.h"
20 #include "AliPHOSReconstructor.h"
21 #include "AliPHOSTrackSegmentMaker.h"
22 #include "AliPHOSPID.h"
23 #include "AliPHOSCPVDigit.h"
25 class AliPHOSv1 : public AliPHOSv0 {
30 AliPHOSv1(const char *name, const char *title="") ;
31 AliPHOSv1(AliPHOSReconstructor * Reconstructioner, const char *name, const char *title="") ;
32 AliPHOSv1(const AliPHOSv1 & phos) {
33 // cpy ctor: no implementation yet
34 // requested by the Coding Convention
37 virtual ~AliPHOSv1(void) ;
39 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) ;
40 Float_t Calibrate(Int_t amp){ return (amp - fDigitizeA)/fDigitizeB ; }
41 Int_t Digitize(Float_t Energy){ return (Int_t ) (fDigitizeA + Energy*fDigitizeB); }
42 virtual void Hits2SDigits() ;
43 virtual void MakeBranch(Option_t* opt, char *file=0 ) ;
44 void Reconstruction(AliPHOSReconstructor * Reconstructioner) ;
45 void ResetClusters(){} ;
46 virtual void SDigits2Digits() ;
47 virtual Int_t IsVersion(void) const {
48 // Gives the version number
52 virtual void ResetReconstruction() ; // Reset reconstructed objects
53 void SetReconstructioner(AliPHOSReconstructor& Reconstructioner) {
54 // sets the reconstructionner object to be used
55 fReconstructioner = &Reconstructioner ;
57 void SetDigitThreshold(Float_t th) { fDigitThreshold = th ; }
58 void SetPpsdEnergyThreshold(Float_t enth) { fPpsdEnergyThreshold = enth ; }
59 void SetCpvEnergyThreshold(Float_t enth) { fCpvEnergyThreshold = enth ; }
61 virtual void StepManager(void) ;
62 virtual TString Version(void){
63 // returns the version number
64 return TString("v1") ;
67 AliPHOSv1 & operator = (const AliPHOSv1 & rvalue) {
68 // assignement operator requested by coding convention but not needed
73 void CPVDigitize (TLorentzVector p, Float_t *xy, Int_t moduleNumber, TClonesArray *digits) ;
74 Float_t CPVPadResponseFunction(Float_t qhit, Float_t zg, Float_t xg) ;
75 Double_t CPVCumulPadResponse(Double_t x, Double_t y) ;
79 Float_t fDigitThreshold ; // Threshold for the digit registration
80 Float_t fPpsdEnergyThreshold; //PPSD
81 Float_t fCpvEnergyThreshold; //CPV
82 Float_t fPinElectronicNoise ; // Electronic Noise in the PIN
83 Float_t fDigitizeA ; //Parameters of the
84 Float_t fDigitizeB ; //digitization
86 AliPHOSReconstructor * fReconstructioner ; // Clusterization and subtracking procedures
87 AliPHOSTrackSegmentMaker * fTrackSegmentMaker ; // Reconstructioner of the PHOS track segment: 2 x PPSD + 1 x EMC
89 ClassDef(AliPHOSv1,1) // Implementation of PHOS manager class for layout EMC+PPSD