ATLAS Offline Software
Loading...
Searching...
No Matches
MuonCalib::MuonCalibTgcTruthHit Class Reference

Class with truth information of a RPC hit, containing: More...

#include <MuonCalibTgcTruthHit.h>

Collaboration diagram for MuonCalib::MuonCalibTgcTruthHit:

Public Member Functions

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

Private Attributes

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

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} {}
double time() const
retrieve the time
MuonFixedId m_ID
identifier of the truth hit, (is a MuonFixedId, not an Identifier)
int barCode() const
retrieve the barcode

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 }
const MuonFixedId & identify() const
retrieve the MuonFixedId

◆ 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)

◆ 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.

45{0};

◆ 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.

44{0};

◆ m_time

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

time

Definition at line 46 of file MuonCalibTgcTruthHit.h.

46{0.};

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