ATLAS Offline Software
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>
16 using namespace std ;
17 
19 
21 
22 /* Fill transient object in ATHENA *****************************************
23  */
24 void LArH6OscillationComplete::set(const HWIdentifier& CellID,
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  */
36 const double& LArH6OscillationComplete::channelPhase(const HWIdentifier& CellID) const
37 {
38 
39  const LArH6OscillationP& t = get(CellID);
40 
41  return t.m_channelPhase;
42 }
43 
44 const double& LArH6OscillationComplete::channelAmplitude(const HWIdentifier& CellID) const
45 {
46 
47  const LArH6OscillationP& t = get(CellID);
48 
49  return t.m_channelAmplitude;
50 }
getMessageSvc.h
singleton-like access to IMessageSvc via open function and helper
LArH6OscillationComplete.h
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
LArH6OscillationComplete::~LArH6OscillationComplete
virtual ~LArH6OscillationComplete()
Definition: LArH6OscillationComplete.cxx:20
LArH6OscillationComplete::channelAmplitude
virtual const double & channelAmplitude(const HWIdentifier &CellID) const
access to channel amplitude index by Identifier
Definition: LArH6OscillationComplete.cxx:44
LArH6OscillationComplete::set
void set(const HWIdentifier &CellID, double channelPhase, double channelAmplitude)
Definition: LArH6OscillationComplete.cxx:24
LArH6OscillationComplete::channelPhase
virtual const double & channelPhase(const HWIdentifier &CellID) const
Definition: LArH6OscillationComplete.cxx:36
get
T * get(TKey *tobj)
get a TObject* from a TKey* (why can't a TObject be a TKey?)
Definition: hcg.cxx:127
LArH6OscillationP
c-struct reproducing the structure of the persistent data
Definition: LArH6OscillationP.h:16
LArOnlineID.h
LArH6OscillationComplete::LArH6OscillationComplete
LArH6OscillationComplete()
Definition: LArH6OscillationComplete.cxx:18