]>
Commit | Line | Data |
---|---|---|
d15a28e7 | 1 | #ifndef ALIPHOS_H |
2 | #define ALIPHOS_H | |
3da30618 | 3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
6ad0bfa0 | 4 | * See cxx source for full Copyright notice */ |
6ad0bfa0 | 5 | /* $Id$ */ |
3da30618 | 6 | |
ffcecca6 | 7 | /* History of cvs commits: |
8 | * | |
9 | * $Log$ | |
7b60fe7e | 10 | * Revision 1.64 2005/11/03 13:09:19 hristov |
11 | * Removing meaningless const declarations (linuxicc) | |
12 | * | |
eb0b1051 | 13 | * Revision 1.63 2005/07/26 13:32:39 kharlov |
14 | * Restoring raw data fit from version of 29-Aug-2004 | |
15 | * | |
45c1ce6f | 16 | * Revision 1.62 2005/07/06 10:10:32 hristov |
17 | * Moving the functions used to initialize TF1 and TF2 to the pivate part of the class | |
18 | * | |
fac5662b | 19 | * Revision 1.61 2005/05/28 12:10:07 schutz |
20 | * Copy constructor is corrected (by T.P.) | |
21 | * | |
ffcecca6 | 22 | */ |
23 | ||
24 | ||
b2a60966 | 25 | //_________________________________________________________________________ |
26 | // Base Class for PHOS | |
27 | // | |
28 | //*-- Author: Laurent Aphecetche & Yves Schutz (SUBATECH) | |
fe4da5cc | 29 | |
fdeead01 | 30 | |
d15a28e7 | 31 | // --- ROOT system --- |
0e4b7936 | 32 | class TString ; |
7b326aac | 33 | class TTask ; |
fa7cce36 | 34 | class TFolder ; |
e957fea8 | 35 | class TTree ; |
e9a5efdf | 36 | class TRandom ; |
fe4da5cc | 37 | |
d15a28e7 | 38 | // --- AliRoot header files --- |
0e4b7936 | 39 | #include "AliDetector.h" |
351dd634 | 40 | #include "AliLog.h" |
8367ce9a | 41 | #include "AliPHOSGeometry.h" |
7b60fe7e | 42 | class AliPHOSAlignData; |
fe4da5cc | 43 | |
44 | class AliPHOS : public AliDetector { | |
45 | ||
e9a5efdf | 46 | public: |
fe4da5cc | 47 | |
6b87d0dd | 48 | AliPHOS() ; |
7b326aac | 49 | AliPHOS(const char* name, const char* title="") ; |
780fda6d | 50 | AliPHOS(AliPHOS & phos) : AliDetector(phos) { |
ffcecca6 | 51 | //Copy(*this) ; |
52 | phos.Copy(*this); | |
839ffcb3 | 53 | } |
7b326aac | 54 | virtual ~AliPHOS() ; |
0a6d52e3 | 55 | virtual void AddHit(Int_t, Int_t*, Float_t *) { |
0e4b7936 | 56 | // do not use this definition but the one below |
351dd634 | 57 | AliFatal(Form("do not use")) ; |
f1611b7c | 58 | |
0a6d52e3 | 59 | } |
a532e9d8 | 60 | virtual void AddHit( Int_t shunt, Int_t primary, Int_t track, |
61 | Int_t id, Float_t *hits ) = 0 ; | |
ffcecca6 | 62 | virtual void Copy(TObject &phos)const; |
487d23e3 | 63 | virtual AliDigitizer* CreateDigitizer(AliRunDigitizer* manager) const; |
8367ce9a | 64 | virtual void CreateMaterials() ; |
e9a5efdf | 65 | virtual void Digits2Raw(); |
184569b0 | 66 | virtual void FinishRun() {;} |
8367ce9a | 67 | virtual AliPHOSGeometry * GetGeometry() const |
68 | {return AliPHOSGeometry::GetInstance(GetTitle(),"") ; } | |
7b60fe7e | 69 | virtual AliPHOSGeometry * GetGeometry(AliPHOSAlignData *alignda) const |
70 | {return AliPHOSGeometry::GetInstance(GetTitle(),"",alignda) ; } | |
487d23e3 | 71 | virtual void Hits2SDigits(); |
fa7cce36 | 72 | virtual Int_t IsVersion(void) const = 0 ; |
e4d04cf1 | 73 | // Raw Read Out |
74 | Double_t GetRawFormatCapa() const { return fgCapa ; } | |
75 | Double_t GetRawFormatHighCharge() const { return fHighCharge ; } | |
76 | Double_t GetRawFormatHighGain() const { return fHighGain ; } | |
77 | Double_t GetRawFormatHighLowGainFactor() const { return fHighLowGainFactor ; } | |
78 | Double_t GetRawFormatLowCharge() const { return ( fHighCharge * fHighLowGainFactor ) ; } | |
79 | Double_t GetRawFormatLowGain() const { return ( fHighGain / fHighLowGainFactor ) ; } | |
80 | Int_t GetRawFormatLowGainOffset() const { return fLowGainOffset ; } | |
81 | Int_t GetRawFormatOrder() const { return fgOrder ; } | |
046ae904 | 82 | Int_t GetRawFormatTimeBins() const { return fkTimeBins ; } |
e4d04cf1 | 83 | Double_t GetRawFormatTimeMax() const { return fgTimeMax ; } |
84 | Double_t GetRawFormatTimePeak() const { return fgTimePeak ; } | |
85 | Double_t GetRawFormatTimeTrigger() const { return fgTimeTrigger ; } | |
e4d04cf1 | 86 | static Double_t RawResponseFunctionMax(Double_t charge, Double_t gain) ; |
45c1ce6f | 87 | static Double_t RawResponseFunction(Double_t *x, Double_t *par) ; |
eb0b1051 | 88 | Bool_t RawSampledResponse(Double_t dtime, Double_t damp, Int_t * adcH, Int_t * adcL) const ; |
e4d04cf1 | 89 | // |
8367ce9a | 90 | virtual AliLoader* MakeLoader(const char* topfoldername); |
7b7c1533 | 91 | virtual void SetTreeAddress(); |
a532e9d8 | 92 | virtual const TString Version() const {return TString(" ") ; } |
8c140292 | 93 | AliPHOS & operator = (const AliPHOS & /*rvalue*/) { |
e957fea8 | 94 | Fatal("operator =", "not implemented") ; return *this ; } |
88cb7938 | 95 | |
046ae904 | 96 | |
b73f246d | 97 | protected: |
046ae904 | 98 | |
184569b0 | 99 | |
100 | ||
e4d04cf1 | 101 | static Double_t fgCapa ; // capacitor of the preamplifier for the raw RO signal |
102 | Double_t fHighCharge ; // high charge (to convert energy to charge) for the raw RO signal | |
103 | Double_t fHighGain ; // high gain for the raw RO signal | |
104 | Double_t fHighLowGainFactor ; // high to low gain factor for the raw RO signal | |
105 | Int_t fLowGainOffset ; // to separate high from low gain in the DDL | |
106 | static Int_t fgOrder ; // order of the gamma function for the RO signal | |
107 | static const Int_t fkTimeBins = 256 ; // number of sampling bins of the raw RO signal | |
108 | static Double_t fgTimeMax ; // maximum sampled time of the raw RO signal | |
109 | static Double_t fgTimePeak ; // peaking time of the raw RO signal | |
110 | static Double_t fgTimeTrigger ; // time of the trigger for the RO signal | |
111 | ||
184569b0 | 112 | ClassDef(AliPHOS,5) // Photon Spectrometer Detector (base class) |
d15a28e7 | 113 | } ; |
fe4da5cc | 114 | |
d15a28e7 | 115 | #endif // ALIPHOS_H |