#include <RPC_TimingTool.h>
Definition at line 24 of file RPC_TimingTool.h.
◆ RPC_TimingTool()
| RPC_TimingTool::RPC_TimingTool |
( |
const std::string & | t, |
|
|
const std::string & | n, |
|
|
const IInterface * | p ) |
◆ ~RPC_TimingTool()
| virtual Muon::RPC_TimingTool::~RPC_TimingTool |
( |
| ) |
|
|
virtualdefault |
◆ calculateTimingResult()
Calculate the time offset of a given set of hits wrt to the current bunch.
Definition at line 19 of file RPC_TimingTool.cxx.
19 {
20
21
22 if(
hits.empty() )
return {};
23
25
27 float minTime = -100.;
30
31
32 for( const auto *hit : hits ){
33 const RpcClusterOnTrack* rpc = dynamic_cast<const RpcClusterOnTrack*>(hit);
34 if( !rpc ) continue;
35 int bin = invbinwidth*(rpc->time()-minTime);
37 if( bin < 0 || bin >= (
int)
histogram.size() )
continue;
39 }
40 int maxbin = -1;
41 int maxval = 0;
44 if( val > maxval ){
47 }
48 }
49 if( maxbin != -1 ){
51 unsigned int nhits = 0;
53 for( const auto *hit : hits ){
54 const RpcClusterOnTrack* rpc = dynamic_cast<const RpcClusterOnTrack*>(hit);
55 if( !rpc ) continue;
56 int bin = invbinwidth*(rpc->time()-minTime);
58
59 if( bin > maxbin+1 || bin < maxbin-1 ) continue;
61 ++nhits;
62 }
63 if( nhits == 0 ) return {};
65 ATH_MSG_DEBUG(
" final time " << time <<
" error " << error );
67 }
68 return {};
69 }
time(flags, cells_name, *args, **kw)
◆ getError()
calculate error on the RPC time
Definition at line 71 of file RPC_TimingTool.cxx.
71 {
72
73
74
75
79 if( stIndex == MuonStationIndex::StIndex::BO) {
80
81 if (measPhi==1) return 5.10;
82 return 4.84;
83 }else{
84
85 if (measPhi==1) return 5.04;
86 else return 4.18;
87 }
88 }
Identifier identify() const
return the identifier -extends MeasurementBase
StIndex
enum to classify the different station layers in the muon spectrometer
◆ initialize()
| StatusCode RPC_TimingTool::initialize |
( |
| ) |
|
|
finaloverridevirtual |
Definition at line 14 of file RPC_TimingTool.cxx.
14 {
16 return StatusCode::SUCCESS;
17 }
#define ATH_CHECK
Evaluate an expression and check for errors.
◆ m_idHelperSvc
Definition at line 40 of file RPC_TimingTool.h.
40{this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
The documentation for this class was generated from the following files: