ATLAS Offline Software
LArCableLengthComplete.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
8 
10 
11 /* Fill transient object in ATHENA *****************************************
12  */
13 void LArCableLengthComplete::set(const HWIdentifier& CellID, float CableLength ) {
14 
16  t.m_CableLength = CableLength ;
17 
18  setPdata(CellID, t);
19 
20 }
21 
22 
23 /* retrieve CableLength ******************************************************
24  */
25 const float& LArCableLengthComplete::CableLength(const HWIdentifier& CellID) const
26 {
27  const LArCableLengthP& t = get( CellID);
28  return (t.m_CableLength);
29 }
30 
31 
32 
LArCableLengthComplete.h
LArConditionsContainer< LArCableLengthP >::setPdata
void setPdata(const HWIdentifier id, const LArCableLengthP &payload, unsigned int gain=0)
put payload in persistent data
LArCableLengthComplete::LArCableLengthComplete
LArCableLengthComplete()
Definition: LArCableLengthComplete.cxx:7
LArCableLengthP
c-struct reproducing the structure of the persistent data
Definition: LArCableLengthP.h:20
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
HWIdentifier
Definition: HWIdentifier.h:13
LArCableLengthComplete::set
void set(const HWIdentifier &CellID, float vCableLength)
Definition: LArCableLengthComplete.cxx:13
LArConditionsContainer< LArCableLengthP >::get
ConstReference get(const HWIdentifier id, unsigned int gain=0) const
get data with online identifier
LArCableLengthComplete::CableLength
virtual const float & CableLength(const HWIdentifier &CellID) const
Definition: LArCableLengthComplete.cxx:25
LArCableLengthComplete::~LArCableLengthComplete
virtual ~LArCableLengthComplete()
Definition: LArCableLengthComplete.cxx:9