5#ifndef TRTMONITORINGRUN3ESD_ALG_H
6#define TRTMONITORINGRUN3ESD_ALG_H
11#include "GaudiKernel/StatusCode.h"
33#include "CLHEP/Units/SystemOfUnits.h"
41 class TrackStateOnSurface;
45 class TRT_DetectorManager;
67 virtual StatusCode
fillHistograms(
const EventContext& ctx )
const override;
106 ToolHandle<ITRT_StrawStatusSummaryTool>
m_sumTool{
this,
"InDetTRTStrawStatusSummaryTool",
"TRT_StrawStatusSummaryTool",
""};
108 ToolHandle<ITRT_CalDbTool>
m_TRTCalDbTool{
this,
"ITRT_CalDbTool",
"TRT_CalDbTool",
""};
118 ToolHandle<Trk::ITrackSummaryTool>
m_TrackSummaryTool{
this,
"TrackSummaryTool",
"InDetTrackSummaryTool",
"Track summary tool name"};
119 ToolHandle<ITRT_DriftFunctionTool>
m_drifttool{
this,
"DriftFunctionTool",
"TRT_DriftFunctionTool",
""};
125 Gaudi::Property<bool>
m_doStraws{
this,
"doStraws",
true,
""};
126 Gaudi::Property<bool>
m_doChips{
this,
"doChips",
true,
""};
127 Gaudi::Property<bool>
m_doShift{
this,
"doShift",
true,
""};
128 Gaudi::Property<bool>
m_doExpert{
this,
"doExpert",
false,
""};
130 std::vector<std::vector<unsigned char>>
m_mat_chip_B{64, std::vector<unsigned char>(1642)};
131 std::vector<std::vector<unsigned char>>
m_mat_chip_E{64, std::vector<unsigned char>(3840)};
141 Gaudi::Property<float>
m_minP{
this,
"MinTrackP", 0.0 * CLHEP::GeV};
142 Gaudi::Property<float>
m_min_pT{
this,
"min_pT", 0.5 * CLHEP::GeV};
152 if ( stat==2 || stat==3 ) { Gas =
Xe; }
153 else if ( stat==1 || stat==4 ) { Gas =
Ar; }
154 else if ( stat==5 ) { Gas =
Kr; }
155 else if ( stat==6 ) { Gas =
Xe; }
156 else if ( stat==7 ) { Gas =
Xe; }
157 else {
ATH_MSG_FATAL (
"getStatusHT = " << stat <<
", must be 'Good(2)||Xenon(3)' or 'Dead(1)||Argon(4)' or 'Krypton(5)!' or 6 or 7 for emulated types!");
158 throw std::exception();
165 ToolHandle<InDet::IInDetTrackSelectionTool>
m_trackSelTool{
this,
"TrackSelectionTool",
"InDet::InDetTrackSelectionTool/TrackSelectionTool",
""};
Header file to be included by clients of the Monitored infrastructure.
Property holding a SG store/key/clid from which a ReadHandle is made.
Handle class for reading from StoreGate.
InDetRawDataContainer< InDetRawDataCollection< TRT_RDORawData > > TRT_RDO_Container
AthMonitorAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
This class provides an interface to generate or decode an identifier for the upper levels of the dete...
Interface class for service providing summary of status of a detector element.
The Detector Manager for all TRT Detector elements, it acts as the interface to the detector elements...
Property holding a SG store/key/clid from which a ReadHandle is made.
ToolHandle< InDet::IInDetTrackSelectionTool > m_trackSelTool
float radToDegrees(float radValue) const
static const int s_numberOfEndCapStacks
SG::ReadHandleKey< xAOD::TrigDecision > m_trigDecisionKey
Gaudi::Property< int > m_min_si_hits
BooleanProperty m_ArgonXenonSplitter
static const int s_Straw_max[2]
static const int s_iStack_max[2]
int strawNumberEndCap(int strawNumber, int strawLayerNumber, int LayerNumber, int phi_stack, int side) const
const AtlasDetectorID * m_idHelper
Gaudi::Property< int > m_min_trt_hits
Gaudi::Property< bool > m_doStraws
Gaudi::Property< float > m_min_pT
SG::ReadHandleKey< InDetTimeCollection > m_TRT_BCIDCollectionKey
virtual StatusCode fillHistograms(const EventContext &ctx) const override
adds event to the monitoring histograms
int chipToBoard(int chip) const
Gaudi::Property< int > m_min_pixel_hits
ToolHandle< Trk::ITrackSummaryTool > m_TrackSummaryTool
bool checkEventBurst(const TRT_RDO_Container &rdoContainer) const
static const int s_moduleNum[2]
std::vector< std::vector< unsigned char > > m_mat_chip_E
Gaudi::Property< int > m_minTRThits
int strawLayerNumber_reverse(int strawLayerNumInp, int *strawLayerNumber, int *LayerNumber) const
Gaudi::Property< bool > m_doShift
StatusCode fillTRTHighThreshold(const xAOD::TrackParticleContainer &trackCollection, const xAOD::EventInfo &eventInfo, const EventContext &ctx) const
Gaudi::Property< float > m_DistToStraw
std::vector< std::vector< unsigned char > > m_mat_chip_B
ToolHandle< ITRT_CalDbTool > m_TRTCalDbTool
Gaudi::Property< float > m_minP
ServiceHandle< ITRT_StrawNeighbourSvc > m_TRTStrawNeighbourSvc
SG::ReadHandleKey< xAOD::EventInfo > m_xAODEventInfoKey
int strawNumber(int strawNumber, int strawlayerNumber, int LayerNumber) const
int chipToBoard_EndCap(int chip) const
SG::ReadHandleKey< ComTime > m_comTimeObjectKey
static const int s_iChip_max[2]
Gaudi::Property< bool > m_doExpert
Gaudi::Property< bool > m_doTracksMon
ToolHandle< ITRT_DriftFunctionTool > m_drifttool
const TRT_ID * m_pTRTHelper
Gaudi::Property< bool > m_doChips
const InDetDD::TRT_DetectorManager * m_mgr
int strawLayerNumber(int strawLayerNumber, int LayerNumber) const
static const int s_numberOfStacks[2]
GasType Straw_Gastype(int stat) const
Gaudi::Property< int > m_min_sct_hits
StatusCode fillTRTTracks(const EventContext &ctx, const xAOD::TrackParticleContainer &trackCollection, const xAOD::TrigDecision *trigDecision, const ComTime *comTimeObject, const xAOD::EventInfo &eventInfo) const
ToolHandle< ITRT_StrawStatusSummaryTool > m_sumTool
int strawNumber_reverse(int inp_strawnumber, int *strawNumber, int *strawlayerNumber, int *LayerNumber) const
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trackCollectionKey
static const int s_numberOfBarrelStacks
This is an Identifier helper class for the TRT subdetector.
Ensure that the ATLAS eigen extensions are properly loaded.
EventInfo_v1 EventInfo
Definition of the latest event info version.
TrigDecision_v1 TrigDecision
Define the latest version of the trigger decision class.
TrackParticleContainer_v1 TrackParticleContainer
Definition of the current "TrackParticle container version".