ATLAS Offline Software
Loading...
Searching...
No Matches
HLTMinBiasTrkMonAlg.h
Go to the documentation of this file.
1/*
2Copyright (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
27public:
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
35private:
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
Header file to be included by clients of the Monitored infrastructure.
AthMonitorAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
ToolHandle< InDet::IInDetTrackSelectionTool > m_trackSelectionTool
StatusCode monitorTrkCounts(const EventContext &context) const
SG::ReadHandleKey< xAOD::TrigCompositeContainer > m_trkCountsKey
Gaudi::Property< float > m_z0
SG::ReadHandleKey< xAOD::VertexContainer > m_vertexKey
SG::ReadHandleKey< xAOD::TrigCompositeContainer > m_spCountsKey
HLTMinBiasTrkMonAlg(const std::string &name, ISvcLocator *pSvcLocator)
Gaudi::Property< float > m_minPt
Gaudi::Property< std::vector< std::string > > m_triggerListSpacePointsMon
SG::ReadHandleKey< xAOD::TrigCompositeContainer > m_zFinderDataKey
virtual StatusCode finalize() override
Gaudi::Property< float > m_d0
StatusCode monitorPurities(const EventContext &context) const
virtual StatusCode fillHistograms(const EventContext &context) const override
adds event to the monitoring histograms
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_onlineTrkKey
StatusCode monitorSPCounts(const EventContext &context) const
Gaudi::Property< std::vector< std::string > > m_triggerListTrackingMon
virtual StatusCode initialize() override
initialize
SG::ReadHandleKey< xAOD::EnergySumRoI > m_lvl1EnergySumROIKey
virtual ~HLTMinBiasTrkMonAlg() override
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_offlineTrkKey
Property holding a SG store/key/clid from which a ReadHandle is made.