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

#include <ZdcCell.h>

Inheritance diagram for ZdcCell:
Collaboration diagram for ZdcCell:

Public Member Functions

 ZdcCell ()
 
 ZdcCell (const Identifier &id)
 
virtual ~ZdcCell ()
 
std::string whoami (void) const
 
void print (void) const
 
 operator std::string () const
 
void setEnergy (double e)
 
double getEnergy ()
 
void setTime (double t)
 
double getTime ()
 
void setX (double x)
 
double getX ()
 
void setY (double y)
 
double getY ()
 
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

double m_energy
 
double m_time
 
double m_x
 
double m_y
 
Identifier m_id
 

Detailed Description

Definition at line 22 of file ZdcCell.h.

Constructor & Destructor Documentation

◆ ZdcCell() [1/2]

ZdcCell::ZdcCell ( )
inline

Definition at line 28 of file ZdcCell.h.

28 { }

◆ ZdcCell() [2/2]

ZdcCell::ZdcCell ( const Identifier id)

◆ ~ZdcCell()

virtual ZdcCell::~ZdcCell ( )
inlinevirtual

Definition at line 34 of file ZdcCell.h.

34 { }

Member Function Documentation

◆ getEnergy()

double ZdcCell::getEnergy ( )
inline

Definition at line 56 of file ZdcCell.h.

56 {return m_energy;}

◆ getTime()

double ZdcCell::getTime ( )
inline

Definition at line 58 of file ZdcCell.h.

58 {return m_time;}

◆ getX()

double ZdcCell::getX ( )
inline

Definition at line 60 of file ZdcCell.h.

60 {return m_x;}

◆ getY()

double ZdcCell::getY ( )
inline

Definition at line 62 of file ZdcCell.h.

62 {return m_y;}

◆ identify()

Identifier ZdcRawData::identify ( void  ) const
inlineinherited

Definition at line 44 of file ZdcRawData.h.

44 { return m_id; }

◆ operator std::string()

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

Reimplemented from ZdcRawData.

Definition at line 44 of file ZdcCell.h.

44 { return "ZdcCell::string()";};

◆ print()

void ZdcCell::print ( void  ) const
inlinevirtual

Reimplemented from ZdcRawData.

Definition at line 41 of file ZdcCell.h.

41 {};

◆ 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 }

◆ setEnergy()

void ZdcCell::setEnergy ( double  e)
inline

Definition at line 55 of file ZdcCell.h.

55 {m_energy = e;}

◆ setTime()

void ZdcCell::setTime ( double  t)
inline

Definition at line 57 of file ZdcCell.h.

57 {m_time = t;}

◆ setX()

void ZdcCell::setX ( double  x)
inline

Definition at line 59 of file ZdcCell.h.

59 {m_x = x;}

◆ setY()

void ZdcCell::setY ( double  y)
inline

Definition at line 61 of file ZdcCell.h.

61 {m_x = y;}

◆ whoami()

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

Reimplemented from ZdcRawData.

Definition at line 40 of file ZdcCell.h.

40 { return "ZdcCell"; }

Member Data Documentation

◆ m_energy

double ZdcCell::m_energy
private

Definition at line 48 of file ZdcCell.h.

◆ m_id

Identifier ZdcRawData::m_id
privateinherited

Definition at line 70 of file ZdcRawData.h.

◆ m_time

double ZdcCell::m_time
private

Definition at line 49 of file ZdcCell.h.

◆ m_x

double ZdcCell::m_x
private

Definition at line 50 of file ZdcCell.h.

◆ m_y

double ZdcCell::m_y
private

Definition at line 51 of file ZdcCell.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
PlotCalibFromCool.label
label
Definition: PlotCalibFromCool.py:78
ZdcCell::m_y
double m_y
Definition: ZdcCell.h:51
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
x
#define x
ZdcCell::m_energy
double m_energy
Definition: ZdcCell.h:44
python.PyAthena.v
v
Definition: PyAthena.py:154
y
#define y
Pythia8_RapidityOrderMPI.val
val
Definition: Pythia8_RapidityOrderMPI.py:14
ZdcCell::m_time
double m_time
Definition: ZdcCell.h:49
makeTransCanvas.text
text
Definition: makeTransCanvas.py:11
ZdcCell::m_x
double m_x
Definition: ZdcCell.h:50