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

#include <MuonCalibRpcTruthHit.h>

Collaboration diagram for MuonCalib::MuonCalibRpcTruthHit:

Public Member Functions

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

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  }

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

sets the MuonFixedId

Definition at line 13 of file MuonCalibRpcTruthHit.cxx.

13 { m_ID = 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.

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

◆ m_time

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

time

Definition at line 46 of file MuonCalibRpcTruthHit.h.


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