ATLAS Offline Software
Loading...
Searching...
No Matches
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>
16using namespace std ;
17
20
22
23
25
27
28void 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
39 const LArRampP1& t = get(CellID,gain) ;
40 return ( t.m_vRamp );
41}
42
43const 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
LArVectorProxy RampRef_t
This class defines the interface for accessing Ramp @stereotype Interface.
Definition ILArRamp.h:31
void setPdata(const HWIdentifier id, const LArRampP1 &payload, unsigned int gain=0)
ConstReference get(const HWIdentifier id, unsigned int gain=0) const
virtual RampRef_t ADC2DAC(const HWIdentifier &CellID, int gain) const override
const std::vector< float > & empty() const
virtual void set(const HWIdentifier &CellID, int gain, const std::vector< float > &vRamp)
virtual ~LArRampComplete()
Persistent data for LArRamp Copied from LAr.
Definition LArRampP1.h:24
singleton-like access to IMessageSvc via open function and helper
STL namespace.