ATLAS Offline Software
LArRamps2Ntuple.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
8 
9 #include <cmath>
10 
11 LArRamps2Ntuple::LArRamps2Ntuple(const std::string& name, ISvcLocator* pSvcLocator):
12  LArCond2NtupleBase(name, pSvcLocator),
13  m_rampKey("LArRamp"){
14 
15  declareProperty("ContainerKey", m_contKey,
16  "List of keys of RawRamp containers");
17  declareProperty("RampKey", m_rampKey,
18  "Key of LArRampComplete or LArRampMC objects");
19  declareProperty("NtupleName", m_ntName ="RAMPS");
20  declareProperty("RawRamp", m_rawRamp = false);
21  declareProperty("SaveAllSamples", m_saveAllSamples = false);
22  declareProperty("ApplyCorr", m_applyCorr=false);
23  declareProperty("AddCorrUndo", m_addCorrUndo=true);
24 }
25 
27  m_ntTitle="Ramps";
28  m_ntpath=std::string("/NTUPLES/FILE1/")+m_ntName;
29 
32 }
33 
34 
36 = default;
37 
39  bool hasRawRampContainer=false;
40  StatusCode sc;
41  NTuple::Item<long> cellIndex;
42  NTuple::Item<long> gain;
43  NTuple::Item<long> corrUndo;
44  NTuple::Array<float> SampleMax;
45  NTuple::Array<float> TimeMax;
46  NTuple::Array<float> DAC;
47  NTuple::Array<float> ADC;
48  NTuple::Array<long> NTriggers;
49 
50  // individual samples. Very dirty :-(
51  NTuple::Array<float> Sample0;
52  NTuple::Array<float> Sample1;
53  NTuple::Array<float> Sample2;
54  NTuple::Array<float> Sample3;
55  NTuple::Array<float> Sample4;
56  NTuple::Array<float> Sample5;
57  NTuple::Array<float> Sample6;
58 
59  // idem for RMS
60  NTuple::Array<float> RMS0;
61  NTuple::Array<float> RMS1;
62  NTuple::Array<float> RMS2;
63  NTuple::Array<float> RMS3;
64  NTuple::Array<float> RMS4;
65  NTuple::Array<float> RMS5;
66  NTuple::Array<float> RMS6;
67 
68  NTuple::Item<unsigned long> DACIndex;
69  NTuple::Array<float> coeffs;
70  NTuple::Item<unsigned long> coeffIndex;
71 
72  NTuple::Item<float> RampRMS;
73 
74  if (m_rawRamp && !m_contKey.empty()) {
75  //Retrieve Raw Ramp Container
76  for (const std::string& key : m_contKey) {
77  LArRawRampContainer* rawRampContainer=nullptr;
78  sc=m_detStore->retrieve(rawRampContainer,key);
79  if (sc!=StatusCode::SUCCESS || !rawRampContainer) {
80  ATH_MSG_WARNING( "Unable to retrieve LArRawRampContainer with key " << key );
81  }
82  else {
83  ATH_MSG_DEBUG( "Got LArRawRampContainer with key " << key );
84  hasRawRampContainer = true;
85  }
86  }
87  if (!hasRawRampContainer) ATH_MSG_WARNING( " No LArRawRampContainer found. Only fitted ramp in ntuple " );
88 
89  }
90  //end-if m_rawRamp
91 
92 
93  // For compatibility with existing configurations, look in the detector
94  // store first, then in conditions.
95  const ILArRamp* ramp =
96  detStore()->tryConstRetrieve<ILArRamp> (m_rampKey.key());
97  if (!ramp) {
99  ramp = *readHandle;
100  }
101 
102  LArRampComplete* rampComplete_nc=nullptr; //for (potential) applyCorr
103 
104  if (ramp==nullptr) {
105  ATH_MSG_WARNING( "Unable to retrieve ILArRamp with key: "<<m_rampKey << " from DetectorStore" );
106  }
107 
108  if (!ramp && !hasRawRampContainer) {
109  ATH_MSG_ERROR( "Have neither Raw Ramp nor Fitted Ramp. No Ntuple produced." );
110  return StatusCode::FAILURE;
111  }
112 
113  sc=m_nt->addItem("cellIndex",cellIndex,0,2000);
114  if (sc!=StatusCode::SUCCESS) {
115  ATH_MSG_ERROR( "addItem 'Cell Index' failed" );
116  return StatusCode::FAILURE;
117  }
118 
119  sc=m_nt->addItem("gain",gain,0,3);
120  if (sc!=StatusCode::SUCCESS) {
121  ATH_MSG_ERROR( "addItem 'gain' failed" );
122  return StatusCode::FAILURE;
123  }
124 
125  if (m_addCorrUndo) {
126  sc=m_nt->addItem("corrUndo",corrUndo,0,1);
127  if (sc!=StatusCode::SUCCESS) {
128  ATH_MSG_ERROR( "addItem 'corrUndo' failed" );
129  return StatusCode::FAILURE;
130  }
131  }
132 
133  if (hasRawRampContainer)
134  {
135  sc=m_nt->addItem("DACIndex",DACIndex,0,800);
136  if (sc!=StatusCode::SUCCESS) {
137  ATH_MSG_ERROR( "addItem 'DACIndex' failed" );
138  return StatusCode::FAILURE;
139  }
140 
141  sc=m_nt->addItem("SampleMax",DACIndex,SampleMax);
142  if (sc!=StatusCode::SUCCESS)
143  {ATH_MSG_ERROR( "addItem 'SampleMax' failed" );
144  return StatusCode::FAILURE;
145  }
146 
147  sc=m_nt->addItem("TimeMax",DACIndex,TimeMax);
148  if (sc!=StatusCode::SUCCESS)
149  {ATH_MSG_ERROR( "addItem 'TimeMax' failed" );
150  return StatusCode::FAILURE;
151  }
152  sc=m_nt->addItem("ADC",DACIndex,ADC);
153  if (sc!=StatusCode::SUCCESS)
154  {ATH_MSG_ERROR( "addItem 'ADC' failed" );
155  return StatusCode::FAILURE;
156  }
157 
158  sc=m_nt->addItem("DAC",DACIndex,DAC);
159  if (sc!=StatusCode::SUCCESS)
160  {ATH_MSG_ERROR( "addItem 'DAC' failed" );
161  return StatusCode::FAILURE;
162  }
163 
164  sc=m_nt->addItem("NTriggers",DACIndex,NTriggers);
165  if (sc!=StatusCode::SUCCESS) {
166  ATH_MSG_ERROR( "addItem 'NTriggers' failed" );
167  return StatusCode::FAILURE;
168  }
169 
170  if(m_saveAllSamples){
171  sc=m_nt->addItem("Sample0",DACIndex,Sample0);
172  if (sc!=StatusCode::SUCCESS)
173  {ATH_MSG_ERROR( "addItem 'Sample0' failed" );
174  return StatusCode::FAILURE;
175  }
176  sc=m_nt->addItem("Sample1",DACIndex,Sample1);
177  if (sc!=StatusCode::SUCCESS)
178  {ATH_MSG_ERROR( "addItem 'Sample1' failed" );
179  return StatusCode::FAILURE;
180  }
181  sc=m_nt->addItem("Sample2",DACIndex,Sample2);
182  if (sc!=StatusCode::SUCCESS)
183  {ATH_MSG_ERROR( "addItem 'Sample2' failed" );
184  return StatusCode::FAILURE;
185  }
186  sc=m_nt->addItem("Sample3",DACIndex,Sample3);
187  if (sc!=StatusCode::SUCCESS)
188  {ATH_MSG_ERROR( "addItem 'Sample3' failed" );
189  return StatusCode::FAILURE;
190  }
191  sc=m_nt->addItem("Sample4",DACIndex,Sample4);
192  if (sc!=StatusCode::SUCCESS)
193  {ATH_MSG_ERROR( "addItem 'Sample4' failed" );
194  return StatusCode::FAILURE;
195  }
196  sc=m_nt->addItem("Sample5",DACIndex,Sample5);
197  if (sc!=StatusCode::SUCCESS)
198  {ATH_MSG_ERROR( "addItem 'Sample5' failed" );
199  return StatusCode::FAILURE;
200  }
201  sc=m_nt->addItem("Sample6",DACIndex,Sample6);
202  if (sc!=StatusCode::SUCCESS)
203  {ATH_MSG_ERROR( "addItem 'Sample6' failed" );
204  return StatusCode::FAILURE;
205  }
206 
207  sc=m_nt->addItem("RMS0",DACIndex,RMS0);
208  if (sc!=StatusCode::SUCCESS)
209  {ATH_MSG_ERROR( "addItem 'RMS0' failed" );
210  return StatusCode::FAILURE;
211  }
212  sc=m_nt->addItem("RMS1",DACIndex,RMS1);
213  if (sc!=StatusCode::SUCCESS)
214  {ATH_MSG_ERROR( "addItem 'RMS1' failed" );
215  return StatusCode::FAILURE;
216  }
217  sc=m_nt->addItem("RMS2",DACIndex,RMS2);
218  if (sc!=StatusCode::SUCCESS)
219  {ATH_MSG_ERROR( "addItem 'RMS2' failed" );
220  return StatusCode::FAILURE;
221  }
222  sc=m_nt->addItem("RMS3",DACIndex,RMS3);
223  if (sc!=StatusCode::SUCCESS)
224  {ATH_MSG_ERROR( "addItem 'RMS3' failed" );
225  return StatusCode::FAILURE;
226  }
227  sc=m_nt->addItem("RMS4",DACIndex,RMS4);
228  if (sc!=StatusCode::SUCCESS)
229  {ATH_MSG_ERROR( "addItem 'RMS4' failed" );
230  return StatusCode::FAILURE;
231  }
232  sc=m_nt->addItem("RMS5",DACIndex,RMS5);
233  if (sc!=StatusCode::SUCCESS)
234  {ATH_MSG_ERROR( "addItem 'RMS5' failed" );
235  return StatusCode::FAILURE;
236  }
237  sc=m_nt->addItem("RMS6",DACIndex,RMS6);
238  if (sc!=StatusCode::SUCCESS)
239  {ATH_MSG_ERROR( "addItem 'RMS6' failed" );
240  return StatusCode::FAILURE;
241  }
242  }// end-if Save all samples
243  }//end if rawRampContainer
244 
245  if (ramp) {
246  sc=m_nt->addItem("Xi",coeffIndex,0,7);
247  if (sc!=StatusCode::SUCCESS)
248  {ATH_MSG_ERROR( "addItem 'coeffIndex' failed" );
249  return StatusCode::FAILURE;
250  }
251 
252  sc=m_nt->addItem("X",coeffIndex,coeffs);
253  if (sc!=StatusCode::SUCCESS)
254  {ATH_MSG_ERROR( "addItem 'coeff' failed" );
255  return StatusCode::FAILURE;
256  }
257 
258  if (hasRawRampContainer) { //== RampComplete && RawRamp
259  sc=m_nt->addItem("RampRMS",RampRMS,-1000,1000);
260  if (sc!=StatusCode::SUCCESS)
261  {ATH_MSG_ERROR( "addItem 'RampRMS' failed" );
262  return StatusCode::FAILURE;
263  }
264  }
265 
266  if (m_applyCorr) {
267  const LArRampComplete* rampComplete=dynamic_cast<const LArRampComplete*>(ramp);
268  if (!rampComplete) {
269  ATH_MSG_WARNING("Failed to dyn-cast to ILArRamp to LArRampComplete. Cannot apply corrections");
270  m_applyCorr=false;
271  }
272  if (rampComplete and !rampComplete->correctionsApplied()) {
273  rampComplete_nc=const_cast<LArRampComplete*>(rampComplete);
274  sc=rampComplete_nc->applyCorrections();
275  if (sc.isFailure()) {
276  ATH_MSG_ERROR( "Failed to apply corrections to LArRampComplete!" );
277  }
278  else
279  ATH_MSG_INFO( "Applied corrections to LArRampComplete" );
280  }
281  else {
282  ATH_MSG_WARNING( "Corrections already applied. Can't apply twice!" );
283  }
284  }// end if applyCorr
285  }//end-if ramp
286 
287  const LArOnOffIdMapping *cabling=nullptr;
288  if(m_isSC) {
289  ATH_MSG_DEBUG( "LArRamps2Ntuple: using SC cabling" );
291  cabling=*cablingHdl;
292  }else{
294  cabling=*cablingHdl;
295  }
296 
297 
298  if(!cabling) {
299  ATH_MSG_WARNING( "Do not have cabling object LArOnOffIdMapping" );
300  return StatusCode::FAILURE;
301  }
302 
303  unsigned cellCounter=0;
304  if (hasRawRampContainer) { //Loop over raw ramp container and fill ntuple
305 
306  //Retrieve Raw Ramp Container
307  for (const std::string& key : m_contKey) {
308  LArRawRampContainer* rawRampContainer=nullptr;
309  sc=m_detStore->retrieve(rawRampContainer,key);
310  if (sc!=StatusCode::SUCCESS || !rawRampContainer) {
311  ATH_MSG_WARNING( "Unable to retrieve LArRawRampContainer with key " << key );
312  continue;
313  }
314  for (const LArRawRamp* rawramp : *rawRampContainer) {
315  const std::vector<LArRawRamp::RAMPPOINT_t>& singleRamp=rawramp->theRamp();
316 
317  for (DACIndex=0;DACIndex<singleRamp.size();DACIndex++) {
318  SampleMax[DACIndex] = singleRamp[DACIndex].iMaxSample;
319  TimeMax[DACIndex] = singleRamp[DACIndex].TimeMax;
320  ADC[DACIndex] = singleRamp[DACIndex].ADC;
321  NTriggers[DACIndex] = singleRamp[DACIndex].NTriggers;
322  DAC[DACIndex] = singleRamp[DACIndex].DAC;
323 
324  if(m_saveAllSamples){
325 
326  if ( singleRamp[DACIndex].Samples.empty() || singleRamp[DACIndex].RMS.empty() ) {
327  ATH_MSG_WARNING( "Cannot save all samples, vector empty" );
328  } else {
329 
330  Sample0[DACIndex]=singleRamp[DACIndex].Samples[0];
331  Sample1[DACIndex]=singleRamp[DACIndex].Samples[1];
332  Sample2[DACIndex]=singleRamp[DACIndex].Samples[2];
333  Sample3[DACIndex]=singleRamp[DACIndex].Samples[3];
334  Sample4[DACIndex]=singleRamp[DACIndex].Samples[4];
335  if(singleRamp[DACIndex].Samples.size()>5) Sample5[DACIndex]=singleRamp[DACIndex].Samples[5];
336  if(singleRamp[DACIndex].Samples.size()>6) Sample6[DACIndex]=singleRamp[DACIndex].Samples[6];
337 
338  RMS0[DACIndex]=singleRamp[DACIndex].RMS[0];
339  RMS1[DACIndex]=singleRamp[DACIndex].RMS[1];
340  RMS2[DACIndex]=singleRamp[DACIndex].RMS[2];
341  RMS3[DACIndex]=singleRamp[DACIndex].RMS[3];
342  RMS4[DACIndex]=singleRamp[DACIndex].RMS[4];
343  if(singleRamp[DACIndex].RMS.size()>5) RMS5[DACIndex]=singleRamp[DACIndex].RMS[5];
344  if(singleRamp[DACIndex].RMS.size()>6) RMS6[DACIndex]=singleRamp[DACIndex].RMS[6];
345  }
346  }
347 
348  }
349 
350  HWIdentifier chid=rawramp->channelID();
351  unsigned igain = (unsigned)rawramp->gain();
352  gain = igain;
353  if (m_addCorrUndo) corrUndo=0;
354  if (ramp && cabling->isOnlineConnected(chid)) {
355 
356  //FT move to here
357  fillFromIdentifier(chid);
358 
359  unsigned nDAC=0;
360  unsigned nCoeff=0;
361  const ILArRamp::RampRef_t rampcoeff = ramp->ADC2DAC(chid,igain);
362  if (rampcoeff.size()==0) {
363  ATH_MSG_WARNING( "Can't get fitted Ramp slot=" << static_cast<long>(m_slot) <<
364  " channel=" << static_cast<long>(m_channel) << " gain=" << igain );
365  }
366  for (coeffIndex=0;coeffIndex<rampcoeff.size();coeffIndex++) coeffs[coeffIndex]=rampcoeff[coeffIndex];
367  nDAC = singleRamp.size();
368  nCoeff = rampcoeff.size();
369 
370  if (nDAC>1 && nCoeff>0) {
371 
372  double rampDev=0;
373  for (unsigned iDAC=1;iDAC<nDAC;iDAC++) {
374  double fittedResult=0;
375  for (unsigned icoeff=0;icoeff<nCoeff;icoeff++)
376  fittedResult+=coeffs[icoeff]*pow(ADC[iDAC],icoeff);
377  rampDev+=(fittedResult-DAC[iDAC])*(fittedResult-DAC[iDAC]);
378  }//end loop over DAC values
379  RampRMS=1./(nDAC-1)*sqrt(rampDev);
380  }//end if nDAC>0 && nCoeff>0
381  else
382  RampRMS=-999;
383 
384  sc=ntupleSvc()->writeRecord(m_nt);
385  if (sc!=StatusCode::SUCCESS) {
386  ATH_MSG_ERROR( "writeRecord failed" );
387  return StatusCode::FAILURE;
388  }
389 
390  }//end if rampComplete or rampMC
391 
392  cellCounter++;
393 
394  }//end loop over container
395  } // loop over gains
396  } else {//have only fitted ramp
397 
398  //Iterate over gains and cells
399  unsigned nGain = m_isSC ? 1 : CaloGain::LARNGAIN;
400  for ( unsigned igain=CaloGain::LARHIGHGAIN; igain<nGain ; ++igain )
401  {
402  for (HWIdentifier chid : m_onlineId->channel_range()) {
403  if (cabling->isOnlineConnected(chid)) {
404  gain = (long)igain;
405  if (m_addCorrUndo) corrUndo = 0;
406  const ILArRamp::RampRef_t rampcoeff=ramp->ADC2DAC(chid, gain);
407  if (rampcoeff.size()==0) continue; // No ramp for this cell
408  cellIndex = cellCounter;
409  fillFromIdentifier(chid);
410  for (coeffIndex=0;coeffIndex<rampcoeff.size();coeffIndex++) coeffs[coeffIndex]=rampcoeff[coeffIndex];
411 
412  sc=ntupleSvc()->writeRecord(m_nt);
413 
414  if (sc!=StatusCode::SUCCESS) {
415  ATH_MSG_ERROR( "writeRecord failed" );
416  return StatusCode::FAILURE;
417  }
418  }// end if isConnected
419  cellCounter++;
420  }//end loop over cells
421  }//end loop over gains
422 
423  } //end else have only fitted ramp
424 
425  if (ramp && m_addCorrUndo) {
426  //Now loop over undoCorrections:
427  for ( unsigned igain=CaloGain::LARHIGHGAIN;
429  LArRampComplete::ConstCorrectionIt itUndo,itUndo_e;
430  itUndo_e = itUndo;
431  const LArRampComplete *rampComplete=dynamic_cast<const LArRampComplete *>(ramp);
432  if(rampComplete) {
433  itUndo = rampComplete->undoCorrBegin(igain);
434  itUndo_e=rampComplete->undoCorrEnd(igain);
435 
436  for(;itUndo!=itUndo_e;itUndo++) {
437  const HWIdentifier chid(itUndo->first);
438  gain = (long)igain;
439  corrUndo = 1;
440  const std::vector<float>& rampcoeff=itUndo->second.m_vRamp;
441  if (rampcoeff.empty())
442  continue; // No ramp for this cell
443 
444  cellIndex = cellCounter;
445  fillFromIdentifier(chid);
446 
447  for (coeffIndex=0;coeffIndex<rampcoeff.size();coeffIndex++) coeffs[coeffIndex]=rampcoeff[coeffIndex];
448 
449  sc=ntupleSvc()->writeRecord(m_nt);
450 
451  if (sc!=StatusCode::SUCCESS) {
452  ATH_MSG_ERROR( "writeRecord failed" );
453  return StatusCode::FAILURE;
454  }
455  }//end loop over cells
456  }
457  }//end loop over gains
458  }//end if add corrections
459 
460  if (rampComplete_nc) {
461  ATH_CHECK(rampComplete_nc->undoCorrections());
462  ATH_MSG_INFO("Reverted corrections of LArRampComplete container");
463  }
464 
465  ATH_MSG_INFO( "LArRamps2Ntuple has finished." );
466  return StatusCode::SUCCESS;
467 
468 } // end finalize-method.
LArRamps2Ntuple::~LArRamps2Ntuple
~LArRamps2Ntuple()
LArRamps2Ntuple::m_ntName
std::string m_ntName
Definition: LArRamps2Ntuple.h:46
LArRamps2Ntuple::LArRamps2Ntuple
LArRamps2Ntuple(const std::string &name, ISvcLocator *pSvcLocator)
Definition: LArRamps2Ntuple.cxx:11
python.TileHitInfoD3PDObject.TimeMax
TimeMax
Definition: TileHitInfoD3PDObject.py:14
LArConditionsContainer::applyCorrections
StatusCode applyCorrections()
apply correction set
LArRampComplete.h
MonDataType::ADC
@ ADC
SG::ReadCondHandle
Definition: ReadCondHandle.h:44
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
LArRampComplete
Definition: LArRampComplete.h:50
LArCond2NtupleBase::m_slot
NTuple::Item< long > m_slot
Definition: LArCond2NtupleBase.h:72
LArConditionsContainer::undoCorrections
StatusCode undoCorrections()
undo corrections that have been already applied
LArRawRampContainer.h
AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
LArRamps2Ntuple.h
conifer::pow
constexpr int pow(int x)
Definition: conifer.h:20
CaloCondBlobAlgs_fillNoiseFromASCII.gain
gain
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:110
ReadCellNoiseFromCool.cabling
cabling
Definition: ReadCellNoiseFromCool.py:154
LArConditionsContainer::undoCorrEnd
ConstCorrectionIt undoCorrEnd(unsigned int gain) const
SG::VarHandleKey::key
const std::string & key() const
Return the StoreGate ID for the referenced object.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:141
HWIdentifier
Definition: HWIdentifier.h:13
CaloGain::LARNGAIN
@ LARNGAIN
Definition: CaloGain.h:19
LArCond2NtupleBase::initialize
StatusCode initialize()
Definition: LArCond2NtupleBase.cxx:33
LArCond2NtupleBase::m_cablingSCKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingSCKey
Definition: LArCond2NtupleBase.h:90
xAOD::unsigned
unsigned
Definition: RingSetConf_v1.cxx:662
LArCond2NtupleBase
Definition: LArCond2NtupleBase.h:32
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
AthCommonDataStore< AthCommonMsg< Algorithm > >::detStore
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:95
StoreGateSvc::retrieve
StatusCode retrieve(const T *&ptr) const
Retrieve the default object into a const T*.
perfmonmt-refit.coeffs
coeffs
Definition: perfmonmt-refit.py:105
LArConditionsContainer< LArRampP1 >::ConstCorrectionIt
Subset::ConstCorrectionVecIt ConstCorrectionIt
Definition: LArConditionsContainer.h:78
LArRamps2Ntuple::stop
virtual StatusCode stop()
Definition: LArRamps2Ntuple.cxx:38
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
LArOnlineID_Base::channel_range
id_range channel_range() const
Definition: LArOnlineID_Base.cxx:1936
LArCond2NtupleBase::m_cablingKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Definition: LArCond2NtupleBase.h:89
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
ILArRamp
Definition: ILArRamp.h:12
LArCond2NtupleBase::m_ntpath
std::string m_ntpath
Definition: LArCond2NtupleBase.h:65
LArRamps2Ntuple::m_addCorrUndo
bool m_addCorrUndo
Definition: LArRamps2Ntuple.h:43
LArCond2NtupleBase::m_nt
NTuple::Tuple * m_nt
Definition: LArCond2NtupleBase.h:68
LArRamps2Ntuple::m_contKey
std::vector< std::string > m_contKey
Definition: LArRamps2Ntuple.h:44
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
LArRamps2Ntuple::initialize
StatusCode initialize()
Definition: LArRamps2Ntuple.cxx:26
WriteCellNoiseToCool.igain
igain
Definition: WriteCellNoiseToCool.py:338
ILArRamp::ADC2DAC
virtual RampRef_t ADC2DAC(const HWIdentifier &id, int gain) const =0
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
LArCond2NtupleBase::m_ntTitle
std::string m_ntTitle
Definition: LArCond2NtupleBase.h:65
LArRawRamp
This class stores a unfittet ramp (=a vector a ADC and DAC values)
Definition: LArRawRamp.h:25
SG::CondHandleKey::initialize
StatusCode initialize(bool used=true)
LArConditionsContainer::undoCorrBegin
ConstCorrectionIt undoCorrBegin(unsigned int gain) const
get iterator over the Undo-Vector for a certain gain
LArCond2NtupleBase::m_onlineId
const LArOnlineID_Base * m_onlineId
Definition: LArCond2NtupleBase.h:85
CaloGain::LARHIGHGAIN
@ LARHIGHGAIN
Definition: CaloGain.h:18
LArRamps2Ntuple::m_rawRamp
bool m_rawRamp
Definition: LArRamps2Ntuple.h:40
LArCond2NtupleBase::fillFromIdentifier
bool fillFromIdentifier(const HWIdentifier &id)
Definition: LArCond2NtupleBase.cxx:288
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
LArRawRampContainer
Definition: LArRawRampContainer.h:20
LArCond2NtupleBase::m_isSC
Gaudi::Property< bool > m_isSC
Definition: LArCond2NtupleBase.h:55
DiTauMassTools::HistInfoV2::RMS
@ RMS
Definition: PhysicsAnalysis/TauID/DiTauMassTools/DiTauMassTools/HelperFunctions.h:31
LArCond2NtupleBase::m_detStore
StoreGateSvc * m_detStore
Definition: LArCond2NtupleBase.h:81
python.grid.Samples
def Samples(names)
Definition: grid.py:48
ntupleSvc
INTupleSvc * ntupleSvc()
Definition: ServiceAccessor.h:14
LArRamps2Ntuple::m_rampKey
SG::ReadCondHandleKey< ILArRamp > m_rampKey
Definition: LArRamps2Ntuple.h:45
LArRamps2Ntuple::m_saveAllSamples
bool m_saveAllSamples
Definition: LArRamps2Ntuple.h:41
LArRamps2Ntuple::m_applyCorr
bool m_applyCorr
Definition: LArRamps2Ntuple.h:42
LArVectorProxy
Proxy for accessing a range of float values like a vector.
Definition: LArVectorProxy.h:38
LArConditionsContainer::correctionsApplied
bool correctionsApplied() const
Have corrections been applied?
LArOnOffIdMapping
Definition: LArOnOffIdMapping.h:20
LArCond2NtupleBase::m_channel
NTuple::Item< long > m_channel
Definition: LArCond2NtupleBase.h:72
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37