ATLAS Offline Software
InDetCosmicsEventPhaseTool.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 INDETINDETCOSMICSEVENTPHASETOOL_H
10 #define INDETINDETCOSMICSEVENTPHASETOOL_H
11 
12 #include "GaudiKernel/AlgTool.h"
14 #include "GaudiKernel/ToolHandle.h"
15 
20 
21 class AtlasDetectorID;
22 class Identifier;
23 namespace Trk{
24  class Track;
25  class Segment;
26 }
27 
28 namespace InDet
29 {
30 
38  {
39  public:
40  InDetCosmicsEventPhaseTool(const std::string&,const std::string&,const IInterface*);
41 
43  virtual ~InDetCosmicsEventPhaseTool ();
44 
46  virtual StatusCode initialize();
48  virtual StatusCode finalize ();
49 
51  double findPhase(const Trk::Track *track) const;
52 
54  double findPhase(const Trk::Segment *segment) const;
55 
57  double findPhaseFromTE(const Trk::Track *track) const;
58 
59  private:
60 
61 
62  SG::ReadCondHandleKey<TRTCond::AverageT0> m_T0ReadKey{this,"T0ReadKey","AverageT0","Average T0 in-key"};
63 
64  ToolHandle<ITRT_CalDbTool> m_caldbtool ;
65 
66  double m_globalOffset;
67  bool m_useNewEP;
68  };
69 }
70 
71 #endif
IInDetCosmicsEventPhaseTool.h
InDet::InDetCosmicsEventPhaseTool::finalize
virtual StatusCode finalize()
standard Athena-Algorithm method
Definition: InDetCosmicsEventPhaseTool.cxx:54
InDet::InDetCosmicsEventPhaseTool::m_useNewEP
bool m_useNewEP
Definition: InDetCosmicsEventPhaseTool.h:67
Trk::Track
The ATLAS Track class.
Definition: Tracking/TrkEvent/TrkTrack/TrkTrack/Track.h:73
Trk::TrackState::Segment
@ Segment
Definition: TrackStateDefs.h:37
InDet
Primary Vertex Finder.
Definition: VP1ErrorUtils.h:36
InDet::InDetCosmicsEventPhaseTool::InDetCosmicsEventPhaseTool
InDetCosmicsEventPhaseTool(const std::string &, const std::string &, const IInterface *)
Definition: InDetCosmicsEventPhaseTool.cxx:24
InDet::InDetCosmicsEventPhaseTool::~InDetCosmicsEventPhaseTool
virtual ~InDetCosmicsEventPhaseTool()
default destructor
Definition: InDetCosmicsEventPhaseTool.cxx:37
InDet::InDetCosmicsEventPhaseTool
Definition: InDetCosmicsEventPhaseTool.h:38
AverageT0.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
Trk::Segment
Definition: Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h:56
InDet::InDetCosmicsEventPhaseTool::findPhaseFromTE
double findPhaseFromTE(const Trk::Track *track) const
finds event phase of a track from the trailing edge
Definition: InDetCosmicsEventPhaseTool.cxx:154
ITRT_CalDbTool.h
abstract interface to TRT calibration constants
InDet::InDetCosmicsEventPhaseTool::findPhase
double findPhase(const Trk::Track *track) const
finds event phase of a track from the leading edge
Definition: InDetCosmicsEventPhaseTool.cxx:60
ReadCondHandleKey.h
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
InDet::InDetCosmicsEventPhaseTool::m_globalOffset
double m_globalOffset
Definition: InDetCosmicsEventPhaseTool.h:66
InDet::InDetCosmicsEventPhaseTool::initialize
virtual StatusCode initialize()
standard Athena-Algorithm method
Definition: InDetCosmicsEventPhaseTool.cxx:43
InDet::InDetCosmicsEventPhaseTool::m_caldbtool
ToolHandle< ITRT_CalDbTool > m_caldbtool
TRT Calibration DB tool.
Definition: InDetCosmicsEventPhaseTool.h:64
SG::ReadCondHandleKey< TRTCond::AverageT0 >
InDet::InDetCosmicsEventPhaseTool::m_T0ReadKey
SG::ReadCondHandleKey< TRTCond::AverageT0 > m_T0ReadKey
Definition: InDetCosmicsEventPhaseTool.h:62
Track
Definition: TriggerChamberClusterOnTrackCreator.h:21
xAOD::track
@ track
Definition: TrackingPrimitives.h:512
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::IInDetCosmicsEventPhaseTool
Definition: IInDetCosmicsEventPhaseTool.h:22
NSWL1::PadTriggerAdapter::segment
Muon::NSW_PadTriggerSegment segment(const NSWL1::PadTrigger &data)
Definition: PadTriggerAdapter.cxx:5
Identifier
Definition: IdentifierFieldParser.cxx:14