]>
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 --- | |
13add4de | 14 | class TClonesArray ; |
15 | class TLorentzVector ; | |
2ab0c725 | 16 | class TFile; |
17 | ||
7587f5a5 | 18 | // --- AliRoot header files --- |
19 | #include "AliPHOSv0.h" | |
7587f5a5 | 20 | |
21 | class AliPHOSv1 : public AliPHOSv0 { | |
22 | ||
23 | public: | |
24 | ||
bea63bea | 25 | AliPHOSv1(void) ; |
7587f5a5 | 26 | AliPHOSv1(const char *name, const char *title="") ; |
5f20d3fb | 27 | AliPHOSv1(const AliPHOSv1 & phos) { |
28 | // cpy ctor: no implementation yet | |
29 | // requested by the Coding Convention | |
13add4de | 30 | abort() ; |
5f20d3fb | 31 | } |
bea63bea | 32 | virtual ~AliPHOSv1(void) ; |
33 | ||
b37750a6 | 34 | virtual void AddHit( Int_t shunt, Int_t primary, Int_t track, Int_t id, Float_t *hits) ; |
13add4de | 35 | // Float_t Calibrate(Int_t amp){ return (amp - fDigitizeA)/fDigitizeB ; } |
36 | // Int_t Digitize(Float_t Energy){ return (Int_t ) (fDigitizeA + Energy*fDigitizeB); } | |
37 | // virtual void Hits2SDigits() ; | |
2ab0c725 | 38 | virtual void MakeBranch(Option_t* opt, char *file=0 ) ; |
13add4de | 39 | // void Reconstruction(AliPHOSReconstructioner * Reconstructioner) ; |
40 | // void ResetClusters(){} ; | |
41 | // virtual void SDigits2Digits() ; | |
037cc66d | 42 | virtual Int_t IsVersion(void) const { |
43 | // Gives the version number | |
44 | return 1 ; | |
45 | } | |
46 | ||
13add4de | 47 | // virtual void ResetReconstruction() ; // Reset reconstructed objects |
48 | // void SetReconstructioner(AliPHOSReconstructioner& Reconstructioner) { | |
0a6d52e3 | 49 | // sets the reconstructionner object to be used |
13add4de | 50 | // fReconstructioner = &Reconstructioner ; |
51 | // } | |
037cc66d | 52 | |
0a6d52e3 | 53 | virtual void StepManager(void) ; |
54 | virtual TString Version(void){ | |
55 | // returns the version number | |
56 | return TString("v1") ; | |
57 | } | |
5f20d3fb | 58 | |
59 | AliPHOSv1 & operator = (const AliPHOSv1 & rvalue) { | |
a3dfe79c | 60 | // assignement operator requested by coding convention but not needed |
13add4de | 61 | abort() ; |
5f20d3fb | 62 | return *this ; |
63 | } | |
bea63bea | 64 | |
fa412d9b | 65 | void CPVDigitize (TLorentzVector p, Float_t *xy, Int_t moduleNumber, TClonesArray *digits) ; |
66 | Float_t CPVPadResponseFunction(Float_t qhit, Float_t zg, Float_t xg) ; | |
67 | Double_t CPVCumulPadResponse(Double_t x, Double_t y) ; | |
68 | ||
bea63bea | 69 | protected: |
70 | ||
fa412d9b | 71 | |
5f20d3fb | 72 | ClassDef(AliPHOSv1,1) // Implementation of PHOS manager class for layout EMC+PPSD |
7587f5a5 | 73 | |
74 | }; | |
75 | ||
76 | #endif // AliPHOSV1_H |