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

#include <TileTrigger.h>

Collaboration diagram for TileTrigger:

Public Member Functions

 TileTrigger ()
 
 TileTrigger (int id, const Identifier &mtid, double mtsum, std::vector< Identifier > &boardtid, std::vector< double > &boardtsum, std::vector< Identifier > &backtid, std::vector< double > &backtsum)
 
 TileTrigger (const Identifier &mtid, double mtsum, std::vector< Identifier > &boardtid, std::vector< double > &boardtsum, std::vector< Identifier > &backtid, std::vector< double > &backtsum)
 
void Set (int id, const Identifier &mtid, double mtsum, std::vector< Identifier > &boardtid, std::vector< double > &boardtsum, std::vector< Identifier > &backtid, std::vector< double > &backtsum)
 
void Set (const Identifier &mtid, double mtsum, std::vector< Identifier > &boardtid, std::vector< double > &boardtsum, std::vector< Identifier > &backtid, std::vector< double > &backtsum)
 
void SetID (int id)
 
void SetMaxTowerID (const Identifier &mtid)
 
void SetMaxTowerSum (double mtsum)
 
void SetBoardTowerID (std::vector< Identifier > &boardtid)
 
void SetBoardTowerSum (std::vector< double > &boardtsum)
 
void SetBackTowerID (std::vector< Identifier > &backtid)
 
void SetBackTowerSum (std::vector< double > &backtsum)
 
int GetID () const
 
Identifier GetMaxTowerID () const
 
double GetMaxTowerSum () const
 
const std::vector< Identifier > & GetBoardTowerID () const
 
const std::vector< double > & GetBoardTowerSum () const
 
const std::vector< Identifier > & GetBackTowerID () const
 
const std::vector< double > & GetBackTowerSum () const
 
std::string whoami (void) const
 
void print (void) const
 
 operator std::string () const
 

Private Attributes

int m_ID
 
Identifier m_maxTowerID
 
double m_maxTowerSum
 
std::vector< Identifierm_boardTowerID
 
std::vector< double > m_boardTowerSum
 
std::vector< Identifierm_backTowerID
 
std::vector< double > m_backTowerSum
 

Detailed Description

Definition at line 39 of file TileTrigger.h.

Constructor & Destructor Documentation

◆ TileTrigger() [1/3]

TileTrigger::TileTrigger ( )
inline

Definition at line 45 of file TileTrigger.h.

45 : m_ID(0), m_maxTowerSum(0.0) {}

◆ TileTrigger() [2/3]

TileTrigger::TileTrigger ( int  id,
const Identifier mtid,
double  mtsum,
std::vector< Identifier > &  boardtid,
std::vector< double > &  boardtsum,
std::vector< Identifier > &  backtid,
std::vector< double > &  backtsum 
)

Definition at line 34 of file TileTrigger.cxx.

36  :
37  m_ID(id),
38  m_maxTowerID (mtid),
39  m_maxTowerSum (mtsum),
40  m_boardTowerID (boardtid),
41  m_boardTowerSum (boardtsum),
42  m_backTowerID (backtid),
43  m_backTowerSum (backtsum)
44  { }

◆ TileTrigger() [3/3]

TileTrigger::TileTrigger ( const Identifier mtid,
double  mtsum,
std::vector< Identifier > &  boardtid,
std::vector< double > &  boardtsum,
std::vector< Identifier > &  backtid,
std::vector< double > &  backtsum 
)

Definition at line 46 of file TileTrigger.cxx.

48  :
49  m_ID(0),
50  m_maxTowerID (mtid),
51  m_maxTowerSum (mtsum),
52  m_boardTowerID (boardtid),
53  m_boardTowerSum (boardtsum),
54  m_backTowerID (backtid),
55  m_backTowerSum (backtsum)
56  { }

Member Function Documentation

◆ GetBackTowerID()

const std::vector<Identifier>& TileTrigger::GetBackTowerID ( ) const
inline

Definition at line 81 of file TileTrigger.h.

81 {return m_backTowerID; }

◆ GetBackTowerSum()

const std::vector<double>& TileTrigger::GetBackTowerSum ( ) const
inline

Definition at line 82 of file TileTrigger.h.

82 {return m_backTowerSum; }

◆ GetBoardTowerID()

const std::vector<Identifier>& TileTrigger::GetBoardTowerID ( ) const
inline

Definition at line 79 of file TileTrigger.h.

79 {return m_boardTowerID; }

◆ GetBoardTowerSum()

const std::vector<double>& TileTrigger::GetBoardTowerSum ( ) const
inline

Definition at line 80 of file TileTrigger.h.

80 {return m_boardTowerSum; }

◆ GetID()

int TileTrigger::GetID ( ) const
inline

Definition at line 76 of file TileTrigger.h.

76 {return m_ID; }

◆ GetMaxTowerID()

Identifier TileTrigger::GetMaxTowerID ( ) const
inline

Definition at line 77 of file TileTrigger.h.

77 {return m_maxTowerID; }

◆ GetMaxTowerSum()

double TileTrigger::GetMaxTowerSum ( ) const
inline

Definition at line 78 of file TileTrigger.h.

78 {return m_maxTowerSum; }

◆ operator std::string()

TileTrigger::operator std::string ( ) const

Definition at line 88 of file TileTrigger.cxx.

89 {
90  std::ostringstream text(std::ostringstream::out);
91 
92  text << whoami();
93  text << " Id = " << s_cabling->getCaloLVL1_ID()->show_to_string(m_maxTowerID);
94  text << " maxTowerSum = " << m_maxTowerSum << std::endl;
95 
96  std::vector<Identifier>::const_iterator ii1=m_boardTowerID.begin();
97  std::vector<Identifier>::const_iterator ii2=m_boardTowerID.end();
98 
99  std::vector<double>::const_iterator iv1=m_boardTowerSum.begin();
100  std::vector<double>::const_iterator iv2=m_boardTowerSum.end();
101 
102  text << " nTriggerBoards = " << m_boardTowerSum.size();
103  for ( ; ii1!=ii2 && iv1!=iv2 ; ++ii1, ++iv1)
104  text << " (" << s_cabling->getCaloLVL1_ID()->show_to_string(*ii1) << ", " << (*iv1) << ")";
105  text<<std::endl;
106 
107  ii1=m_backTowerID.begin();
108  ii2=m_backTowerID.end();
109 
110  iv1=m_backTowerSum.begin();
111  iv2=m_backTowerSum.end();
112 
113  text << " nBack2BackTowers = " << m_backTowerSum.size();
114  for ( ; ii1!=ii2 && iv1!=iv2 ; ++ii1, ++iv1)
115  text << " (" << s_cabling->getCaloLVL1_ID()->show_to_string(*ii1) << ", " << (*iv1) << ")";
116  text<<std::endl;
117 
118  return text.str();
119 }

◆ print()

void TileTrigger::print ( void  ) const

Definition at line 83 of file TileTrigger.cxx.

84 {
85  std::cout << (std::string) (*this) << std::endl;
86 }

◆ Set() [1/2]

void TileTrigger::Set ( const Identifier mtid,
double  mtsum,
std::vector< Identifier > &  boardtid,
std::vector< double > &  boardtsum,
std::vector< Identifier > &  backtid,
std::vector< double > &  backtsum 
)

Definition at line 71 of file TileTrigger.cxx.

74 {
75  SetMaxTowerID(mtid);
76  SetMaxTowerSum(mtsum);
77  SetBoardTowerID(boardtid);
78  SetBoardTowerSum(boardtsum);
79  SetBackTowerID(backtid);
80  SetBackTowerSum(backtsum);
81 }

◆ Set() [2/2]

void TileTrigger::Set ( int  id,
const Identifier mtid,
double  mtsum,
std::vector< Identifier > &  boardtid,
std::vector< double > &  boardtsum,
std::vector< Identifier > &  backtid,
std::vector< double > &  backtsum 
)

Definition at line 58 of file TileTrigger.cxx.

61 {
62  SetID(id);
63  SetMaxTowerID(mtid);
64  SetMaxTowerSum(mtsum);
65  SetBoardTowerID(boardtid);
66  SetBoardTowerSum(boardtsum);
67  SetBackTowerID(backtid);
68  SetBackTowerSum(backtsum);
69 }

◆ SetBackTowerID()

void TileTrigger::SetBackTowerID ( std::vector< Identifier > &  backtid)
inline

Definition at line 71 of file TileTrigger.h.

71 {m_backTowerID = backtid; }

◆ SetBackTowerSum()

void TileTrigger::SetBackTowerSum ( std::vector< double > &  backtsum)
inline

Definition at line 72 of file TileTrigger.h.

72 {m_backTowerSum = backtsum; }

◆ SetBoardTowerID()

void TileTrigger::SetBoardTowerID ( std::vector< Identifier > &  boardtid)
inline

Definition at line 69 of file TileTrigger.h.

69 {m_boardTowerID = boardtid; }

◆ SetBoardTowerSum()

void TileTrigger::SetBoardTowerSum ( std::vector< double > &  boardtsum)
inline

Definition at line 70 of file TileTrigger.h.

70 {m_boardTowerSum = boardtsum; }

◆ SetID()

void TileTrigger::SetID ( int  id)
inline

Definition at line 66 of file TileTrigger.h.

66 {m_ID = id; }

◆ SetMaxTowerID()

void TileTrigger::SetMaxTowerID ( const Identifier mtid)
inline

Definition at line 67 of file TileTrigger.h.

67 {m_maxTowerID = mtid; }

◆ SetMaxTowerSum()

void TileTrigger::SetMaxTowerSum ( double  mtsum)
inline

Definition at line 68 of file TileTrigger.h.

68 {m_maxTowerSum = mtsum; }

◆ whoami()

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

Definition at line 86 of file TileTrigger.h.

86 { return "TileTrigger"; }

Member Data Documentation

◆ m_backTowerID

std::vector<Identifier> TileTrigger::m_backTowerID
private

Definition at line 102 of file TileTrigger.h.

◆ m_backTowerSum

std::vector<double> TileTrigger::m_backTowerSum
private

Definition at line 103 of file TileTrigger.h.

◆ m_boardTowerID

std::vector<Identifier> TileTrigger::m_boardTowerID
private

Definition at line 99 of file TileTrigger.h.

◆ m_boardTowerSum

std::vector<double> TileTrigger::m_boardTowerSum
private

Definition at line 100 of file TileTrigger.h.

◆ m_ID

int TileTrigger::m_ID
private

Definition at line 95 of file TileTrigger.h.

◆ m_maxTowerID

Identifier TileTrigger::m_maxTowerID
private

Definition at line 96 of file TileTrigger.h.

◆ m_maxTowerSum

double TileTrigger::m_maxTowerSum
private

Definition at line 97 of file TileTrigger.h.


The documentation for this class was generated from the following files:
TileTrigger::m_maxTowerID
Identifier m_maxTowerID
Definition: TileTrigger.h:96
TileTrigger::m_ID
int m_ID
Definition: TileTrigger.h:95
TileTrigger::SetID
void SetID(int id)
Definition: TileTrigger.h:66
TileTrigger::m_backTowerSum
std::vector< double > m_backTowerSum
Definition: TileTrigger.h:103
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
TileTrigger::SetBoardTowerID
void SetBoardTowerID(std::vector< Identifier > &boardtid)
Definition: TileTrigger.h:69
TileTrigger::m_backTowerID
std::vector< Identifier > m_backTowerID
Definition: TileTrigger.h:102
TileTrigger::SetBackTowerSum
void SetBackTowerSum(std::vector< double > &backtsum)
Definition: TileTrigger.h:72
TileTrigger::whoami
std::string whoami(void) const
Definition: TileTrigger.h:86
TileTrigger::m_boardTowerID
std::vector< Identifier > m_boardTowerID
Definition: TileTrigger.h:99
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:220
makeTransCanvas.text
text
Definition: makeTransCanvas.py:11
TileTrigger::SetMaxTowerSum
void SetMaxTowerSum(double mtsum)
Definition: TileTrigger.h:68
TileTrigger::SetBoardTowerSum
void SetBoardTowerSum(std::vector< double > &boardtsum)
Definition: TileTrigger.h:70
TileTrigger::m_boardTowerSum
std::vector< double > m_boardTowerSum
Definition: TileTrigger.h:100
TileTrigger::m_maxTowerSum
double m_maxTowerSum
Definition: TileTrigger.h:97
TileTrigger::SetBackTowerID
void SetBackTowerID(std::vector< Identifier > &backtid)
Definition: TileTrigger.h:71
TileTrigger::SetMaxTowerID
void SetMaxTowerID(const Identifier &mtid)
Definition: TileTrigger.h:67