ATLAS Offline Software
TRT_PrepDataToxAOD.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // TRT_PrepDataToxAOD.h
7 // Header file for class TRT_PrepDataToxAOD
9 
10 #ifndef TRT_PREPDATATOXAOD_H
11 #define TRT_PREPDATATOXAOD_H
12 
14 #include "GaudiKernel/ServiceHandle.h"
15 #include "GaudiKernel/ToolHandle.h"
16 
22 
25 
31 
32 #include <string>
33 
34 class TRT_ID;
35 
36 namespace InDetDD {
37  class TRT_DetectorManager;
38 }
39 
41 
42 public:
43  enum EGasType {kUnset=-128,kXenon=0,kArgon=1,kKrypton=2, kEmAr=6,kEmKr=7};
44  // Constructor with parameters:
45  TRT_PrepDataToxAOD(const std::string &name,ISvcLocator *pSvcLocator);
46 
47  // Basic algorithm methods:
48  virtual StatusCode initialize();
49  virtual StatusCode execute();
50  virtual StatusCode finalize();
51 
52 private:
53 
54  // --- Steering and configuration flags
55  Gaudi::Property<bool> m_useTruthInfo {this, "UseTruthInfo",false,"Use data object"};
56  Gaudi::Property<bool> m_writeSDOs {this, "WriteSDOs", false,"Use data object"};
57 
58  // --- Configuration keys
59  SG::ReadHandleKey<InDet::TRT_DriftCircleContainer> m_driftcirclecontainer {this,"DriftCircleContainer","TRT_DriftCircles","RHK to retrieve the drift Circle Container"};
60  SG::ReadHandleKey<PRD_MultiTruthCollection> m_multiTruth {this,"PRD_MultiTruth","PRD_MultiTruthTRT","RHK to retrieve PRD multitruth"};
61  SG::ReadHandleKey<InDetSimDataCollection> m_SDOcontainer {this,"MC_TRTUncompressedHit","TRT_SDO_Map","RHK to retrieve TRT SDO map"};
62  SG::WriteHandleKey<xAOD::TrackMeasurementValidationContainer> m_xAodContainer {this,"TRTxAodContainer","TRT_DriftCircles","WHK to write the TRT drift circle container"};
63  SG::WriteHandleKey<std::vector<unsigned int> > m_xAodOffset {this,"TRTxAodOffset","TRT_DriftCirclesOffsets","WHK to write the TRT drift circle offsets"};
64 
65 
66  // --- Services and Tools
67  ToolHandle< ITRT_DriftFunctionTool > m_driftFunctionTool ;
68  ToolHandle<ITRT_CalDbTool> m_trtcaldbTool ;
70  ToolHandle<ITRT_StrawStatusSummaryTool> m_TRTStrawSummaryTool;
73 
74  // ---- Internal members
76 
77 };
78 
79 
80 #endif
TRT_PrepDataToxAOD::TRT_PrepDataToxAOD
TRT_PrepDataToxAOD(const std::string &name, ISvcLocator *pSvcLocator)
Definition: TRT_PrepDataToxAOD.cxx:43
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
TRT_DetectorManager.h
TRT_PrepDataToxAOD::m_driftcirclecontainer
SG::ReadHandleKey< InDet::TRT_DriftCircleContainer > m_driftcirclecontainer
Definition: TRT_PrepDataToxAOD.h:59
TrackMeasurementValidationAuxContainer.h
TRT_PrepDataToxAOD::m_firstEventWarnings
bool m_firstEventWarnings
Definition: TRT_PrepDataToxAOD.h:75
TRT_PrepDataToxAOD::m_trtman
const InDetDD::TRT_DetectorManager * m_trtman
Definition: TRT_PrepDataToxAOD.h:72
TRT_PrepDataToxAOD
Definition: TRT_PrepDataToxAOD.h:40
TRT_PrepDataToxAOD::m_TRTHelper
const TRT_ID * m_TRTHelper
Definition: TRT_PrepDataToxAOD.h:71
SG::ReadHandleKey< InDet::TRT_DriftCircleContainer >
TRT_PrepDataToxAOD::m_multiTruth
SG::ReadHandleKey< PRD_MultiTruthCollection > m_multiTruth
Definition: TRT_PrepDataToxAOD.h:60
TRT_PrepDataToxAOD::m_SDOcontainer
SG::ReadHandleKey< InDetSimDataCollection > m_SDOcontainer
Definition: TRT_PrepDataToxAOD.h:61
AthAlgorithm.h
TRT_PrepDataToxAOD::m_neighbourSvc
ServiceHandle< ITRT_StrawNeighbourSvc > m_neighbourSvc
Definition: TRT_PrepDataToxAOD.h:69
TRT_PrepDataToxAOD::kXenon
@ kXenon
Definition: TRT_PrepDataToxAOD.h:43
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
ITRT_StrawStatusSummaryTool.h
abstract interface to TRT straw status constants
TRT_PrepDataToxAOD::initialize
virtual StatusCode initialize()
Definition: TRT_PrepDataToxAOD.cxx:67
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TRT_PrepDataToxAOD::m_TRTStrawSummaryTool
ToolHandle< ITRT_StrawStatusSummaryTool > m_TRTStrawSummaryTool
Definition: TRT_PrepDataToxAOD.h:70
TRT_PrepDataToxAOD::kEmKr
@ kEmKr
Definition: TRT_PrepDataToxAOD.h:43
TRT_PrepDataToxAOD::finalize
virtual StatusCode finalize()
Definition: TRT_PrepDataToxAOD.cxx:330
ITRT_CalDbTool.h
abstract interface to TRT calibration constants
TRT_PrepDataToxAOD::execute
virtual StatusCode execute()
Definition: TRT_PrepDataToxAOD.cxx:99
AthAlgorithm
Definition: AthAlgorithm.h:47
TRT_PrepDataToxAOD::m_useTruthInfo
Gaudi::Property< bool > m_useTruthInfo
Definition: TRT_PrepDataToxAOD.h:55
TRT_PrepDataToxAOD::EGasType
EGasType
Definition: TRT_PrepDataToxAOD.h:43
TRT_PrepDataToxAOD::m_xAodOffset
SG::WriteHandleKey< std::vector< unsigned int > > m_xAodOffset
Definition: TRT_PrepDataToxAOD.h:63
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
TRT_DriftCircleContainer.h
ITRT_DriftFunctionTool.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
TRT_PrepDataToxAOD::kEmAr
@ kEmAr
Definition: TRT_PrepDataToxAOD.h:43
TRT_PrepDataToxAOD::m_trtcaldbTool
ToolHandle< ITRT_CalDbTool > m_trtcaldbTool
Definition: TRT_PrepDataToxAOD.h:68
ITRT_StrawNeighbourSvc.h
Abstract interface to information on straws electronic grouping.
TRT_ID
Definition: TRT_ID.h:84
InDetDD::TRT_DetectorManager
The Detector Manager for all TRT Detector elements, it acts as the interface to the detector elements...
Definition: TRT_DetectorManager.h:69
InDetDD
Message Stream Member.
Definition: FakeTrackBuilder.h:8
InDetSimDataCollection.h
TRT_PrepDataToxAOD::m_xAodContainer
SG::WriteHandleKey< xAOD::TrackMeasurementValidationContainer > m_xAodContainer
Definition: TRT_PrepDataToxAOD.h:62
PRD_MultiTruthCollection.h
TRT_PrepDataToxAOD::kArgon
@ kArgon
Definition: TRT_PrepDataToxAOD.h:43
TrackMeasurementValidationContainer.h
TRT_PrepDataToxAOD::m_driftFunctionTool
ToolHandle< ITRT_DriftFunctionTool > m_driftFunctionTool
DriftFunctionTool.
Definition: TRT_PrepDataToxAOD.h:67
TRT_PrepDataToxAOD::m_writeSDOs
Gaudi::Property< bool > m_writeSDOs
Definition: TRT_PrepDataToxAOD.h:56
TRT_PrepDataToxAOD::kUnset
@ kUnset
Definition: TRT_PrepDataToxAOD.h:43
ServiceHandle< ITRT_StrawNeighbourSvc >
TRT_PrepDataToxAOD::kKrypton
@ kKrypton
Definition: TRT_PrepDataToxAOD.h:43