]>
Commit | Line | Data |
---|---|---|
7587f5a5 | 1 | #ifndef ALIPHOSV1_H |
2 | #define ALIPHOSV1_H | |
5f20d3fb | 3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
7587f5a5 | 4 | * See cxx source for full Copyright notice */ |
5f20d3fb | 5 | |
b2a60966 | 6 | //_________________________________________________________________________ |
5f20d3fb | 7 | // Implementation version v1 of PHOS Manager class |
8 | // Layout EMC + PPSD has name GPS2 | |
a3dfe79c | 9 | // Layout EMC + CPV has name IHEP |
10 | //*-- | |
5f20d3fb | 11 | //*-- Author: Yves Schutz (SUBATECH) |
7587f5a5 | 12 | |
13 | // --- ROOT system --- | |
bea63bea | 14 | #include "TClonesArray.h" |
7587f5a5 | 15 | |
16 | // --- AliRoot header files --- | |
17 | #include "AliPHOSv0.h" | |
5f20d3fb | 18 | #include "AliPHOSGeometry.h" |
bea63bea | 19 | #include "AliPHOSReconstructioner.h" |
5f20d3fb | 20 | #include "AliPHOSTrackSegmentMaker.h" |
21 | #include "AliPHOSPID.h" | |
3d402178 | 22 | #include "AliPHOSCPVModule.h" |
23 | #include "AliPHOSCPVHit.h" | |
24 | #include "AliPHOSCPVDigit.h" | |
7587f5a5 | 25 | |
26 | class AliPHOSv1 : public AliPHOSv0 { | |
27 | ||
28 | public: | |
29 | ||
bea63bea | 30 | AliPHOSv1(void) ; |
7587f5a5 | 31 | AliPHOSv1(const char *name, const char *title="") ; |
5f20d3fb | 32 | AliPHOSv1(AliPHOSReconstructioner * Reconstructioner, const char *name, const char *title="") ; |
33 | AliPHOSv1(const AliPHOSv1 & phos) { | |
34 | // cpy ctor: no implementation yet | |
35 | // requested by the Coding Convention | |
36 | assert(0==1) ; | |
37 | } | |
bea63bea | 38 | virtual ~AliPHOSv1(void) ; |
39 | ||
40 | virtual void AddHit( Int_t shunt, Int_t primary, Int_t track, Int_t id, Float_t *hits ) ; | |
5f20d3fb | 41 | Int_t Digitize(Float_t Energy); |
0a6d52e3 | 42 | virtual void FinishEvent(void) ; |
e04976bd | 43 | virtual Int_t IsVersion(void) const { |
44 | // Gives the version number | |
45 | return 1 ; | |
46 | } | |
5f20d3fb | 47 | virtual void MakeBranch(Option_t* opt) ; |
5f20d3fb | 48 | void Reconstruction(AliPHOSReconstructioner * Reconstructioner) ; |
49 | void ResetClusters(){} ; | |
50 | virtual void ResetDigits() ; | |
fa412d9b | 51 | virtual void ResetHits() ; |
5f20d3fb | 52 | virtual void ResetReconstruction() ; // Reset reconstructed objects |
0a6d52e3 | 53 | void SetReconstructioner(AliPHOSReconstructioner& Reconstructioner) { |
54 | // sets the reconstructionner object to be used | |
55 | fReconstructioner = &Reconstructioner ; | |
88bdfa12 | 56 | } |
5f20d3fb | 57 | void SetDigitThreshold(Float_t th) { fDigitThreshold = th ; } |
58 | virtual void SetTreeAddress(); | |
0a6d52e3 | 59 | virtual void StepManager(void) ; |
60 | virtual TString Version(void){ | |
61 | // returns the version number | |
62 | return TString("v1") ; | |
63 | } | |
5f20d3fb | 64 | |
65 | AliPHOSv1 & operator = (const AliPHOSv1 & rvalue) { | |
a3dfe79c | 66 | // assignement operator requested by coding convention but not needed |
5f20d3fb | 67 | assert(0==1) ; |
68 | return *this ; | |
69 | } | |
bea63bea | 70 | |
fa412d9b | 71 | // IHEP's CPV specific functions |
72 | ||
3d402178 | 73 | AliPHOSCPVModule &GetCPVModule(int n) { return *(AliPHOSCPVModule*)fCPVModules->operator[](n); } |
fa412d9b | 74 | void CPVDigitize (TLorentzVector p, Float_t *xy, Int_t moduleNumber, TClonesArray *digits) ; |
75 | Float_t CPVPadResponseFunction(Float_t qhit, Float_t zg, Float_t xg) ; | |
76 | Double_t CPVCumulPadResponse(Double_t x, Double_t y) ; | |
77 | ||
bea63bea | 78 | protected: |
79 | ||
5f20d3fb | 80 | Float_t fDigitThreshold ; // Threshold for the digit registration |
81 | Int_t fNTmpHits ; //! Used internally for digitalization | |
82 | Float_t fPinElectronicNoise ; // Electronic Noise in the PIN | |
5f20d3fb | 83 | AliPHOSReconstructioner * fReconstructioner ; // Reconstrutioner of the PHOS event: Clusterization and subtracking procedures |
84 | TClonesArray * fTmpHits ; //! Used internally for digitalization | |
85 | AliPHOSTrackSegmentMaker * fTrackSegmentMaker ; // Reconstructioner of the PHOS track segment: 2 x PPSD + 1 x EMC | |
86 | ||
fa412d9b | 87 | TClonesArray * fCPVModules; // Array of CPV modules for the IHEP's version of CPV |
88 | ||
5f20d3fb | 89 | ClassDef(AliPHOSv1,1) // Implementation of PHOS manager class for layout EMC+PPSD |
7587f5a5 | 90 | |
91 | }; | |
92 | ||
93 | #endif // AliPHOSV1_H |