ATLAS Offline Software
LArfSamplComplete.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 
10 
11 /* Fill transient object in ATHENA *****************************************
12  */
13 void LArfSamplComplete::set(const HWIdentifier& CellID, float fSampl ) {
14  LArfSamplP t;
15  t.m_fSampl = fSampl;
16  setPdata(CellID,t) ;
17 }
18 
19 // retrieve fSampl ***************************************************
20 const float& LArfSamplComplete::FSAMPL(const HWIdentifier& CellID) const {
21  const LArfSamplP& t = get(CellID) ;
22  return ( t.m_fSampl );
23 
24 }
25 
26 const float& LArfSamplComplete::FSAMPL(const Identifier&) const {
27  //Not implemented (on purpose) for the *Complete-class.
28  //Only implemeneted in the LArfSamplSym class
29  std::abort();
30 }
31 
32 
33 
LArConditionsContainer< LArfSamplP >::setPdata
void setPdata(const HWIdentifier id, const LArfSamplP &payload, unsigned int gain=0)
put payload in persistent data
LArfSamplComplete.h
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
HWIdentifier
Definition: HWIdentifier.h:13
LArfSamplComplete::FSAMPL
virtual const float & FSAMPL(const HWIdentifier &CellID) const override
Definition: LArfSamplComplete.cxx:20
LArfSamplComplete::LArfSamplComplete
LArfSamplComplete()
Definition: LArfSamplComplete.cxx:8
LArConditionsContainer< LArfSamplP >::get
ConstReference get(const HWIdentifier id, unsigned int gain=0) const
get data with online identifier
LArfSamplComplete::set
void set(const HWIdentifier &CellID, float vfSampl)
Definition: LArfSamplComplete.cxx:13
LArfSamplP
c-struct reproducing the structure of the persistent data
Definition: LArfSamplP.h:20
LArfSamplComplete::~LArfSamplComplete
virtual ~LArfSamplComplete()
Definition: LArfSamplComplete.cxx:9
Identifier
Definition: IdentifierFieldParser.cxx:14