ATLAS Offline Software
HLTMinBiasEffMonitoringAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef TRIGMINBIASMONITORING_HLTMINBIASEFFMONITORINGALG_H
5 #define TRIGMINBIASMONITORING_HLTMINBIASEFFMONITORINGALG_H
6 
9 
13 #include "GaudiKernel/ToolHandle.h"
17 
18 #include <string>
19 
25 {
26 public:
27  HLTMinBiasEffMonitoringAlg(const std::string &name, ISvcLocator *pSvcLocator);
28  virtual ~HLTMinBiasEffMonitoringAlg() override;
29 
30  virtual StatusCode initialize() override;
31  virtual StatusCode fillHistograms(const EventContext &context) const override;
32  virtual StatusCode finalize() override;
33 
34 private:
35  Gaudi::Property<std::vector<std::string>> m_triggerList{this, "triggerList", {}, "Add triggers to this to be monitored"};
36  Gaudi::Property<std::vector<std::string>> m_refTriggerList{this, "refTriggerList", {}, "Add ref triggers to this to be monitored"};
37  std::vector<std::string> m_uniqueTriggerList;
38 
39  SG::ReadHandleKey<xAOD::TrigCompositeContainer> m_trkCountsKey{this, "TrkCountsKey", "HLT_TrackCount", "Name of Online track counts info object produced by the HLT track counting FEX algorithm"};
40  SG::ReadHandleKey<xAOD::TrigT2MbtsBitsContainer> m_TrigT2MbtsBitsContainerKey{this, "MBTSbitsKey", "HLT_MbtsBitsContainer", "Name of MbtsBitsContainer"};
41  SG::ReadHandleKey<xAOD::TrackParticleContainer> m_offlineTrkKey{this, "OfflineTrkKey", "InDetTrackParticles", "Name of Offline track counts info object produced by the HLT track counting FEX algorithm"};
42  SG::ReadHandleKey<xAOD::VertexContainer> m_vertexKey { this, "Vertex", "PrimaryVertices", "Offline vertices key"};
43 
44  ToolHandle<InDet::IInDetTrackSelectionTool> m_trackSelectionTool{this, "TrackSelectionTool", "InDetTrackSelectionTool", "Tool for selecting tracks"};
45  Gaudi::Property<float> m_minPt{ this, "minPt", 100.0, "Consider offline tracks only if above this threshold (in MeV)"};
46  Gaudi::Property<float> m_z0{ this, "z0", 3.0, "Longitudinal DCA"};
47  Gaudi::Property<float> m_d0{ this, "d0", 3.0, "Transverse DCA"};
48 
49 
50 };
51 
52 #endif // TRIGMINBIASMONITORING_HLTHLTMINBIASEFFMONITORINGALG_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
HLTMinBiasEffMonitoringAlg::m_z0
Gaudi::Property< float > m_z0
Definition: HLTMinBiasEffMonitoringAlg.h:46
HLTMinBiasEffMonitoringAlg::m_triggerList
Gaudi::Property< std::vector< std::string > > m_triggerList
Definition: HLTMinBiasEffMonitoringAlg.h:35
HLTMinBiasEffMonitoringAlg::fillHistograms
virtual StatusCode fillHistograms(const EventContext &context) const override
adds event to the monitoring histograms
Definition: HLTMinBiasEffMonitoringAlg.cxx:33
HLTMinBiasEffMonitoringAlg::m_uniqueTriggerList
std::vector< std::string > m_uniqueTriggerList
Definition: HLTMinBiasEffMonitoringAlg.h:37
HLTMinBiasEffMonitoringAlg::finalize
virtual StatusCode finalize() override
Definition: HLTMinBiasEffMonitoringAlg.cxx:28
HLTMinBiasEffMonitoringAlg::m_TrigT2MbtsBitsContainerKey
SG::ReadHandleKey< xAOD::TrigT2MbtsBitsContainer > m_TrigT2MbtsBitsContainerKey
Definition: HLTMinBiasEffMonitoringAlg.h:40
HLTMinBiasEffMonitoringAlg::initialize
virtual StatusCode initialize() override
initialize
Definition: HLTMinBiasEffMonitoringAlg.cxx:12
TrigDecisionTool.h
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
TrigT2MbtsBits.h
HLTMinBiasEffMonitoringAlg::m_trkCountsKey
SG::ReadHandleKey< xAOD::TrigCompositeContainer > m_trkCountsKey
Definition: HLTMinBiasEffMonitoringAlg.h:39
AthMonitorAlgorithm
Base class for Athena Monitoring Algorithms.
Definition: AthMonitorAlgorithm.h:36
HLTMinBiasEffMonitoringAlg::~HLTMinBiasEffMonitoringAlg
virtual ~HLTMinBiasEffMonitoringAlg() override
Definition: HLTMinBiasEffMonitoringAlg.cxx:10
HLTMinBiasEffMonitoringAlg::m_d0
Gaudi::Property< float > m_d0
Definition: HLTMinBiasEffMonitoringAlg.h:47
HLTMinBiasEffMonitoringAlg::m_offlineTrkKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_offlineTrkKey
Definition: HLTMinBiasEffMonitoringAlg.h:41
HLTMinBiasEffMonitoringAlg::m_trackSelectionTool
ToolHandle< InDet::IInDetTrackSelectionTool > m_trackSelectionTool
Definition: HLTMinBiasEffMonitoringAlg.h:44
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
HLTMinBiasEffMonitoringAlg::m_minPt
Gaudi::Property< float > m_minPt
Definition: HLTMinBiasEffMonitoringAlg.h:45
AthMonitorAlgorithm.h
IInDetTrackSelectionTool.h
Monitored.h
Header file to be included by clients of the Monitored infrastructure.
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
TrigT2MbtsBitsContainer.h
HLTMinBiasEffMonitoringAlg::m_vertexKey
SG::ReadHandleKey< xAOD::VertexContainer > m_vertexKey
Definition: HLTMinBiasEffMonitoringAlg.h:42
VertexContainer.h
HLTMinBiasEffMonitoringAlg::HLTMinBiasEffMonitoringAlg
HLTMinBiasEffMonitoringAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: HLTMinBiasEffMonitoringAlg.cxx:8
HLTMinBiasEffMonitoringAlg
Definition: HLTMinBiasEffMonitoringAlg.h:25
HLTMinBiasEffMonitoringAlg::m_refTriggerList
Gaudi::Property< std::vector< std::string > > m_refTriggerList
Definition: HLTMinBiasEffMonitoringAlg.h:36