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

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

#include <MuonCalibRpcTruthHit.h>

Collaboration diagram for MuonCalib::MuonCalibRpcTruthHit:

Public Member Functions

 MuonCalibRpcTruthHit ()=default
 default constructor
 MuonCalibRpcTruthHit (const MuonCalibRpcTruthHit &truth)=default
 copyconstructor
 ~MuonCalibRpcTruthHit ()=default
 destructor
MuonCalibRpcTruthHitoperator= (const MuonCalibRpcTruthHit &rhs)=default
 assignment operator
 MuonCalibRpcTruthHit (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 MuonCalibRpcTruthHit
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 MuonCalibRpcTruthHit.h.

Constructor & Destructor Documentation

◆ MuonCalibRpcTruthHit() [1/3]

MuonCalib::MuonCalibRpcTruthHit::MuonCalibRpcTruthHit ( )
default

default constructor

◆ MuonCalibRpcTruthHit() [2/3]

MuonCalib::MuonCalibRpcTruthHit::MuonCalibRpcTruthHit ( const MuonCalibRpcTruthHit & truth)
default

copyconstructor

◆ ~MuonCalibRpcTruthHit()

MuonCalib::MuonCalibRpcTruthHit::~MuonCalibRpcTruthHit ( )
default

destructor

◆ MuonCalibRpcTruthHit() [3/3]

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

constructor initializing all attributes of the truth hit

Definition at line 17 of file MuonCalibRpcTruthHit.cxx.

17: m_ID{id}, m_barCode{barCode}, m_time{time} {}
int barCode() const
retrieve the barcode
double time() const
retrieve the time
MuonFixedId m_ID
identifier of the truth hit, (is a MuonFixedId, not an Identifier)

Member Function Documentation

◆ barCode()

int MuonCalib::MuonCalibRpcTruthHit::barCode ( ) const

retrieve the barcode

Definition at line 10 of file MuonCalibRpcTruthHit.cxx.

10{ return m_barCode; }

◆ dump()

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

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

Definition at line 18 of file MuonCalibRpcTruthHit.cxx.

18 {
19 stream << "MuonCalibRpcTruthHit: " << std::endl;
20 stream << " ID = " << identify() << std::endl;
21 stream << " barCode = " << barCode() << std::endl;
22 stream << " Time = " << time() << std::endl;
23 return stream;
24 }
const MuonFixedId & identify() const
retrieve the MuonFixedId

◆ identify()

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

retrieve the MuonFixedId

Definition at line 9 of file MuonCalibRpcTruthHit.cxx.

9{ return m_ID; }

◆ operator=()

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

assignment operator

◆ setBarCode()

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

sets the barcode

Definition at line 14 of file MuonCalibRpcTruthHit.cxx.

14{ m_barCode = barCode; }

◆ setIdentifier()

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

◆ setTime()

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

sets the time

Definition at line 15 of file MuonCalibRpcTruthHit.cxx.

15{ m_time = time; }

◆ time()

double MuonCalib::MuonCalibRpcTruthHit::time ( ) const

retrieve the time

Definition at line 11 of file MuonCalibRpcTruthHit.cxx.

11{ return m_time; }

Member Data Documentation

◆ m_barCode

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

barcode

Definition at line 45 of file MuonCalibRpcTruthHit.h.

45{0};

◆ m_ID

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

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

Definition at line 44 of file MuonCalibRpcTruthHit.h.

44{0};

◆ m_time

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

time

Definition at line 46 of file MuonCalibRpcTruthHit.h.

46{0.};

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