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

#include <TileTTL1.h>

Collaboration diagram for TileTTL1:

Public Member Functions

 TileTTL1 ()
 
 TileTTL1 (const Identifier &id, const std::vector< double > &digits)
 
 TileTTL1 (const Identifier &id, const std::vector< float > &digits)
 
 TileTTL1 (const Identifier &id, std::vector< float > &&digits)
 
 ~TileTTL1 ()=default
 
const IdentifierTTL1_ID () const
 
Identifier identify (void) const
 
short nsamples () const
 
const std::vector< double > samples () const
 
const std::vector< float > & fsamples () const
 
std::string whoami (void) const
 
void print (void) const
 
 operator std::string () const
 

Private Attributes

Identifier m_ID
 
std::vector< float > m_TTL1digits
 

Detailed Description

Definition at line 26 of file TileTTL1.h.

Constructor & Destructor Documentation

◆ TileTTL1() [1/4]

TileTTL1::TileTTL1 ( )
inline

Definition at line 32 of file TileTTL1.h.

32 {}

◆ TileTTL1() [2/4]

TileTTL1::TileTTL1 ( const Identifier id,
const std::vector< double > &  digits 
)

Definition at line 48 of file TileTTL1.cxx.

49  :
50  m_ID (id)
51  {
52 
53  m_TTL1digits.reserve(digits.size());
54 
55  std::vector<double>::const_iterator it1=digits.begin();
56  std::vector<double>::const_iterator it2=digits.end();
57 
58  float dig;
59  for ( ; it1!=it2; ++it1) {
60  dig = (*it1);
61  m_TTL1digits.push_back(dig);
62  }
63  }

◆ TileTTL1() [3/4]

TileTTL1::TileTTL1 ( const Identifier id,
const std::vector< float > &  digits 
)

Definition at line 34 of file TileTTL1.cxx.

35  :
36  m_ID (id),
37  m_TTL1digits (digits)
38  { }

◆ TileTTL1() [4/4]

TileTTL1::TileTTL1 ( const Identifier id,
std::vector< float > &&  digits 
)

Definition at line 41 of file TileTTL1.cxx.

42  :
43  m_ID (id),
44  m_TTL1digits (std::move(digits))
45  { }

◆ ~TileTTL1()

TileTTL1::~TileTTL1 ( )
default

Member Function Documentation

◆ fsamples()

const std::vector< float > & TileTTL1::fsamples ( ) const

Definition at line 77 of file TileTTL1.cxx.

77  {
78  return m_TTL1digits;
79 }

◆ identify()

Identifier TileTTL1::identify ( void  ) const
inline

Definition at line 46 of file TileTTL1.h.

46 { return m_ID; }

◆ nsamples()

short TileTTL1::nsamples ( ) const

Definition at line 71 of file TileTTL1.cxx.

71  {
72  return m_TTL1digits.size();
73 }

◆ operator std::string()

TileTTL1::operator std::string ( ) const

Definition at line 94 of file TileTTL1.cxx.

95 {
96  std::ostringstream text(std::ostringstream::out);
97 
98  text << whoami();
99 
100  if (s_cabling->getTileTBID()->is_tiletb(m_ID)) {
101  text << "MBTS Id = " << s_cabling->getTileTBID()->to_string(m_ID);
102  } else {
103  text << " Id = " << s_cabling->getCaloLVL1_ID()->show_to_string(m_ID);
104  }
105 
106  text << " Val:";
107  text << std::setiosflags( std::ios::fixed );
108  text << std::setiosflags( std::ios::showpoint );
109  text << std::setprecision(2);
110 
111  std::vector<float>::const_iterator it1=m_TTL1digits.begin();
112  std::vector<float>::const_iterator it2=m_TTL1digits.end();
113 
114  for ( ; it1!=it2; ++it1) text << " " << (*it1);
115 
116  return text.str();
117 }

◆ print()

void TileTTL1::print ( void  ) const

Definition at line 89 of file TileTTL1.cxx.

90 {
91  std::cout << (std::string) (*this) << std::endl;
92 }

◆ samples()

const std::vector< double > TileTTL1::samples ( ) const

Definition at line 83 of file TileTTL1.cxx.

83  {
84  std::vector<double> dTTL1digits(m_TTL1digits.size());
85  for (unsigned int i=0; i<m_TTL1digits.size(); ++i) dTTL1digits[i] = m_TTL1digits[i];
86  return dTTL1digits;
87 }

◆ TTL1_ID()

const Identifier & TileTTL1::TTL1_ID ( ) const

Definition at line 66 of file TileTTL1.cxx.

66  {
67  return m_ID;
68 }

◆ whoami()

std::string TileTTL1::whoami ( void  ) const
inline

Definition at line 58 of file TileTTL1.h.

58 { return "TileTTL1"; }

Member Data Documentation

◆ m_ID

Identifier TileTTL1::m_ID
private

Definition at line 67 of file TileTTL1.h.

◆ m_TTL1digits

std::vector<float> TileTTL1::m_TTL1digits
private

Definition at line 68 of file TileTTL1.h.


The documentation for this class was generated from the following files:
TileTTL1::m_TTL1digits
std::vector< float > m_TTL1digits
Definition: TileTTL1.h:68
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
lumiFormat.i
int i
Definition: lumiFormat.py:85
DetDescrDictionaryDict::it1
std::vector< HWIdentifier >::iterator it1
Definition: DetDescrDictionaryDict.h:17
TileTTL1::whoami
std::string whoami(void) const
Definition: TileTTL1.h:58
makeTransCanvas.text
text
Definition: makeTransCanvas.py:11
TileTTL1::m_ID
Identifier m_ID
Definition: TileTTL1.h:67