ATLAS Offline Software
LArRampComplete.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 #include "GaudiKernel/IMessageSvc.h"
7 
9 
10 #include "GaudiKernel/Bootstrap.h"
11 #include "GaudiKernel/ISvcLocator.h"
12 #include "GaudiKernel/IToolSvc.h"
13 
15 #include <iostream>
16 using namespace std ;
17 
19 {}
20 
22 
23 
25 
27 
28 void LArRampCompleteBase::set(const HWIdentifier& CellID, int gain,
29  const std::vector<float>& vRamp ) {
30 
31  LArRampP1 t;
32  t.m_vRamp = vRamp;
33  setPdata(CellID,t, (unsigned int)gain);
34 }
35 
36 
37 //retrieve Ramp
38  LArRampCompleteBase::RampRef_t LArRampCompleteBase::ADC2DAC(const HWIdentifier& CellID, int gain) const {
39  const LArRampP1& t = get(CellID,gain) ;
40  return ( t.m_vRamp );
41 }
42 
43 const std::vector<float>& LArRampCompleteBase::empty() const {
44  static const std::vector<float> result;
45  return (result);
46 }
47 
48 
49 
50 
51 
52 
53 
54 
LArRampComplete.h
LArConditionsContainer< LArRampP1 >::setPdata
void setPdata(const HWIdentifier id, const LArRampP1 &payload, unsigned int gain=0)
put payload in persistent data
get_generator_info.result
result
Definition: get_generator_info.py:21
getMessageSvc.h
singleton-like access to IMessageSvc via open function and helper
LArRampCompleteBase::empty
const std::vector< float > & empty() const
Definition: LArRampComplete.cxx:43
LArRampCompleteBase::~LArRampCompleteBase
virtual ~LArRampCompleteBase()
Definition: LArRampComplete.cxx:26
LArRampP1
Persistent data for LArRamp Copied from LAr.
Definition: LArRampP1.h:24
CaloCondBlobAlgs_fillNoiseFromASCII.gain
gain
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:110
LArRampCompleteBase::ADC2DAC
virtual RampRef_t ADC2DAC(const HWIdentifier &CellID, int gain) const override
Definition: LArRampComplete.cxx:38
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
LArRampComplete::LArRampComplete
LArRampComplete()
Definition: LArRampComplete.cxx:18
LArConditionsContainer< LArRampP1 >::get
ConstReference get(const HWIdentifier id, unsigned int gain=0) const
get data with online identifier
LArRampCompleteBase
This class implements the ILArRamp interface.
Definition: LArRampComplete.h:28
LArRampComplete::~LArRampComplete
virtual ~LArRampComplete()
Definition: LArRampComplete.cxx:21
LArRampCompleteBase::set
virtual void set(const HWIdentifier &CellID, int gain, const std::vector< float > &vRamp)
Definition: LArRampComplete.cxx:28
LArOnlineID.h
LArVectorProxy
Proxy for accessing a range of float values like a vector.
Definition: LArVectorProxy.h:38
LArRampCompleteBase::LArRampCompleteBase
LArRampCompleteBase()
Definition: LArRampComplete.cxx:24