ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
MuonCalib::MuonCalibTgcTruthHit Class Reference

#include <MuonCalibTgcTruthHit.h>

Collaboration diagram for MuonCalib::MuonCalibTgcTruthHit:

Public Member Functions

 MuonCalibTgcTruthHit ()=default
 default constructor More...
 
MuonCalibTgcTruthHitoperator= (const MuonCalibTgcTruthHit &rhs)=default
 assignment operator More...
 
 MuonCalibTgcTruthHit (const MuonCalibTgcTruthHit &truth)=default
 copyconstructor More...
 
 ~MuonCalibTgcTruthHit ()=default
 destructor More...
 
 MuonCalibTgcTruthHit (MuonFixedId id, int barCode, double time)
 constructor initializing all attributes of the truth hit More...
 
std::ostream & dump (std::ostream &stream) const
 dump to be used for operator<<() to dump the MuonCalibTgcTruthHit More...
 
const MuonFixedIdidentify () const
 retrieve the MuonFixedId More...
 
int barCode () const
 retrieve the barcode More...
 
double time () const
 retrieve the time More...
 
void setIdentifier (MuonFixedId id)
 sets the MuonFixedId More...
 
void setBarCode (int barCode)
 sets the barcode More...
 
void setTime (double time)
 sets the time More...
 

Private Attributes

MuonFixedId m_ID {0}
 identifier of the truth hit, (is a MuonFixedId, not an Identifier) More...
 
int m_barCode {0}
 barcode More...
 
double m_time {0.}
 time More...
 

Detailed Description

Class with truth information of a RPC hit, containing:

Definition at line 24 of file MuonCalibTgcTruthHit.h.

Constructor & Destructor Documentation

◆ MuonCalibTgcTruthHit() [1/3]

MuonCalib::MuonCalibTgcTruthHit::MuonCalibTgcTruthHit ( )
default

default constructor

◆ MuonCalibTgcTruthHit() [2/3]

MuonCalib::MuonCalibTgcTruthHit::MuonCalibTgcTruthHit ( const MuonCalibTgcTruthHit truth)
default

copyconstructor

◆ ~MuonCalibTgcTruthHit()

MuonCalib::MuonCalibTgcTruthHit::~MuonCalibTgcTruthHit ( )
default

destructor

◆ MuonCalibTgcTruthHit() [3/3]

MuonCalib::MuonCalibTgcTruthHit::MuonCalibTgcTruthHit ( MuonFixedId  id,
int  barCode,
double  time 
)

constructor initializing all attributes of the truth hit

Definition at line 17 of file MuonCalibTgcTruthHit.cxx.

17 : m_ID{id}, m_barCode{barCode}, m_time{time} {}

Member Function Documentation

◆ barCode()

int MuonCalib::MuonCalibTgcTruthHit::barCode ( ) const

retrieve the barcode

Definition at line 10 of file MuonCalibTgcTruthHit.cxx.

10 { return m_barCode; }

◆ dump()

std::ostream & MuonCalib::MuonCalibTgcTruthHit::dump ( std::ostream &  stream) const

dump to be used for operator<<() to dump the MuonCalibTgcTruthHit

Definition at line 19 of file MuonCalibTgcTruthHit.cxx.

19  {
20  stream << "MuonCalibTgcTruthHit: " << std::endl;
21  stream << " ID = " << identify() << std::endl;
22  stream << " barCode = " << barCode() << std::endl;
23  stream << " Time = " << time() << std::endl;
24  return stream;
25  }

◆ identify()

const MuonFixedId & MuonCalib::MuonCalibTgcTruthHit::identify ( ) const

retrieve the MuonFixedId

Definition at line 9 of file MuonCalibTgcTruthHit.cxx.

9 { return m_ID; }

◆ operator=()

MuonCalibTgcTruthHit& MuonCalib::MuonCalibTgcTruthHit::operator= ( const MuonCalibTgcTruthHit rhs)
default

assignment operator

◆ setBarCode()

void MuonCalib::MuonCalibTgcTruthHit::setBarCode ( int  barCode)

sets the barcode

Definition at line 14 of file MuonCalibTgcTruthHit.cxx.

14 { m_barCode = barCode; }

◆ setIdentifier()

void MuonCalib::MuonCalibTgcTruthHit::setIdentifier ( MuonFixedId  id)

sets the MuonFixedId

Definition at line 13 of file MuonCalibTgcTruthHit.cxx.

13 { m_ID = id; }

◆ setTime()

void MuonCalib::MuonCalibTgcTruthHit::setTime ( double  time)

sets the time

Definition at line 15 of file MuonCalibTgcTruthHit.cxx.

15 { m_time = time; }

◆ time()

double MuonCalib::MuonCalibTgcTruthHit::time ( ) const

retrieve the time

Definition at line 11 of file MuonCalibTgcTruthHit.cxx.

11 { return m_time; }

Member Data Documentation

◆ m_barCode

int MuonCalib::MuonCalibTgcTruthHit::m_barCode {0}
private

barcode

Definition at line 45 of file MuonCalibTgcTruthHit.h.

◆ m_ID

MuonFixedId MuonCalib::MuonCalibTgcTruthHit::m_ID {0}
private

identifier of the truth hit, (is a MuonFixedId, not an Identifier)

Definition at line 44 of file MuonCalibTgcTruthHit.h.

◆ m_time

double MuonCalib::MuonCalibTgcTruthHit::m_time {0.}
private

time

Definition at line 46 of file MuonCalibTgcTruthHit.h.


The documentation for this class was generated from the following files:
MuonCalib::MuonCalibTgcTruthHit::m_time
double m_time
time
Definition: MuonCalibTgcTruthHit.h:46
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
MuonCalib::MuonCalibTgcTruthHit::barCode
int barCode() const
retrieve the barcode
Definition: MuonCalibTgcTruthHit.cxx:10
MuonCalib::MuonCalibTgcTruthHit::m_barCode
int m_barCode
barcode
Definition: MuonCalibTgcTruthHit.h:45
MuonCalib::MuonCalibTgcTruthHit::time
double time() const
retrieve the time
Definition: MuonCalibTgcTruthHit.cxx:11
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:194
MuonCalib::MuonCalibTgcTruthHit::m_ID
MuonFixedId m_ID
identifier of the truth hit, (is a MuonFixedId, not an Identifier)
Definition: MuonCalibTgcTruthHit.h:44
MuonCalib::MuonCalibTgcTruthHit::identify
const MuonFixedId & identify() const
retrieve the MuonFixedId
Definition: MuonCalibTgcTruthHit.cxx:9