ATLAS Offline Software
TRT_DriftCircleToolCosmics.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // Header file for class TRT_DriftCircleToolCosmics
8 // (c) ATLAS Detector software
10 // Interface for TRT RDI collection production
12 // Version 1.0 18/02/2003 I.Gavrilenko
14 
15 #ifndef TRT_DriftCircleToolCosmics_H
16 #define TRT_DriftCircleToolCosmics_H
17 
19 
23 #include "GaudiKernel/ToolHandle.h"
24 #include "GaudiKernel/ServiceHandle.h"
29 
32 class TRT_ID;
33 class TRT_RDORawData;
34 class TRT_DriftCircleCollection;
35 class TRT_DriftCircle;
36 
37 
38 namespace InDet {
44 
45 {
47  // Public methods:
49 
50 public:
52  TRT_DriftCircleToolCosmics(const std::string&,const std::string&,const IInterface*);
56  virtual StatusCode initialize();
58  virtual StatusCode finalize ();
61  convert(int,const InDetRawDataCollection<TRT_RDORawData>*, const EventContext& ctx,
62  DataPool<TRT_DriftCircle>* dataItemsPool,
63  const bool CTBBadChannels) const;
64  virtual bool passValidityGate(unsigned int word, float lowGate, float highGate, float t0) const;
65 
67  // Private methods:
69 
70  private:
71 
73  // Private data:
75  SG::ReadHandleKey<ComTime> m_evtPhaseKey{this, "TRT_Phase", "TRT_Phase",
76  "RHK to retrieve TRT Phase"};
78  {this, "TRTDetEleContKey", "TRT_DetElementContainer",
79  "Key of TRT_DetElementContainer for TRT"};
80 
81  ToolHandle< ITRT_DriftFunctionTool > m_driftFunctionTool
82  {this, "TRTDriftFunctionTool", "TRT_DriftFunctionTool"};
83  ToolHandle<ITRT_StrawStatusSummaryTool> m_ConditionsSummary
84  {this, "ConditionsSummaryTool", "TRT_StrawStatusSummaryTool",
85  "The ConditionsSummaryTool"};
86 
87  BooleanProperty m_useConditionsStatus{this, "UseConditionsStatus", false,
88  "Shall the ConditionsSummaryTool be used?"};
89  const TRT_ID* m_trtid = nullptr;
90  FloatProperty m_global_offset{this, "GlobalPhaseOffset", 0.,
91  "Global offset to TRT Phase"};
92  BooleanProperty m_useToTCorrection{this, "useDriftTimeToTCorrection", false,
93  "Shall the Time over Threshold correction be used?"};
94  BooleanProperty m_useHTCorrection{this, "useDriftTimeHTCorrection", false,
95  "Shall the High Threshold correction be used?"};
96 
97 };
98 
99 } // end of namespace
100 
101 #endif // TRT_DriftCircleToolCosmics_H
InDet::TRT_DriftCircleToolCosmics::convert
virtual InDet::TRT_DriftCircleCollection * convert(int, const InDetRawDataCollection< TRT_RDORawData > *, const EventContext &ctx, DataPool< TRT_DriftCircle > *dataItemsPool, const bool CTBBadChannels) const
make the conversion from RDOs to DriftCircles
Definition: TRT_DriftCircleToolCosmics.cxx:130
IInDetConditionsSvc
Definition: IInDetConditionsSvc.h:24
PrepRawDataCLASS_DEF.h
ComTime.h
ITRT_DriftFunctionTool
Definition: ITRT_DriftFunctionTool.h:16
TRT_DetElementContainer.h
InDet
Primary Vertex Finder.
Definition: VP1ErrorUtils.h:36
InDet::TRT_DriftCircleToolCosmics::m_trtid
const TRT_ID * m_trtid
TRT id helper handle.
Definition: TRT_DriftCircleToolCosmics.h:89
InDet::TRT_DriftCircleToolCosmics
Definition: TRT_DriftCircleToolCosmics.h:45
ITRT_DriftCircleTool.h
SG::ReadHandleKey< ComTime >
InDet::ITRT_DriftCircleTool
Definition: ITRT_DriftCircleTool.h:37
TRT_RDORawData
Definition: TRT_RDORawData.h:24
InDet::TRT_DriftCircleToolCosmics::m_useHTCorrection
BooleanProperty m_useHTCorrection
Definition: TRT_DriftCircleToolCosmics.h:94
InDet::TRT_DriftCircleToolCosmics::m_global_offset
FloatProperty m_global_offset
Definition: TRT_DriftCircleToolCosmics.h:90
InDet::TRT_DriftCircleToolCosmics::m_evtPhaseKey
SG::ReadHandleKey< ComTime > m_evtPhaseKey
Definition: TRT_DriftCircleToolCosmics.h:75
ITRT_StrawStatusSummaryTool.h
abstract interface to TRT straw status constants
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
InDetRawDataCollection
Definition: InDetRawDataCollection.h:31
InDet::TRT_DriftCircleToolCosmics::m_ConditionsSummary
ToolHandle< ITRT_StrawStatusSummaryTool > m_ConditionsSummary
Definition: TRT_DriftCircleToolCosmics.h:84
InDet::TRT_DriftCircleToolCosmics::passValidityGate
virtual bool passValidityGate(unsigned int word, float lowGate, float highGate, float t0) const
test validity gate for corrected drift times
Definition: TRT_DriftCircleToolCosmics.cxx:57
ReadCondHandleKey.h
Trk::RIO_OnTrackType::TRT_DriftCircle
@ TRT_DriftCircle
Definition: RIO_OnTrack.h:59
InDet::TRT_DriftCircleCollection
Trk::PrepRawDataCollection< TRT_DriftCircle > TRT_DriftCircleCollection
Definition: TRT_DriftCircleCollection.h:26
InDet::TRT_DriftCircleToolCosmics::m_useToTCorrection
BooleanProperty m_useToTCorrection
Definition: TRT_DriftCircleToolCosmics.h:92
InDet::TRT_DriftCircleToolCosmics::initialize
virtual StatusCode initialize()
initialize needed services
Definition: TRT_DriftCircleToolCosmics.cxx:80
SG::ReadCondHandleKey< InDetDD::TRT_DetElementContainer >
TRT_ID
Definition: TRT_ID.h:84
DataPool
a typed memory pool that saves time spent allocation small object. This is typically used by containe...
Definition: DataPool.h:63
InDet::TRT_DriftCircleToolCosmics::finalize
virtual StatusCode finalize()
finalize
Definition: TRT_DriftCircleToolCosmics.cxx:121
AthAlgTool
Definition: AthAlgTool.h:26
InDetRawDataCLASS_DEF.h
InDet::TRT_DriftCircleToolCosmics::m_trtDetEleContKey
SG::ReadCondHandleKey< InDetDD::TRT_DetElementContainer > m_trtDetEleContKey
Definition: TRT_DriftCircleToolCosmics.h:78
InDet::TRT_DriftCircleToolCosmics::m_driftFunctionTool
ToolHandle< ITRT_DriftFunctionTool > m_driftFunctionTool
Definition: TRT_DriftCircleToolCosmics.h:82
InDet::TRT_DriftCircleToolCosmics::m_useConditionsStatus
BooleanProperty m_useConditionsStatus
Definition: TRT_DriftCircleToolCosmics.h:87
InDet::TRT_DriftCircleToolCosmics::~TRT_DriftCircleToolCosmics
virtual ~TRT_DriftCircleToolCosmics()
constructor
InDet::TRT_DriftCircleToolCosmics::TRT_DriftCircleToolCosmics
TRT_DriftCircleToolCosmics(const std::string &, const std::string &, const IInterface *)
constructor
Definition: TRT_DriftCircleToolCosmics.cxx:40