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

#include <ZdcRawData.h>

Inheritance diagram for ZdcRawData:
Collaboration diagram for ZdcRawData:

Public Member Functions

 ZdcRawData ()
 
 ZdcRawData (const Identifier &id)
 
virtual ~ZdcRawData ()
 
Identifier identify (void) const
 
virtual std::string whoami (void) const
 
virtual void print (void) const
 
virtual operator std::string () 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

Identifier m_id
 

Detailed Description

Definition at line 32 of file ZdcRawData.h.

Constructor & Destructor Documentation

◆ ZdcRawData() [1/2]

ZdcRawData::ZdcRawData ( )
inline

Definition at line 37 of file ZdcRawData.h.

37 {}

◆ ZdcRawData() [2/2]

ZdcRawData::ZdcRawData ( const Identifier id)

Definition at line 30 of file ZdcRawData.cxx.

31  : m_id (id)
32 {
33 }

◆ ~ZdcRawData()

virtual ZdcRawData::~ZdcRawData ( )
inlinevirtual

Definition at line 41 of file ZdcRawData.h.

41 {}

Member Function Documentation

◆ identify()

Identifier ZdcRawData::identify ( void  ) const
inline

Definition at line 44 of file ZdcRawData.h.

44 { return m_id; }

◆ operator std::string()

ZdcRawData::operator std::string ( ) const
virtual

Reimplemented in ZdcDigits, ZdcRawChannel, and ZdcCell.

Definition at line 40 of file ZdcRawData.cxx.

41 {
42  std::string result(whoami());
43  //result += " Id = " + ZdcCablingService::getInstance()->getZdcID()->to_string(m_id);
44  return result;
45 }

◆ print()

void ZdcRawData::print ( void  ) const
virtual

Reimplemented in ZdcDigits, ZdcRawChannel, and ZdcCell.

Definition at line 35 of file ZdcRawData.cxx.

36 {
37  std::cout << (std::string) (*this) << std::endl;
38 }

◆ print_to_stream() [1/2]

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

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 
)
static

Definition at line 85 of file ZdcRawData.cxx.

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

◆ whoami()

virtual std::string ZdcRawData::whoami ( void  ) const
inlinevirtual

Reimplemented in ZdcDigits, ZdcRawChannel, and ZdcCell.

Definition at line 55 of file ZdcRawData.h.

55 { return "ZdcRawData"; }

Member Data Documentation

◆ m_id

Identifier ZdcRawData::m_id
private

Definition at line 70 of file ZdcRawData.h.


The documentation for this class was generated from the following files:
ZdcRawData::m_id
Identifier m_id
Definition: ZdcRawData.h:70
get_generator_info.result
result
Definition: get_generator_info.py:21
PlotCalibFromCool.label
label
Definition: PlotCalibFromCool.py:78
ZdcRawData::whoami
virtual std::string whoami(void) const
Definition: ZdcRawData.h:55
python.PyAthena.v
v
Definition: PyAthena.py:154
Pythia8_RapidityOrderMPI.val
val
Definition: Pythia8_RapidityOrderMPI.py:14
makeTransCanvas.text
text
Definition: makeTransCanvas.py:11