ATLAS Offline Software
HLTMinBiasTrkMonAlg.h
Go to the documentation of this file.
1 /*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef TRIGMINBIASMONITORING_HLTMinBiasTrkMonAlg_H
5 #define TRIGMINBIASMONITORING_HLTMinBiasTrkMonAlg_H
6 
7 // Framework includes
8 
14 #include "GaudiKernel/ToolHandle.h"
18 
19 // STL includes
20 #include <string>
21 
27 public:
28  HLTMinBiasTrkMonAlg(const std::string& name, ISvcLocator* pSvcLocator);
29  virtual ~HLTMinBiasTrkMonAlg() override;
30 
31  virtual StatusCode initialize() override;
32  virtual StatusCode fillHistograms(const EventContext& context) const override;
33  virtual StatusCode finalize() override;
34 
35 private:
36  SG::ReadHandleKey<xAOD::TrigCompositeContainer> m_spCountsKey { this, "SPCountsKey", "HLT_SpacePointCounts", "Name of Space Points info object produced by the HLT SP counting FEX algorithm" };
37  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" };
38  SG::ReadHandleKey<xAOD::TrackParticleContainer> m_offlineTrkKey { this, "OfflineTrkKey", "InDetTrackParticles", "Name of Offline track counts info object produced by the HLT track counting FEX algorithm" };
39  SG::ReadHandleKey<xAOD::TrackParticleContainer> m_onlineTrkKey { this, "OnlineTrkKey", "HLT_IDTrack_MinBias_IDTrig", "Name of track counts info object produced by the HLT track counting FEX algorithm" };
40 
41  SG::ReadHandleKey<xAOD::EnergySumRoI> m_lvl1EnergySumROIKey { this, "lvl1EnergySumROIKey", "LVL1EnergySumRoI", "Name of Sum of Energy info object produced by the HLT track counting FEX algorithm" };
42  SG::ReadHandleKey<xAOD::TrigCompositeContainer> m_zFinderDataKey { this, "zFinderDataKey", "", "Name of container with online zFinder vertex info" };
43  SG::ReadHandleKey<xAOD::VertexContainer> m_vertexKey { this, "Vertex", "PrimaryVertices", "Offline vertices key"};
44 
45  Gaudi::Property<std::vector<std::string>> m_triggerListSpacePointsMon{this, "triggerListSpacePointsMon",{}, "Add triggers to this to be monitored"};
46  Gaudi::Property<std::vector<std::string>> m_triggerListTrackingMon{this, "triggerListTrackingMon",{}, "Add triggers to this to be monitored"};
47 
48  ToolHandle<InDet::IInDetTrackSelectionTool> m_trackSelectionTool {this, "TrackSelectionTool", "InDetTrackSelectionTool", "Tool for selecting tracks"};
49  Gaudi::Property<float> m_minPt{ this, "minPt", 0.0, "Consider offline tracks only if above this threshold (in MeV)"};
50  Gaudi::Property<float> m_z0{ this, "z0", 3.0, "Longitudinal DCA"};
51  Gaudi::Property<float> m_d0{ this, "d0", 3.0, "Transverse DCA"};
52 
53  StatusCode monitorPurities(const EventContext& context) const;
54  StatusCode monitorSPCounts(const EventContext& context) const;
55  StatusCode monitorTrkCounts(const EventContext& context) const;
56 
57 };
58 #endif // TRIGMINBIASMONITORING_HLTMinBiasTrkMonAlg_H
HLTMinBiasTrkMonAlg::m_zFinderDataKey
SG::ReadHandleKey< xAOD::TrigCompositeContainer > m_zFinderDataKey
Definition: HLTMinBiasTrkMonAlg.h:42
HLTMinBiasTrkMonAlg::m_z0
Gaudi::Property< float > m_z0
Definition: HLTMinBiasTrkMonAlg.h:50
HLTMinBiasTrkMonAlg::finalize
virtual StatusCode finalize() override
Definition: HLTMinBiasTrkMonAlg.cxx:29
HLTMinBiasTrkMonAlg::monitorPurities
StatusCode monitorPurities(const EventContext &context) const
Definition: HLTMinBiasTrkMonAlg.cxx:45
HLTMinBiasTrkMonAlg::monitorSPCounts
StatusCode monitorSPCounts(const EventContext &context) const
Definition: HLTMinBiasTrkMonAlg.cxx:51
HLTMinBiasTrkMonAlg::m_triggerListTrackingMon
Gaudi::Property< std::vector< std::string > > m_triggerListTrackingMon
Definition: HLTMinBiasTrkMonAlg.h:46
TrigDecisionTool.h
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
AthMonitorAlgorithm
Base class for Athena Monitoring Algorithms.
Definition: AthMonitorAlgorithm.h:36
HLTMinBiasTrkMonAlg::m_offlineTrkKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_offlineTrkKey
Definition: HLTMinBiasTrkMonAlg.h:38
HLTMinBiasTrkMonAlg::m_spCountsKey
SG::ReadHandleKey< xAOD::TrigCompositeContainer > m_spCountsKey
Definition: HLTMinBiasTrkMonAlg.h:36
HLTMinBiasTrkMonAlg::m_onlineTrkKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_onlineTrkKey
Definition: HLTMinBiasTrkMonAlg.h:39
HLTMinBiasTrkMonAlg
Definition: HLTMinBiasTrkMonAlg.h:26
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthMonitorAlgorithm.h
HLTMinBiasTrkMonAlg::m_triggerListSpacePointsMon
Gaudi::Property< std::vector< std::string > > m_triggerListSpacePointsMon
Definition: HLTMinBiasTrkMonAlg.h:45
HLTMinBiasTrkMonAlg::m_trackSelectionTool
ToolHandle< InDet::IInDetTrackSelectionTool > m_trackSelectionTool
Definition: HLTMinBiasTrkMonAlg.h:48
HLTMinBiasTrkMonAlg::monitorTrkCounts
StatusCode monitorTrkCounts(const EventContext &context) const
Definition: HLTMinBiasTrkMonAlg.cxx:94
IInDetTrackSelectionTool.h
HLTMinBiasTrkMonAlg::~HLTMinBiasTrkMonAlg
virtual ~HLTMinBiasTrkMonAlg() override
Definition: HLTMinBiasTrkMonAlg.cxx:12
Monitored.h
Header file to be included by clients of the Monitored infrastructure.
TrigCompositeContainer.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
HLTMinBiasTrkMonAlg::m_vertexKey
SG::ReadHandleKey< xAOD::VertexContainer > m_vertexKey
Definition: HLTMinBiasTrkMonAlg.h:43
HLTMinBiasTrkMonAlg::m_lvl1EnergySumROIKey
SG::ReadHandleKey< xAOD::EnergySumRoI > m_lvl1EnergySumROIKey
Definition: HLTMinBiasTrkMonAlg.h:41
HLTMinBiasTrkMonAlg::initialize
virtual StatusCode initialize() override
initialize
Definition: HLTMinBiasTrkMonAlg.cxx:16
VertexContainer.h
HLTMinBiasTrkMonAlg::m_d0
Gaudi::Property< float > m_d0
Definition: HLTMinBiasTrkMonAlg.h:51
HLTMinBiasTrkMonAlg::m_minPt
Gaudi::Property< float > m_minPt
Definition: HLTMinBiasTrkMonAlg.h:49
HLTMinBiasTrkMonAlg::m_trkCountsKey
SG::ReadHandleKey< xAOD::TrigCompositeContainer > m_trkCountsKey
Definition: HLTMinBiasTrkMonAlg.h:37
HLTMinBiasTrkMonAlg::fillHistograms
virtual StatusCode fillHistograms(const EventContext &context) const override
adds event to the monitoring histograms
Definition: HLTMinBiasTrkMonAlg.cxx:35
TrackParticleContainer.h
HLTMinBiasTrkMonAlg::HLTMinBiasTrkMonAlg
HLTMinBiasTrkMonAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: HLTMinBiasTrkMonAlg.cxx:8
EnergySumRoI.h