ATLAS Offline Software
Loading...
Searching...
No Matches
LArPhysCaliTdiffComplete.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
18// const float LArPhysCaliTdiffComplete::empty = ERRORCODE ;
22
24
25/* Fill transient object in ATHENA *****************************************
26 */
27void LArPhysCaliTdiffComplete::set(const HWIdentifier& CellID, int gain,
28 float tdiff ) {
29
31 t.m_Tdiff = tdiff ;
32
33 setPdata(CellID,t,gain) ;
34}
35
36/* retrieve PhysCaliTdiff ******************************************************
37 */
38const float& LArPhysCaliTdiffComplete::Tdiff(const HWIdentifier& CellID, int gain) const
39{
40
41 const LArPhysCaliTdiffP& t= get(CellID,gain);
42
43 return t.m_Tdiff;
44}
45
46
47
48
void setPdata(const HWIdentifier id, const LArPhysCaliTdiffP &payload, unsigned int gain=0)
ConstReference get(const HWIdentifier id, unsigned int gain=0) const
void set(const HWIdentifier &CellID, int gain, float tdiff)
virtual const float & Tdiff(const HWIdentifier &CellID, int gain) const
singleton-like access to IMessageSvc via open function and helper
STL namespace.