30{
31 RecEmcDigitMap::const_iterator ciDigitMap;
33
35
36 StatusCode sc;
37
39 sc= Gaudi::svcLocator()->service("EmcCalibConstSvc", emcCalibConstSvc);
40 if(sc != StatusCode::SUCCESS) {
41
42 }
43
44
46
47 std::string rawDataProviderSvc_name("RawDataProviderSvc");
48 if(isGaudiThreaded(m_algName)) {
49 rawDataProviderSvc_name += getGaudiThreadIDfromName(m_algName);
50 }
51
52 sc = Gaudi::svcLocator()->service(rawDataProviderSvc_name.c_str(), rawDataProviderSvc);
53 if(sc != StatusCode::SUCCESS) {
54
55 }
56
57 for(ciDigitMap=aDigitMap.begin();
58 ciDigitMap!=aDigitMap.end();
59 ++ciDigitMap) {
60
62
64
65 double ein,ecorr,eout;
67
68
70
74
75 int index = emcCalibConstSvc->
getIndex(partId,theta,phi);
76
77
78
80
84 if (emaxData>0) {
85
86 adc2e=emaxData/2.5;
87 }
88 }
89 }
90
91 ein *= adc2e ;
92
93
94
95
96 }
97
98
101 } else {
103 }
104 eout=ein;
106
108
109
111
112
114 }
115 }
116
117}
static unsigned int barrel_ec(const Identifier &id)
Values of different levels (failure returns 0)
static unsigned int theta_module(const Identifier &id)
static unsigned int phi_module(const Identifier &id)
static EmcRecParameter & GetInstance()
double ElectronicsNoiseLevel() const
double ElecBias(int n) const
int ElecSaturation() const
virtual double getDigiCalibConst(int No) const =0
virtual int getIndex(unsigned int PartId, unsigned int ThetaIndex, unsigned int PhiIndex) const =0
virtual double getCrystalEmaxData(int Index) const =0
virtual bool isOnlineMode()=0
RecEmcEnergy getEnergy() const
RecEmcEnergy Energy(const RecEmcEnergy &Energy)
RecEmcID CellId(const RecEmcID &CellId)
RecEmcID getCellId() const
RecEmcTime Time(const RecEmcTime &Time)