Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
PixelClusterTruthDecoratorAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // Header file for class PixelClusterTruthDecoratorAlg
7 //
8 // The algorithm extends xAOD::PixelClusterContainer
9 // with additional decorations associated to truth information
10 // And stores the results in a TrackMeasurementValidationContainer
11 // for compatibility with monitoring tools
13 
14 #ifndef PIXELCLUSTERTRUTHDECORATORALG_H
15 #define PIXELCLUSTERTRUTHDECORATORALG_H
16 
18 #include "GaudiKernel/ServiceHandle.h"
20 
23 
28 
29 #include "Identifier/Identifier.h"
30 
34 
35 namespace ActsTrk {
36 
38  : public AthReentrantAlgorithm {
39  public:
40  PixelClusterTruthDecoratorAlg(const std::string &name,
41  ISvcLocator *pSvcLocator);
42  virtual ~PixelClusterTruthDecoratorAlg() = default;
43 
44  virtual StatusCode initialize() override;
45  virtual StatusCode execute(const EventContext& ctx) const override;
46 
47  private:
48  ToolHandle<ISiLorentzAngleTool> m_lorentzAngleTool {this, "LorentzAngleTool", ""};
49 
50  SG::ReadHandleKey<xAOD::PixelClusterContainer> m_clustercontainer_key {this,"ClusterContainer", "","Input Pixel Cluster container"};
51  SG::ReadHandleKey<ActsTrk::MeasurementToTruthParticleAssociation> m_associationMap_key {this,"AssociationMapOut","", "Association map between measurements and truth particles"};
52  SG::ReadCondHandleKey<InDetDD::SiDetectorElementCollection> m_pixelDetEleCollKey {this, "PixelDetEleCollKey", "ITkPixelDetectorElementCollection"};
53  SG::WriteHandleKey<xAOD::TrackMeasurementValidationContainer> m_write_xaod_key{this,"MeasurementContainer","", "Output Pixel Validation Clusters"};
54 
55  // Decorations
58 
74 
76 
77  Gaudi::Property<bool> m_useTruthInfo {this, "UseTruthInfo", true};
78  const PixelID *m_PixelHelper {nullptr};
79  };
80 
81 }
82 
83 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
PixelID.h
This is an Identifier helper class for the Pixel subdetector. This class is a factory for creating co...
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition: StoreGate/StoreGate/WriteDecorHandleKey.h:89
ActsTrk::PixelClusterTruthDecoratorAlg::m_PixelHelper
const PixelID * m_PixelHelper
Definition: PixelClusterTruthDecoratorAlg.h:78
ActsTrk::PixelClusterTruthDecoratorAlg::PixelClusterTruthDecoratorAlg
PixelClusterTruthDecoratorAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: PixelClusterTruthDecoratorAlg.cxx:12
ActsTrk::PixelClusterTruthDecoratorAlg::m_measurement_centroid_xphi
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_centroid_xphi
Definition: PixelClusterTruthDecoratorAlg.h:71
TrackMeasurementValidationAuxContainer.h
ActsTrk::PixelClusterTruthDecoratorAlg::m_measurement_centroid_xeta
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_centroid_xeta
Definition: PixelClusterTruthDecoratorAlg.h:72
ActsTrk::PixelClusterTruthDecoratorAlg::m_measurement_phi_module
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_phi_module
Definition: PixelClusterTruthDecoratorAlg.h:67
ActsTrk::PixelClusterTruthDecoratorAlg::m_measurement_layer
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_layer
Definition: PixelClusterTruthDecoratorAlg.h:62
ActsTrk::PixelClusterTruthDecoratorAlg::m_clustercontainer_key
SG::ReadHandleKey< xAOD::PixelClusterContainer > m_clustercontainer_key
Definition: PixelClusterTruthDecoratorAlg.h:50
ActsTrk::PixelClusterTruthDecoratorAlg::m_measurement_bec
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_bec
Definition: PixelClusterTruthDecoratorAlg.h:61
ActsTrk::PixelClusterTruthDecoratorAlg::m_measurement_LorentzShift
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_LorentzShift
Definition: PixelClusterTruthDecoratorAlg.h:70
ISiLorentzAngleTool.h
ActsTrk::PixelClusterTruthDecoratorAlg::~PixelClusterTruthDecoratorAlg
virtual ~PixelClusterTruthDecoratorAlg()=default
ActsTrk::PixelClusterTruthDecoratorAlg::m_measurement_sizeZ
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_sizeZ
Definition: PixelClusterTruthDecoratorAlg.h:64
SG::ReadHandleKey< xAOD::PixelClusterContainer >
ActsTrk::PixelClusterTruthDecoratorAlg::m_measurement_eta_module
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_eta_module
Definition: PixelClusterTruthDecoratorAlg.h:66
ActsTrk::PixelClusterTruthDecoratorAlg
Definition: PixelClusterTruthDecoratorAlg.h:38
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:74
ActsTrk::PixelClusterTruthDecoratorAlg::m_associationMap_key
SG::ReadHandleKey< ActsTrk::MeasurementToTruthParticleAssociation > m_associationMap_key
Definition: PixelClusterTruthDecoratorAlg.h:51
ActsTrk::PixelClusterTruthDecoratorAlg::m_pixelDetEleCollKey
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_pixelDetEleCollKey
Definition: PixelClusterTruthDecoratorAlg.h:52
ActsTrk::PixelClusterTruthDecoratorAlg::m_measurement_truth_barcodes
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_truth_barcodes
Definition: PixelClusterTruthDecoratorAlg.h:57
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
ActsTrk::PixelClusterTruthDecoratorAlg::m_measurement_omegay
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_omegay
Definition: PixelClusterTruthDecoratorAlg.h:69
ActsTrk::PixelClusterTruthDecoratorAlg::m_measurement_tots
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_tots
Definition: PixelClusterTruthDecoratorAlg.h:75
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ActsTrk::PixelClusterTruthDecoratorAlg::m_measurement_side
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_side
Definition: PixelClusterTruthDecoratorAlg.h:73
PixelClusterContainer.h
WriteDecorHandle.h
Handle class for adding a decoration to an object.
ActsTrk::PixelClusterTruthDecoratorAlg::m_measurement_truth_indices
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_truth_indices
Definition: PixelClusterTruthDecoratorAlg.h:56
ActsTrk::PixelClusterTruthDecoratorAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: PixelClusterTruthDecoratorAlg.cxx:77
ActsTrk::PixelClusterTruthDecoratorAlg::m_measurement_waferID
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_waferID
Definition: PixelClusterTruthDecoratorAlg.h:60
ActsTrk::PixelClusterTruthDecoratorAlg::m_useTruthInfo
Gaudi::Property< bool > m_useTruthInfo
Definition: PixelClusterTruthDecoratorAlg.h:77
ActsTrk::PixelClusterTruthDecoratorAlg::m_lorentzAngleTool
ToolHandle< ISiLorentzAngleTool > m_lorentzAngleTool
Definition: PixelClusterTruthDecoratorAlg.h:48
ActsTrk::PixelClusterTruthDecoratorAlg::m_write_xaod_key
SG::WriteHandleKey< xAOD::TrackMeasurementValidationContainer > m_write_xaod_key
Definition: PixelClusterTruthDecoratorAlg.h:53
AthReentrantAlgorithm.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
SiDetectorElementCollection.h
ActsTrk::PixelClusterTruthDecoratorAlg::m_measurement_sizePhi
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_sizePhi
Definition: PixelClusterTruthDecoratorAlg.h:63
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection >
ActsTrk::PixelClusterTruthDecoratorAlg::m_measurement_detectorElementID
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_detectorElementID
Definition: PixelClusterTruthDecoratorAlg.h:59
ActsTrk::PixelClusterTruthDecoratorAlg::initialize
virtual StatusCode initialize() override
Definition: PixelClusterTruthDecoratorAlg.cxx:17
TrackMeasurementValidationContainer.h
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition: MuonDetectorBuilderTool.cxx:55
MeasurementToTruthParticleAssociation.h
ActsTrk::PixelClusterTruthDecoratorAlg::m_measurement_omegax
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_omegax
Definition: PixelClusterTruthDecoratorAlg.h:68
PixelID
Definition: PixelID.h:67
ActsTrk::PixelClusterTruthDecoratorAlg::m_measurement_SiWidth
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_SiWidth
Definition: PixelClusterTruthDecoratorAlg.h:65