ATLAS Offline Software
ZdcRawChannel.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 //***************************************************************************
6 // Filename : ZdcRawChannel.h
7 // Author : Peter Steinberg
8 // Created : March 2009
9 //
10 // DESCRIPTION:
11 // A ZdcRawChannel is the data class containing energy/time information
12 //
13 // HISTORY:
14 //
15 // ***************************************************************************
16 
17 #ifndef ZDCEVENT_ZDCRAWCHANNEL_H
18 #define ZDCEVENT_ZDCRAWCHANNEL_H
19 
20 #include "ZdcEvent/ZdcRawData.h"
21 #include "AthenaKernel/CLASS_DEF.h"
22 
23 class ZdcRawChannel : public ZdcRawData
24 {
25 public:
26 
27  /* Constructors */
28 
30  m_size = 0;
31  }
32 
34  //This will hold high/low gain combinations of up to 4 different methods
35  //of reconstruction
36  {
37  m_size = 8;
38  m_energy.resize(8,0.);
39  m_time.resize(8,0.);
40  m_chi.resize(8,0.);
41  }
42 
43  /* Destructor */
44 
45  virtual ~ZdcRawChannel() { }
46 
47  /* Inline access methods */
48 
49 
50 
51  std::string whoami (void) const { return "ZdcRawChannel"; }
52  void print (void) const{};
53  // Convertion operator to a std::string
54  // Can be used in a cast operation : (std::string) ZdcRawChannel
55  operator std::string() const {return "ZdcRawChannel::string()";};
56 
57 private:
58 
59  std::vector<float> m_energy;
60  std::vector<float> m_time;
61  std::vector<float> m_chi;
62 
63  unsigned int m_size;
64 
65  public:
66 
67  void setSize(unsigned int i) {
68  m_size = i;
69  m_energy.resize(i,0.);
70  m_time.resize(i,0.);
71  m_chi.resize(i,0.);
72 
73  }
74 
75 
76  void setEnergy(int i, float e) {m_energy[i] = e;}
77  void setTime (int i, float t) {m_time[i] = t;}
78  void setChi (int i, float c) {m_chi[i] = c;}
79 
80  unsigned int getSize () const {return m_energy.size();}
81 
82  float getEnergy(int i) const {return m_energy[i];}
83  float getTime(int i) const {return m_time[i];}
84  float getChi(int i) const {return m_chi[i];}
85 
86 };
87 
88 CLASS_DEF(ZdcRawChannel,92926131,0)
89 
90 
91 #endif //ZDCEVENT_ZDCDIGITS_H
ZdcRawChannel::print
void print(void) const
Definition: ZdcRawChannel.h:52
ZdcRawData
Definition: ZdcRawData.h:33
ZdcRawChannel::m_time
std::vector< float > m_time
Definition: ZdcRawChannel.h:60
ZdcRawChannel::m_energy
std::vector< float > m_energy
Definition: ZdcRawChannel.h:55
ZdcRawChannel::ZdcRawChannel
ZdcRawChannel()
Definition: ZdcRawChannel.h:29
ZdcRawChannel::whoami
std::string whoami(void) const
Definition: ZdcRawChannel.h:51
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
ZdcRawChannel::getSize
unsigned int getSize() const
Definition: ZdcRawChannel.h:80
ZdcRawChannel::getChi
float getChi(int i) const
Definition: ZdcRawChannel.h:84
ZdcRawChannel
Definition: ZdcRawChannel.h:24
ZdcRawChannel::m_chi
std::vector< float > m_chi
Definition: ZdcRawChannel.h:61
lumiFormat.i
int i
Definition: lumiFormat.py:92
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
ZdcRawChannel::getEnergy
float getEnergy(int i) const
Definition: ZdcRawChannel.h:82
ZdcRawChannel::~ZdcRawChannel
virtual ~ZdcRawChannel()
Definition: ZdcRawChannel.h:45
ZdcRawChannel::setSize
void setSize(unsigned int i)
Definition: ZdcRawChannel.h:67
ZdcRawChannel::setTime
void setTime(int i, float t)
Definition: ZdcRawChannel.h:77
ZdcRawChannel::ZdcRawChannel
ZdcRawChannel(const Identifier &id)
Definition: ZdcRawChannel.h:33
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:191
ZdcRawData.h
ZdcRawChannel::setChi
void setChi(int i, float c)
Definition: ZdcRawChannel.h:78
DiTauMassTools::MaxHistStrategyV2::e
e
Definition: PhysicsAnalysis/TauID/DiTauMassTools/DiTauMassTools/HelperFunctions.h:26
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
ZdcRawChannel::getTime
float getTime(int i) const
Definition: ZdcRawChannel.h:83
ZdcRawChannel::setEnergy
void setEnergy(int i, float e)
Definition: ZdcRawChannel.h:76
python.compressB64.c
def c
Definition: compressB64.py:93
ZdcRawChannel::m_size
unsigned int m_size
Definition: ZdcRawChannel.h:63
CLASS_DEF.h
macros to associate a CLID to a type