ATLAS Offline Software
InDetFixedWindowTrackTimeTool.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 InDetInDetFixedWindowTrackTimeTool_h
10 #define InDetInDetFixedWindowTrackTimeTool_h
11 
12 #include "GaudiKernel/AlgTool.h"
14 #include "GaudiKernel/ToolHandle.h"
15 #include "GaudiKernel/MsgStream.h"
17 #include "TrkTrack/Track.h"
22 
23 class AtlasDetectorID;
24 class Identifier;
25 
26 namespace InDet
27 {
28 
36  {
37  public:
38  InDetFixedWindowTrackTimeTool(const std::string&,const std::string&,const IInterface*);
39 
42 
44  virtual StatusCode initialize();
46  virtual StatusCode finalize ();
47 
49  double findPhase(const Trk::Track *track) const;
50 
52  double findPhase(const Trk::Segment *segment) const;
53 
55  double findPhaseFromTE(const Trk::Track *track) const;
56 
57  private:
58 
59  SG::ReadCondHandleKey<TRTCond::AverageT0> m_T0ReadKey{this,"T0ReadKey","AverageT0","Average T0 in-key"};
60  ToolHandle<ITRT_CalDbTool> m_caldbtool ;
61 
62  double m_globalOffset;
63  bool m_useNewEP;
65  double m_windowSize;
66  };
67 }
68 
69 #endif
IInDetCosmicsEventPhaseTool.h
InDet::InDetFixedWindowTrackTimeTool::m_useNewEP
bool m_useNewEP
Definition: InDetFixedWindowTrackTimeTool.h:63
InDet::InDetFixedWindowTrackTimeTool::m_windowCenter
double m_windowCenter
Definition: InDetFixedWindowTrackTimeTool.h:64
Trk::Track
The ATLAS Track class.
Definition: Tracking/TrkEvent/TrkTrack/TrkTrack/Track.h:73
InDet::InDetFixedWindowTrackTimeTool::findPhase
double findPhase(const Trk::Track *track) const
finds event phase of a track from the leading edge
Definition: InDetFixedWindowTrackTimeTool.cxx:58
InDet::InDetFixedWindowTrackTimeTool
Definition: InDetFixedWindowTrackTimeTool.h:36
InDet
DUMMY Primary Vertex Finder.
Definition: VP1ErrorUtils.h:36
InDet::InDetFixedWindowTrackTimeTool::m_caldbtool
ToolHandle< ITRT_CalDbTool > m_caldbtool
TRT Calibration DB tool.
Definition: InDetFixedWindowTrackTimeTool.h:60
TrackSegment.h
Track.h
InDet::InDetFixedWindowTrackTimeTool::finalize
virtual StatusCode finalize()
standard Athena-Algorithm method
Definition: InDetFixedWindowTrackTimeTool.cxx:51
AverageT0.h
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
Trk::Segment
Definition: TrkEvent/TrkSegment/TrkSegment/Segment.h:56
ITRT_CalDbTool.h
abstract interface to TRT calibration constants
InDet::InDetFixedWindowTrackTimeTool::InDetFixedWindowTrackTimeTool
InDetFixedWindowTrackTimeTool(const std::string &, const std::string &, const IInterface *)
Definition: InDetFixedWindowTrackTimeTool.cxx:20
ReadCondHandleKey.h
InDet::InDetFixedWindowTrackTimeTool::~InDetFixedWindowTrackTimeTool
virtual ~InDetFixedWindowTrackTimeTool()
default destructor
Definition: InDetFixedWindowTrackTimeTool.cxx:35
InDet::InDetFixedWindowTrackTimeTool::findPhaseFromTE
double findPhaseFromTE(const Trk::Track *track) const
finds event phase of a track from the trailing edge
Definition: InDetFixedWindowTrackTimeTool.cxx:165
SG::ReadCondHandleKey< TRTCond::AverageT0 >
InDet::InDetFixedWindowTrackTimeTool::m_windowSize
double m_windowSize
Definition: InDetFixedWindowTrackTimeTool.h:65
InDet::InDetFixedWindowTrackTimeTool::initialize
virtual StatusCode initialize()
standard Athena-Algorithm method
Definition: InDetFixedWindowTrackTimeTool.cxx:41
xAOD::track
@ track
Definition: TrackingPrimitives.h:512
InDet::InDetFixedWindowTrackTimeTool::m_T0ReadKey
SG::ReadCondHandleKey< TRTCond::AverageT0 > m_T0ReadKey
Definition: InDetFixedWindowTrackTimeTool.h:59
AthAlgTool
Definition: AthAlgTool.h:26
AtlasDetectorID
This class provides an interface to generate or decode an identifier for the upper levels of the dete...
Definition: AtlasDetectorID.h:57
InDet::InDetFixedWindowTrackTimeTool::m_globalOffset
double m_globalOffset
Definition: InDetFixedWindowTrackTimeTool.h:62
InDet::IInDetCosmicsEventPhaseTool
Definition: IInDetCosmicsEventPhaseTool.h:22
NSWL1::PadTriggerAdapter::segment
Muon::NSW_PadTriggerSegment segment(const NSWL1::PadTrigger &data)
Definition: PadTriggerAdapter.cxx:5