ATLAS Offline Software
Loading...
Searching...
No Matches
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)
 TileMuonReceiverObj (const TileMuonReceiverObj &)=default
TileMuonReceiverObjoperator= (const TileMuonReceiverObj &)=default
 TileMuonReceiverObj (TileMuonReceiverObj &&)=default
TileMuonReceiverObjoperator= (TileMuonReceiverObj &&)=default
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/9]

TileMuonReceiverObj::TileMuonReceiverObj ( )
inline

Definition at line 40 of file TileMuonReceiverObj.h.

◆ TileMuonReceiverObj() [2/9]

TileMuonReceiverObj::TileMuonReceiverObj ( int id)
inline

◆ TileMuonReceiverObj() [3/9]

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/9]

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/9]

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),
59 m_TileMuRcvTime(time)
60 {
61 }

◆ TileMuonReceiverObj() [6/9]

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),
67 m_TileMuRcvTime(time)
68
69 {
70 }

◆ TileMuonReceiverObj() [7/9]

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() [8/9]

TileMuonReceiverObj::TileMuonReceiverObj ( const TileMuonReceiverObj & )
default

◆ TileMuonReceiverObj() [9/9]

TileMuonReceiverObj::TileMuonReceiverObj ( TileMuonReceiverObj && )
default

◆ ~TileMuonReceiverObj()

virtual TileMuonReceiverObj::~TileMuonReceiverObj ( )
inlinevirtual

Definition at line 92 of file TileMuonReceiverObj.h.

92{}

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 114 of file TileMuonReceiverObj.h.

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

◆ GetEne()

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

Definition at line 116 of file TileMuonReceiverObj.h.

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

◆ GetID()

int TileMuonReceiverObj::GetID ( ) const
inline

Definition at line 110 of file TileMuonReceiverObj.h.

110{ return m_id; }

◆ GetThresholds()

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

Definition at line 115 of file TileMuonReceiverObj.h.

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

◆ GetTime()

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

Definition at line 117 of file TileMuonReceiverObj.h.

117{ 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 112 of file TileMuonReceiverObj.h.

112{ 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 }
std::string whoami(void) const

◆ operator=() [1/2]

TileMuonReceiverObj & TileMuonReceiverObj::operator= ( const TileMuonReceiverObj & )
default

◆ operator=() [2/2]

TileMuonReceiverObj & TileMuonReceiverObj::operator= ( TileMuonReceiverObj && )
default

◆ 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 96 of file TileMuonReceiverObj.h.

97 { 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 102 of file TileMuonReceiverObj.h.

time(flags, cells_name, *args, **kw)

◆ 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 105 of file TileMuonReceiverObj.h.

◆ Set() [4/4]

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

Definition at line 99 of file TileMuonReceiverObj.h.

100 { m_id=id; m_TileMuRcvThresholds=thresholds; }

◆ whoami()

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

Definition at line 121 of file TileMuonReceiverObj.h.

121{ return "TileMuonReceiverObj"; }

Member Data Documentation

◆ m_id

int TileMuonReceiverObj::m_id
private

Definition at line 131 of file TileMuonReceiverObj.h.

◆ m_TileMuRcvDecision

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

Definition at line 132 of file TileMuonReceiverObj.h.

◆ m_TileMuRcvEne

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

Definition at line 134 of file TileMuonReceiverObj.h.

◆ m_TileMuRcvThresholds

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

Definition at line 133 of file TileMuonReceiverObj.h.

◆ m_TileMuRcvTime

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

Definition at line 135 of file TileMuonReceiverObj.h.


The documentation for this class was generated from the following files: