ATLAS Offline Software
Loading...
Searching...
No Matches
SeedToTrackAnalysisAlg.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef ACTSTRKANALYSIS_SEEDTOTRACKANALYSISALG_H
6#define ACTSTRKANALYSIS_SEEDTOTRACKANALYSISALG_H
7
15
16namespace ActsTrk {
17
19 public AthMonitorAlgorithm {
20 public:
21 SeedToTrackAnalysisAlg(const std::string& name, ISvcLocator* pSvcLocator);
22 virtual ~SeedToTrackAnalysisAlg() override = default;
23
24 virtual StatusCode initialize() override;
25 virtual StatusCode fillHistograms(const EventContext& ctx) const override;
26
27 private:
28 StatusCode getTruthProbability(const ActsTrk::Seed& seed,
29 const std::vector< const ActsTrk::MeasurementToTruthParticleAssociation* >& associationMaps,
30 float& probability) const;
31
32 private:
35 SG::ReadHandleKey< std::vector<int> > m_destiniesKey {this, "InputDestinyCollection", ""};
36 SG::ReadCondHandleKey< InDet::BeamSpotData > m_beamSpotKey{this, "BeamSpotKey", "BeamSpotData", "SG key for beam spot"};
37
38 // Truth
39 enum DetectorType : std::uint8_t {PIXEL=0, STRIP, nTypes};
42
43 static const int m_nLayers{5};
44 std::vector<int> m_seedVars {};
45
46 static constexpr float s_unitGeV = 1e3;
47 EmptyProperty m_energyLossBinning {this, "EnergyLossBinning", {20.,0.,5.*s_unitGeV}, "Binning to be used for the energy loss histograms." };
48 Gaudi::Property< float > m_maxEnergyLoss {this, "MaxEnergyLoss", 10e12, "Stop moving up the decay chain if the energy loss is above this value." };
50 };
51
52}
53
54#endif
Property holding a SG store/key/clid from which a ReadHandle is made.
SG::ReadCondHandleKey< InDet::BeamSpotData > m_beamSpotKey
SG::ReadHandleKey< ActsTrk::MeasurementToTruthParticleAssociation > m_stripAssociuationMapKey
SG::ReadHandleKey< ActsTrk::MeasurementToTruthParticleAssociation > m_pixelAssociuationMapKey
StatusCode getTruthProbability(const ActsTrk::Seed &seed, const std::vector< const ActsTrk::MeasurementToTruthParticleAssociation * > &associationMaps, float &probability) const
SG::ReadHandleKey< std::vector< int > > m_destiniesKey
SeedToTrackAnalysisAlg(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode fillHistograms(const EventContext &ctx) const override
adds event to the monitoring histograms
virtual ~SeedToTrackAnalysisAlg() override=default
SG::ReadHandleKey< ActsTrk::SeedContainer > m_seedsKey
ElasticDecayUtil< false > m_elasticDecayUtil
Gaudi::Property< float > m_maxEnergyLoss
virtual StatusCode initialize() override
initialize
SG::ReadHandleKey< ActsTrk::BoundTrackParametersContainer > m_paramsKey
AthMonitorAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...