ATLAS Offline Software
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
ZdcRawChannel Class Reference

#include <ZdcRawChannel.h>

Inheritance diagram for ZdcRawChannel:
Collaboration diagram for ZdcRawChannel:

Public Member Functions

 ZdcRawChannel ()
 
 ZdcRawChannel (const Identifier &id)
 
virtual ~ZdcRawChannel ()
 
std::string whoami (void) const
 
void print (void) const
 
 operator std::string () const
 
void setSize (unsigned int i)
 
void setEnergy (int i, float e)
 
void setTime (int i, float t)
 
void setChi (int i, float c)
 
unsigned int getSize () const
 
float getEnergy (int i) const
 
float getTime (int i) const
 
float getChi (int i) const
 
Identifier identify (void) const
 

Static Public Member Functions

static void print_to_stream (const std::vector< double > &val, const std::string &label, std::ostringstream &text)
 
static void print_to_stream (const std::vector< int > &val, const std::string &label, std::ostringstream &text)
 

Private Attributes

std::vector< float > m_energy
 
std::vector< float > m_time
 
std::vector< float > m_chi
 
unsigned int m_size
 
Identifier m_id
 

Detailed Description

Definition at line 23 of file ZdcRawChannel.h.

Constructor & Destructor Documentation

◆ ZdcRawChannel() [1/2]

ZdcRawChannel::ZdcRawChannel ( )
inline

Definition at line 29 of file ZdcRawChannel.h.

29  {
30  m_size = 0;
31  }

◆ ZdcRawChannel() [2/2]

ZdcRawChannel::ZdcRawChannel ( const Identifier id)
inline

Definition at line 33 of file ZdcRawChannel.h.

33  : ZdcRawData(id)
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  }

◆ ~ZdcRawChannel()

virtual ZdcRawChannel::~ZdcRawChannel ( )
inlinevirtual

Definition at line 45 of file ZdcRawChannel.h.

45 { }

Member Function Documentation

◆ getChi()

float ZdcRawChannel::getChi ( int  i) const
inline

Definition at line 84 of file ZdcRawChannel.h.

84 {return m_chi[i];}

◆ getEnergy()

float ZdcRawChannel::getEnergy ( int  i) const
inline

Definition at line 82 of file ZdcRawChannel.h.

82 {return m_energy[i];}

◆ getSize()

unsigned int ZdcRawChannel::getSize ( ) const
inline

Definition at line 80 of file ZdcRawChannel.h.

80 {return m_energy.size();}

◆ getTime()

float ZdcRawChannel::getTime ( int  i) const
inline

Definition at line 83 of file ZdcRawChannel.h.

83 {return m_time[i];}

◆ identify()

Identifier ZdcRawData::identify ( void  ) const
inlineinherited

Definition at line 44 of file ZdcRawData.h.

44 { return m_id; }

◆ operator std::string()

ZdcRawChannel::operator std::string ( ) const
inlinevirtual

Reimplemented from ZdcRawData.

Definition at line 55 of file ZdcRawChannel.h.

55 {return "ZdcRawChannel::string()";};

◆ print()

void ZdcRawChannel::print ( void  ) const
inlinevirtual

Reimplemented from ZdcRawData.

Definition at line 52 of file ZdcRawChannel.h.

52 {};

◆ print_to_stream() [1/2]

void ZdcRawData::print_to_stream ( const std::vector< double > &  val,
const std::string &  label,
std::ostringstream &  text 
)
staticinherited

Definition at line 75 of file ZdcRawData.cxx.

78 {
79  text << label;
80  for (double v : val) {
81  text << " " << v;
82  }
83 }

◆ print_to_stream() [2/2]

void ZdcRawData::print_to_stream ( const std::vector< int > &  val,
const std::string &  label,
std::ostringstream &  text 
)
staticinherited

Definition at line 85 of file ZdcRawData.cxx.

88 {
89  text << label;
90  for (double v : val) {
91  text << " " << v;
92  }
93 }

◆ setChi()

void ZdcRawChannel::setChi ( int  i,
float  c 
)
inline

Definition at line 78 of file ZdcRawChannel.h.

78 {m_chi[i] = c;}

◆ setEnergy()

void ZdcRawChannel::setEnergy ( int  i,
float  e 
)
inline

Definition at line 76 of file ZdcRawChannel.h.

76 {m_energy[i] = e;}

◆ setSize()

void ZdcRawChannel::setSize ( unsigned int  i)
inline

Definition at line 67 of file ZdcRawChannel.h.

67  {
68  m_size = i;
69  m_energy.resize(i,0.);
70  m_time.resize(i,0.);
71  m_chi.resize(i,0.);
72 
73  }

◆ setTime()

void ZdcRawChannel::setTime ( int  i,
float  t 
)
inline

Definition at line 77 of file ZdcRawChannel.h.

77 {m_time[i] = t;}

◆ whoami()

std::string ZdcRawChannel::whoami ( void  ) const
inlinevirtual

Reimplemented from ZdcRawData.

Definition at line 51 of file ZdcRawChannel.h.

51 { return "ZdcRawChannel"; }

Member Data Documentation

◆ m_chi

std::vector<float> ZdcRawChannel::m_chi
private

Definition at line 61 of file ZdcRawChannel.h.

◆ m_energy

std::vector<float> ZdcRawChannel::m_energy
private

Definition at line 59 of file ZdcRawChannel.h.

◆ m_id

Identifier ZdcRawData::m_id
privateinherited

Definition at line 70 of file ZdcRawData.h.

◆ m_size

unsigned int ZdcRawChannel::m_size
private

Definition at line 63 of file ZdcRawChannel.h.

◆ m_time

std::vector<float> ZdcRawChannel::m_time
private

Definition at line 60 of file ZdcRawChannel.h.


The documentation for this class was generated from the following file:
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
ZdcRawData::m_id
Identifier m_id
Definition: ZdcRawData.h:70
ZdcRawChannel::m_time
std::vector< float > m_time
Definition: ZdcRawChannel.h:60
ZdcRawChannel::m_energy
std::vector< float > m_energy
Definition: ZdcRawChannel.h:55
PlotCalibFromCool.label
label
Definition: PlotCalibFromCool.py:78
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
ZdcRawChannel::m_chi
std::vector< float > m_chi
Definition: ZdcRawChannel.h:61
lumiFormat.i
int i
Definition: lumiFormat.py:85
ZdcRawData::ZdcRawData
ZdcRawData()
Definition: ZdcRawData.h:37
python.PyAthena.v
v
Definition: PyAthena.py:154
Pythia8_RapidityOrderMPI.val
val
Definition: Pythia8_RapidityOrderMPI.py:14
makeTransCanvas.text
text
Definition: makeTransCanvas.py:11
python.compressB64.c
def c
Definition: compressB64.py:93
ZdcRawChannel::m_size
unsigned int m_size
Definition: ZdcRawChannel.h:63