ATLAS Offline Software
TrackParticleAnalysisAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef ACTSTRKANALYSIS_TRACKPARTICLEANALYSISALG_H
6 #define ACTSTRKANALYSIS_TRACKPARTICLEANALYSISALG_H
7 
11 
12 namespace ActsTrk {
13 
15  public AthMonitorAlgorithm {
16  public:
17  TrackParticleAnalysisAlg(const std::string& name, ISvcLocator* pSvcLocator);
18  virtual ~TrackParticleAnalysisAlg() override = default;
19 
20  virtual StatusCode initialize() override;
21  virtual StatusCode fillHistograms(const EventContext& ctx) const override;
22 
23  private:
24  StatusCode monitorTrackStateCounts(const xAOD::TrackParticle &track_particle) const;
25 
27  "Input track particle collection"};
28  Gaudi::Property< std::string > m_monGroupName
29  {this, "MonGroupName", "TrackParticleAnalysisAlg"};
30 
31  Gaudi::Property< bool > m_monitorTrackStateCounts
32  {this, "MonitorTrackStateCounts", true};
33  };
34 
35 }
36 
37 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
SG::ReadHandleKey< xAOD::TrackParticleContainer >
AthMonitorAlgorithm
Base class for Athena Monitoring Algorithms.
Definition: AthMonitorAlgorithm.h:36
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthMonitorAlgorithm.h
ActsTrk::TrackParticleAnalysisAlg::initialize
virtual StatusCode initialize() override
initialize
Definition: TrackParticleAnalysisAlg.cxx:26
ActsTrk::TrackParticleAnalysisAlg::m_tracksKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_tracksKey
Definition: TrackParticleAnalysisAlg.h:26
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
ActsTrk::TrackParticleAnalysisAlg::m_monitorTrackStateCounts
Gaudi::Property< bool > m_monitorTrackStateCounts
Definition: TrackParticleAnalysisAlg.h:32
ActsTrk::TrackParticleAnalysisAlg::fillHistograms
virtual StatusCode fillHistograms(const EventContext &ctx) const override
adds event to the monitoring histograms
Definition: TrackParticleAnalysisAlg.cxx:40
ActsTrk::TrackParticleAnalysisAlg::~TrackParticleAnalysisAlg
virtual ~TrackParticleAnalysisAlg() override=default
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition: MuonDetectorBuilderTool.cxx:49
xAOD::TrackParticle_v1
Class describing a TrackParticle.
Definition: TrackParticle_v1.h:43
ActsTrk::TrackParticleAnalysisAlg::TrackParticleAnalysisAlg
TrackParticleAnalysisAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: TrackParticleAnalysisAlg.cxx:22
ActsTrk::TrackParticleAnalysisAlg::monitorTrackStateCounts
StatusCode monitorTrackStateCounts(const xAOD::TrackParticle &track_particle) const
Definition: TrackParticleAnalysisAlg.cxx:83
ActsTrk::TrackParticleAnalysisAlg::m_monGroupName
Gaudi::Property< std::string > m_monGroupName
Definition: TrackParticleAnalysisAlg.h:29
TrackParticleContainer.h
ActsTrk::TrackParticleAnalysisAlg
Definition: TrackParticleAnalysisAlg.h:15