#include <MuonHitTimingTool.h>
Definition at line 27 of file MuonHitTimingTool.h.
◆ MuonHitTimingTool()
| MuonHitTimingTool::MuonHitTimingTool |
( |
const std::string & | t, |
|
|
const std::string & | n, |
|
|
const IInterface * | p ) |
Definition at line 12 of file MuonHitTimingTool.cxx.
12 :
13 base_class(t,n,p),
15 using namespace MuonStationIndex;
16 for(
int tech = 0;tech<
toInt(TechnologyIndex::TechnologyIndexMax);++tech ){
17 if( tech ==
toInt(TechnologyIndex::RPC) )
m_hitTimingTools.push_back(ToolHandle<IMuonHitTimingTool>(
"Muon::RPC_TimingTool/RPC_TimingTool"));
19 }
20
21 }
constexpr int toInt(const EnumType enumVal)
◆ ~MuonHitTimingTool()
| virtual Muon::MuonHitTimingTool::~MuonHitTimingTool |
( |
| ) |
|
|
virtualdefault |
◆ calculateTimingResult()
Calculate the time offset of a given set of hits wrt to the current bunch.
Definition at line 45 of file MuonHitTimingTool.cxx.
45 {
46
47
48 if(
hits.empty() || !
hits.front())
return {};
49
50
51 Identifier
id =
hits.front()->identify();
52 using namespace MuonStationIndex;
54
55
57 if( toolHandle.empty() ) {
59 return {};
60 }
61 return toolHandle->calculateTimingResult(hits);
62 }
#define ATH_MSG_VERBOSE(x)
TechnologyIndex
enum to classify the different layers in the muon spectrometer
const std::string & technologyName(TechnologyIndex index)
convert LayerIndex into a string
◆ initialize()
| StatusCode MuonHitTimingTool::initialize |
( |
| ) |
|
|
finaloverridevirtual |
standard initialization method
Definition at line 23 of file MuonHitTimingTool.cxx.
23 {
24
26 using namespace MuonStationIndex;
27
29 ATH_MSG_ERROR(
" The MuonHitTimingTool ToolHandleArray SHOULD contain exactly "
30 <<
toInt(TechnologyIndex::TechnologyIndexMax) <<
" ToolHandles (they can be empty). ");
31 return StatusCode::FAILURE;
32 }
33
34
35 for(
int tech = 0;tech<
toInt(TechnologyIndex::TechnologyIndexMax);++tech ){
36
39 if( toolHandle.empty() ) continue;
41 }
42 return StatusCode::SUCCESS;
43 }
#define ATH_CHECK
Evaluate an expression and check for errors.
◆ m_hitTimingTools
◆ m_idHelperSvc
Definition at line 41 of file MuonHitTimingTool.h.
41{this,"MuonIdHelperSvc","Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
The documentation for this class was generated from the following files: