ATLAS Offline Software
Loading...
Searching...
No Matches
LArH6OscillationComplete.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
19
21
22/* Fill transient object in ATHENA *****************************************
23 */
25 double channelPhase, double channelAmplitude ) {
26
28 t.m_channelPhase = channelPhase;
29 t.m_channelAmplitude = channelAmplitude;
30
31 setPdata(CellID,t);
32}
33
34/* retrieve channel phases and channel amplitudes*****************************
35 */
36const double& LArH6OscillationComplete::channelPhase(const HWIdentifier& CellID) const
37{
38
39 const LArH6OscillationP& t = get(CellID);
40
41 return t.m_channelPhase;
42}
43
45{
46
47 const LArH6OscillationP& t = get(CellID);
48
49 return t.m_channelAmplitude;
50}
void setPdata(const HWIdentifier id, const LArH6OscillationP &payload, unsigned int gain=0)
ConstReference get(const HWIdentifier id, unsigned int gain=0) const
virtual const double & channelPhase(const HWIdentifier &CellID) const
void set(const HWIdentifier &CellID, double channelPhase, double channelAmplitude)
virtual const double & channelAmplitude(const HWIdentifier &CellID) const
access to channel amplitude index by Identifier
c-struct reproducing the structure of the persistent data
singleton-like access to IMessageSvc via open function and helper
STL namespace.