ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArRawConditions
src
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
5
#include "
LArRawConditions/LArRampComplete.h
"
6
#include "GaudiKernel/IMessageSvc.h"
7
8
#include "
LArIdentifier/LArOnlineID.h
"
9
10
#include "GaudiKernel/Bootstrap.h"
11
#include "GaudiKernel/ISvcLocator.h"
12
#include "GaudiKernel/IToolSvc.h"
13
14
#include "
AthenaKernel/getMessageSvc.h
"
15
#include <iostream>
16
using namespace
std
;
17
18
LArRampComplete::LArRampComplete
():
LArRampCompleteBase
()
19
{}
20
21
LArRampComplete::~LArRampComplete
() {}
22
23
24
LArRampCompleteBase::LArRampCompleteBase
() {}
25
26
LArRampCompleteBase::~LArRampCompleteBase
() {}
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
LArOnlineID.h
LArRampComplete.h
HWIdentifier
Definition
HWIdentifier.h:13
ILArRamp::RampRef_t
LArVectorProxy RampRef_t
This class defines the interface for accessing Ramp @stereotype Interface.
Definition
ILArRamp.h:31
LArConditionsContainer< LArRampP1 >::setPdata
void setPdata(const HWIdentifier id, const LArRampP1 &payload, unsigned int gain=0)
LArConditionsContainer< LArRampP1 >::get
ConstReference get(const HWIdentifier id, unsigned int gain=0) const
LArRampCompleteBase::ADC2DAC
virtual RampRef_t ADC2DAC(const HWIdentifier &CellID, int gain) const override
Definition
LArRampComplete.cxx:38
LArRampCompleteBase::empty
const std::vector< float > & empty() const
Definition
LArRampComplete.cxx:43
LArRampCompleteBase::set
virtual void set(const HWIdentifier &CellID, int gain, const std::vector< float > &vRamp)
Definition
LArRampComplete.cxx:28
LArRampCompleteBase::~LArRampCompleteBase
virtual ~LArRampCompleteBase()
Definition
LArRampComplete.cxx:26
LArRampCompleteBase::LArRampCompleteBase
LArRampCompleteBase()
Definition
LArRampComplete.cxx:24
LArRampComplete::LArRampComplete
LArRampComplete()
Definition
LArRampComplete.cxx:18
LArRampComplete::~LArRampComplete
virtual ~LArRampComplete()
Definition
LArRampComplete.cxx:21
LArRampP1
Persistent data for LArRamp Copied from LAr.
Definition
LArRampP1.h:24
getMessageSvc.h
singleton-like access to IMessageSvc via open function and helper
std
STL namespace.
Generated on
for ATLAS Offline Software by
1.17.0