ATLAS Offline Software
InDetSlidingWindowTrackTimeTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // InDetCosmicsEventPhaseTool.h, (c) ATLAS Detector software
8 
9 #ifndef InDetInDetSlidingWindowTrackTimeTool_h
10 #define InDetInDetSlidingWindowTrackTimeTool_h
11 
12 #include "GaudiKernel/AlgTool.h"
14 #include "GaudiKernel/ToolHandle.h"
15 #include "GaudiKernel/MsgStream.h"
18 
21 
22 class AtlasDetectorID;
23 class Identifier;
24 namespace Trk{
25  class Track;
26  class Segment;
27 }
28 
29 namespace InDet
30 {
31 
39  {
40  public:
41  InDetSlidingWindowTrackTimeTool(const std::string&,const std::string&,const IInterface*);
42 
45 
47  virtual StatusCode initialize();
49  virtual StatusCode finalize ();
50 
52  double findPhase(const Trk::Track *track) const;
53 
55  double findPhase(const Trk::Segment *segment) const;
56 
58  double findPhaseFromTE(const Trk::Track *track) const;
59 
60  private:
61 
62 
63  ToolHandle<ITRT_CalDbTool> m_caldbtool ;
64  SG::ReadCondHandleKey<TRTCond::AverageT0> m_T0ReadKey{this,"T0ReadKey","AverageT0","Average T0 in-key"};
65  double m_globalOffset;
66  bool m_useNewEP;
68  double m_windowSize;
69  };
70 }
71 
72 #endif
IInDetCosmicsEventPhaseTool.h
InDet::InDetSlidingWindowTrackTimeTool::m_nIterations
int m_nIterations
Definition: InDetSlidingWindowTrackTimeTool.h:67
InDet::InDetSlidingWindowTrackTimeTool::findPhase
double findPhase(const Trk::Track *track) const
finds event phase of a track from the leading edge
Definition: InDetSlidingWindowTrackTimeTool.cxx:62
Trk::Track
The ATLAS Track class.
Definition: Tracking/TrkEvent/TrkTrack/TrkTrack/Track.h:73
Trk::TrackState::Segment
@ Segment
Definition: TrackStateDefs.h:37
InDet::InDetSlidingWindowTrackTimeTool::initialize
virtual StatusCode initialize()
standard Athena-Algorithm method
Definition: InDetSlidingWindowTrackTimeTool.cxx:46
InDet::InDetSlidingWindowTrackTimeTool::finalize
virtual StatusCode finalize()
standard Athena-Algorithm method
Definition: InDetSlidingWindowTrackTimeTool.cxx:56
InDet
Primary Vertex Finder.
Definition: VP1ErrorUtils.h:36
InDet::InDetSlidingWindowTrackTimeTool::m_caldbtool
ToolHandle< ITRT_CalDbTool > m_caldbtool
TRT Calibration DB tool.
Definition: InDetSlidingWindowTrackTimeTool.h:63
AverageT0.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
InDet::InDetSlidingWindowTrackTimeTool::m_globalOffset
double m_globalOffset
Definition: InDetSlidingWindowTrackTimeTool.h:65
AthAlgTool.h
Trk::Segment
Definition: Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h:56
InDet::InDetSlidingWindowTrackTimeTool::InDetSlidingWindowTrackTimeTool
InDetSlidingWindowTrackTimeTool(const std::string &, const std::string &, const IInterface *)
Definition: InDetSlidingWindowTrackTimeTool.cxx:25
ITRT_CalDbTool.h
abstract interface to TRT calibration constants
InDet::InDetSlidingWindowTrackTimeTool::findPhaseFromTE
double findPhaseFromTE(const Trk::Track *track) const
finds event phase of a track from the trailing edge
Definition: InDetSlidingWindowTrackTimeTool.cxx:169
InDet::InDetSlidingWindowTrackTimeTool::~InDetSlidingWindowTrackTimeTool
virtual ~InDetSlidingWindowTrackTimeTool()
default destructor
Definition: InDetSlidingWindowTrackTimeTool.cxx:40
ReadCondHandleKey.h
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
SG::ReadCondHandleKey< TRTCond::AverageT0 >
InDet::InDetSlidingWindowTrackTimeTool::m_windowSize
double m_windowSize
Definition: InDetSlidingWindowTrackTimeTool.h:68
InDet::InDetSlidingWindowTrackTimeTool
Definition: InDetSlidingWindowTrackTimeTool.h:39
Track
Definition: TriggerChamberClusterOnTrackCreator.h:21
xAOD::track
@ track
Definition: TrackingPrimitives.h:512
AthAlgTool
Definition: AthAlgTool.h:26
InDet::InDetSlidingWindowTrackTimeTool::m_T0ReadKey
SG::ReadCondHandleKey< TRTCond::AverageT0 > m_T0ReadKey
Definition: InDetSlidingWindowTrackTimeTool.h:64
AtlasDetectorID
This class provides an interface to generate or decode an identifier for the upper levels of the dete...
Definition: AtlasDetectorID.h:57
InDet::IInDetCosmicsEventPhaseTool
Definition: IInDetCosmicsEventPhaseTool.h:22
InDet::InDetSlidingWindowTrackTimeTool::m_useNewEP
bool m_useNewEP
Definition: InDetSlidingWindowTrackTimeTool.h:66
NSWL1::PadTriggerAdapter::segment
Muon::NSW_PadTriggerSegment segment(const NSWL1::PadTrigger &data)
Definition: PadTriggerAdapter.cxx:5
Identifier
Definition: IdentifierFieldParser.cxx:14