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

#include <TileBeamElem.h>

Inheritance diagram for TileBeamElem:
Collaboration diagram for TileBeamElem:

Public Member Functions

 TileBeamElem ()
 
 TileBeamElem (const HWIdentifier &HWid, const std::vector< uint32_t > &digits)
 
 TileBeamElem (const HWIdentifier &HWid, std::vector< uint32_t > &&digits)
 
 TileBeamElem (const Identifier &id, const std::vector< uint32_t > &digits)
 
 TileBeamElem (const HWIdentifier &HWid, uint32_t digit)
 
int size (void) const
 
const std::vector< uint32_t > & get_digits (void) const
 
std::string whoami (void) const
 
void print (void) const
 
 operator std::string () const
 
Identifier identify (void) const
 
HWIdentifier adc_HWID (void) const
 
Identifier adc_ID (void) const
 
Identifier pmt_ID (void) const
 
Identifier cell_ID (void) const
 
Identifier cell_ID_index (int &index, int &pmt) const
 
Identifier tt_ID (void) const
 
Identifier mt_ID (void) const
 
int frag_ID (void) const
 

Static Public Member Functions

static void print_to_stream (const std::vector< float > &val, const std::string &label, std::ostringstream &text)
 
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< uint32_t > &val, const std::string &label, std::ostringstream &text)
 

Private Attributes

std::vector< uint32_t > m_digits
 
HWIdentifier m_adc_hwid
 

Detailed Description

Definition at line 26 of file TileBeamElem.h.

Constructor & Destructor Documentation

◆ TileBeamElem() [1/5]

TileBeamElem::TileBeamElem ( )
inline

Definition at line 32 of file TileBeamElem.h.

32 { }

◆ TileBeamElem() [2/5]

TileBeamElem::TileBeamElem ( const HWIdentifier HWid,
const std::vector< uint32_t > &  digits 
)

Definition at line 36 of file TileBeamElem.cxx.

39  : TileRawData( HWid )
40  , m_digits ( digits )
41 {
42 }

◆ TileBeamElem() [3/5]

TileBeamElem::TileBeamElem ( const HWIdentifier HWid,
std::vector< uint32_t > &&  digits 
)

Definition at line 44 of file TileBeamElem.cxx.

47  : TileRawData( HWid )
48  , m_digits ( std::move(digits) )
49 {
50 }

◆ TileBeamElem() [4/5]

TileBeamElem::TileBeamElem ( const Identifier id,
const std::vector< uint32_t > &  digits 
)

Definition at line 28 of file TileBeamElem.cxx.

31  : TileRawData( id )
32  , m_digits ( digits )
33 {
34 }

◆ TileBeamElem() [5/5]

TileBeamElem::TileBeamElem ( const HWIdentifier HWid,
uint32_t  digit 
)

Definition at line 52 of file TileBeamElem.cxx.

55  : TileRawData( HWid )
56  , m_digits ()
57 {
58  m_digits.push_back(digit);
59 }

Member Function Documentation

◆ adc_HWID()

HWIdentifier TileRawData::adc_HWID ( void  ) const
inlineinherited

Definition at line 53 of file TileRawData.h.

53 { return m_adc_hwid; }

◆ adc_ID()

Identifier TileRawData::adc_ID ( void  ) const
inherited

Definition at line 53 of file TileRawData.cxx.

53  {
54  return s_cabling->h2s_adc_id(m_adc_hwid);
55 }

◆ cell_ID()

Identifier TileRawData::cell_ID ( void  ) const
inherited

Definition at line 61 of file TileRawData.cxx.

61  {
62  return s_cabling->h2s_cell_id(m_adc_hwid);
63 }

◆ cell_ID_index()

Identifier TileRawData::cell_ID_index ( int &  index,
int &  pmt 
) const
inherited

Definition at line 65 of file TileRawData.cxx.

65  {
66  return s_cabling->h2s_cell_id_index(m_adc_hwid, index, pmt);
67 }

◆ frag_ID()

int TileRawData::frag_ID ( void  ) const
inherited

Definition at line 77 of file TileRawData.cxx.

77  {
78  return s_cabling->frag(m_adc_hwid);
79 }

◆ get_digits()

const std::vector<uint32_t>& TileBeamElem::get_digits ( void  ) const
inline

Definition at line 47 of file TileBeamElem.h.

47 { return m_digits; }

◆ identify()

Identifier TileRawData::identify ( void  ) const
inlineinherited

Definition at line 52 of file TileRawData.h.

52 { return adc_ID(); }

◆ mt_ID()

Identifier TileRawData::mt_ID ( void  ) const
inherited

Definition at line 73 of file TileRawData.cxx.

73  {
74  return s_cabling->pmt2mt_id(adc_ID());
75 }

◆ operator std::string()

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

Reimplemented from TileRawData.

Definition at line 66 of file TileBeamElem.cxx.

67 {
68  std::ostringstream text(std::ostringstream::out);
69 
70  text << TileRawData::operator std::string();
71 
73 
74  return text.str();
75 }

◆ pmt_ID()

Identifier TileRawData::pmt_ID ( void  ) const
inherited

Definition at line 57 of file TileRawData.cxx.

57  {
58  return s_cabling->h2s_pmt_id(m_adc_hwid);
59 }

◆ print()

void TileBeamElem::print ( void  ) const
virtual

Reimplemented from TileRawData.

Definition at line 61 of file TileBeamElem.cxx.

62 {
63  std::cout << (std::string) (*this) << std::endl;
64 }

◆ print_to_stream() [1/3]

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

Definition at line 92 of file TileRawData.cxx.

95 {
96  text << label;
97  for (double v : val) {
98  text << " " << v;
99  }
100 }

◆ print_to_stream() [2/3]

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

Definition at line 81 of file TileRawData.cxx.

84 {
85  text << label;
86  for (float v : val) {
87  text << " " << v;
88  }
89 }

◆ print_to_stream() [3/3]

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

Definition at line 102 of file TileRawData.cxx.

105 {
106  text << label;
107  for (uint32_t v : val) {
108  text << " " << v;
109  }
110 }

◆ size()

int TileBeamElem::size ( void  ) const
inline

Definition at line 45 of file TileBeamElem.h.

45 { return m_digits.size(); }

◆ tt_ID()

Identifier TileRawData::tt_ID ( void  ) const
inherited

Definition at line 69 of file TileRawData.cxx.

69  {
70  return s_cabling->pmt2tt_id(adc_ID());
71 }

◆ whoami()

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

Reimplemented from TileRawData.

Definition at line 49 of file TileBeamElem.h.

49 { return "TileBeamElem"; }

Member Data Documentation

◆ m_adc_hwid

HWIdentifier TileRawData::m_adc_hwid
privateinherited

Definition at line 82 of file TileRawData.h.

◆ m_digits

std::vector<uint32_t> TileBeamElem::m_digits
private

Definition at line 58 of file TileBeamElem.h.


The documentation for this class was generated from the following files:
TileBeamElem::m_digits
std::vector< uint32_t > m_digits
Definition: TileBeamElem.h:58
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
index
Definition: index.py:1
PlotCalibFromCool.label
label
Definition: PlotCalibFromCool.py:78
ReadBchFromCool.pmt
pmt
Definition: ReadBchFromCool.py:62
TileRawData::print_to_stream
static void print_to_stream(const std::vector< float > &val, const std::string &label, std::ostringstream &text)
Definition: TileRawData.cxx:81
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
checkRpcDigits.digit
digit
Definition: checkRpcDigits.py:186
TileRawData::TileRawData
TileRawData()
Definition: TileRawData.h:38
TileRawData::m_adc_hwid
HWIdentifier m_adc_hwid
Definition: TileRawData.h:82
python.PyAthena.v
v
Definition: PyAthena.py:154
TileRawData::adc_ID
Identifier adc_ID(void) const
Definition: TileRawData.cxx:53
Pythia8_RapidityOrderMPI.val
val
Definition: Pythia8_RapidityOrderMPI.py:14
makeTransCanvas.text
text
Definition: makeTransCanvas.py:11