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

#include <TileMuonReceiverObj.h>

Collaboration diagram for TileMuonReceiverObj:

Public Member Functions

 TileMuonReceiverObj ()
 
 TileMuonReceiverObj (int id)
 
 TileMuonReceiverObj (int id, const std::vector< bool > &decision)
 
 TileMuonReceiverObj (int id, const std::vector< float > &thresholds)
 
 TileMuonReceiverObj (int id, const std::vector< float > &ene, const std::vector< float > &time)
 
 TileMuonReceiverObj (int id, const std::vector< float > &ene, const std::vector< float > &time, const std::vector< bool > &decision)
 
 TileMuonReceiverObj (int id, std::vector< float > &&ene, std::vector< float > &&time, std::vector< bool > &&decision, std::vector< float > &&thresholds)
 
virtual ~TileMuonReceiverObj ()
 
void Set (int id, const std::vector< bool > &decision)
 
void Set (int id, const std::vector< float > &thresholds)
 
void Set (int id, const std::vector< float > &ene, const std::vector< float > &time)
 
void Set (int id, const std::vector< float > &ene, const std::vector< float > &time, const std::vector< bool > &decision)
 
int GetID () const
 
int identify (void) const
 
const std::vector< bool > & GetDecision () const
 
const std::vector< float > & GetThresholds () const
 
const std::vector< float > & GetEne () const
 
const std::vector< float > & GetTime () const
 
std::string whoami (void) const
 
void print (void) const
 
void clear (void)
 
 operator std::string () const
 

Private Attributes

int m_id
 
std::vector< bool > m_TileMuRcvDecision
 
std::vector< float > m_TileMuRcvThresholds
 
std::vector< float > m_TileMuRcvEne
 
std::vector< float > m_TileMuRcvTime
 

Detailed Description

Definition at line 28 of file TileMuonReceiverObj.h.

Constructor & Destructor Documentation

◆ TileMuonReceiverObj() [1/7]

TileMuonReceiverObj::TileMuonReceiverObj ( )
inline

◆ TileMuonReceiverObj() [2/7]

TileMuonReceiverObj::TileMuonReceiverObj ( int  id)
inline

Definition at line 42 of file TileMuonReceiverObj.h.

42 { m_id=id; }

◆ TileMuonReceiverObj() [3/7]

TileMuonReceiverObj::TileMuonReceiverObj ( int  id,
const std::vector< bool > &  decision 
)
inline

Definition at line 44 of file TileMuonReceiverObj.h.

45  : m_id(id),
46  m_TileMuRcvDecision(decision)
47  {
48  }

◆ TileMuonReceiverObj() [4/7]

TileMuonReceiverObj::TileMuonReceiverObj ( int  id,
const std::vector< float > &  thresholds 
)
inline

Definition at line 50 of file TileMuonReceiverObj.h.

51  : m_id(id),
52  m_TileMuRcvThresholds(thresholds)
53  {
54  }

◆ TileMuonReceiverObj() [5/7]

TileMuonReceiverObj::TileMuonReceiverObj ( int  id,
const std::vector< float > &  ene,
const std::vector< float > &  time 
)
inline

Definition at line 56 of file TileMuonReceiverObj.h.

57  : m_id(id),
58  m_TileMuRcvEne(ene),
60  {
61  }

◆ TileMuonReceiverObj() [6/7]

TileMuonReceiverObj::TileMuonReceiverObj ( int  id,
const std::vector< float > &  ene,
const std::vector< float > &  time,
const std::vector< bool > &  decision 
)
inline

Definition at line 63 of file TileMuonReceiverObj.h.

64  : m_id(id),
65  m_TileMuRcvDecision(decision),
66  m_TileMuRcvEne(ene),
68 
69  {
70  }

◆ TileMuonReceiverObj() [7/7]

TileMuonReceiverObj::TileMuonReceiverObj ( int  id,
std::vector< float > &&  ene,
std::vector< float > &&  time,
std::vector< bool > &&  decision,
std::vector< float > &&  thresholds 
)
inline

Definition at line 72 of file TileMuonReceiverObj.h.

77  : m_id(id),
78  m_TileMuRcvDecision(std::move(decision)),
79  m_TileMuRcvThresholds(std::move(thresholds)),
80  m_TileMuRcvEne(std::move(ene)),
81  m_TileMuRcvTime(std::move(time))
82  {
83  }

◆ ~TileMuonReceiverObj()

virtual TileMuonReceiverObj::~TileMuonReceiverObj ( )
inlinevirtual

Definition at line 87 of file TileMuonReceiverObj.h.

87 {}

Member Function Documentation

◆ clear()

void TileMuonReceiverObj::clear ( void  )

Definition at line 52 of file TileMuonReceiverObj.cxx.

52  {
53 
54  m_TileMuRcvDecision.clear();
55  m_TileMuRcvThresholds.clear();
56  m_TileMuRcvEne.clear();
57  m_TileMuRcvTime.clear();
58  return;
59 
60 }

◆ GetDecision()

const std::vector<bool>& TileMuonReceiverObj::GetDecision ( ) const
inline

Definition at line 109 of file TileMuonReceiverObj.h.

109 { return m_TileMuRcvDecision; } // [dim 4]

◆ GetEne()

const std::vector<float>& TileMuonReceiverObj::GetEne ( ) const
inline

Definition at line 111 of file TileMuonReceiverObj.h.

111 { return m_TileMuRcvEne; } // [dim 2] d6 and d5+d6

◆ GetID()

int TileMuonReceiverObj::GetID ( ) const
inline

Definition at line 105 of file TileMuonReceiverObj.h.

105 { return m_id; }

◆ GetThresholds()

const std::vector<float>& TileMuonReceiverObj::GetThresholds ( ) const
inline

Definition at line 110 of file TileMuonReceiverObj.h.

110 { return m_TileMuRcvThresholds; } // [dim 4] ... it is the same for every event

◆ GetTime()

const std::vector<float>& TileMuonReceiverObj::GetTime ( ) const
inline

Definition at line 112 of file TileMuonReceiverObj.h.

112 { return m_TileMuRcvTime; } // [dim 2] (t1+t2)/2. and (t1+t2+t3+t4)/4. : 1..4 are the PMTs with 1,2 > D6 and 3,4 > D5

◆ identify()

int TileMuonReceiverObj::identify ( void  ) const
inline

Definition at line 107 of file TileMuonReceiverObj.h.

107 { return m_id; }

◆ operator std::string()

TileMuonReceiverObj::operator std::string ( ) const

Definition at line 34 of file TileMuonReceiverObj.cxx.

35  {
36  std::ostringstream text(std::ostringstream::out);
37  text << whoami();
38  text <<" "<< m_id;
39 
40  text << " Tile decision (4-bit word) ";
41  for (unsigned int i=0; i<m_TileMuRcvDecision.size(); ++i) text << " " << m_TileMuRcvDecision[i];
42  text << " Thres d6H d6L d56H d56L ";
43  for (unsigned int i=0; i<m_TileMuRcvThresholds.size(); ++i) text << " " << m_TileMuRcvThresholds[i];
44  text << " e(d6) e(d5+d6) ";
45  for (unsigned int i=0; i<m_TileMuRcvEne.size(); ++i) text << " " << m_TileMuRcvEne[i];
46  text << " t(d6) t(d5+d6/2.) ";
47  for (unsigned int i=0; i<m_TileMuRcvTime.size(); ++i) text << " " << m_TileMuRcvTime[i];
48 
49  return text.str();
50  }

◆ print()

void TileMuonReceiverObj::print ( void  ) const

Definition at line 30 of file TileMuonReceiverObj.cxx.

30  {
31  std::cout << (std::string) (*this) << std::endl;
32 }

◆ Set() [1/4]

void TileMuonReceiverObj::Set ( int  id,
const std::vector< bool > &  decision 
)
inline

Definition at line 91 of file TileMuonReceiverObj.h.

92  { m_id=id; m_TileMuRcvDecision=decision; }

◆ Set() [2/4]

void TileMuonReceiverObj::Set ( int  id,
const std::vector< float > &  ene,
const std::vector< float > &  time 
)
inline

Definition at line 97 of file TileMuonReceiverObj.h.

◆ Set() [3/4]

void TileMuonReceiverObj::Set ( int  id,
const std::vector< float > &  ene,
const std::vector< float > &  time,
const std::vector< bool > &  decision 
)
inline

Definition at line 100 of file TileMuonReceiverObj.h.

◆ Set() [4/4]

void TileMuonReceiverObj::Set ( int  id,
const std::vector< float > &  thresholds 
)
inline

Definition at line 94 of file TileMuonReceiverObj.h.

95  { m_id=id; m_TileMuRcvThresholds=thresholds; }

◆ whoami()

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

Definition at line 116 of file TileMuonReceiverObj.h.

116 { return "TileMuonReceiverObj"; }

Member Data Documentation

◆ m_id

int TileMuonReceiverObj::m_id
private

Definition at line 126 of file TileMuonReceiverObj.h.

◆ m_TileMuRcvDecision

std::vector<bool> TileMuonReceiverObj::m_TileMuRcvDecision
private

Definition at line 127 of file TileMuonReceiverObj.h.

◆ m_TileMuRcvEne

std::vector<float> TileMuonReceiverObj::m_TileMuRcvEne
private

Definition at line 129 of file TileMuonReceiverObj.h.

◆ m_TileMuRcvThresholds

std::vector<float> TileMuonReceiverObj::m_TileMuRcvThresholds
private

Definition at line 128 of file TileMuonReceiverObj.h.

◆ m_TileMuRcvTime

std::vector<float> TileMuonReceiverObj::m_TileMuRcvTime
private

Definition at line 130 of file TileMuonReceiverObj.h.


The documentation for this class was generated from the following files:
TileMuonReceiverObj::m_id
int m_id
Definition: TileMuonReceiverObj.h:126
TileMuonReceiverObj::m_TileMuRcvDecision
std::vector< bool > m_TileMuRcvDecision
Definition: TileMuonReceiverObj.h:127
TileMuonReceiverObj::m_TileMuRcvEne
std::vector< float > m_TileMuRcvEne
Definition: TileMuonReceiverObj.h:129
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
TileMuonReceiverObj::whoami
std::string whoami(void) const
Definition: TileMuonReceiverObj.h:116
TileMuonReceiverObj::m_TileMuRcvThresholds
std::vector< float > m_TileMuRcvThresholds
Definition: TileMuonReceiverObj.h:128
TileMuonReceiverObj::m_TileMuRcvTime
std::vector< float > m_TileMuRcvTime
Definition: TileMuonReceiverObj.h:130
lumiFormat.i
int i
Definition: lumiFormat.py:92
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:191
CaloSwCorrections.time
def time(flags, cells_name, *args, **kw)
Definition: CaloSwCorrections.py:242
makeTransCanvas.text
text
Definition: makeTransCanvas.py:11