ATLAS Offline Software
PixelClusterTruthDecorator.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // Header file for class PixelClusterTruthDecorator
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 PIXELCLUSTERTRUTHDECORATOR_H
15 #define PIXELCLUSTERTRUTHDECORATOR_H
16 
18 #include "GaudiKernel/ServiceHandle.h"
20 
23 
26 
27 #include "Identifier/Identifier.h"
28 
30 
31 
32 namespace ActsTrk {
33 
35  public:
36  PixelClusterTruthDecorator(const std::string &name,ISvcLocator *pSvcLocator);
37  virtual ~PixelClusterTruthDecorator() = default;
38 
39  virtual StatusCode initialize() override;
40  virtual StatusCode execute(const EventContext& ctx) const override;
41  virtual StatusCode finalize() override;
42 
44  "PixelClusters","Input Pixel Cluster container"};
46  "Association map between measurements and truth particles"};
47 
48  SG::WriteHandleKey<xAOD::TrackMeasurementValidationContainer> m_write_xaod_key{this,"OutputClusterContainer","ITkPixelClusters",
49  "Output Pixel Validation Clusters"};
50 
51 
52  private:
53  bool m_useTruthInfo{true};
54 
55  };
56 
57 
58 
59 }
60 
61 
62 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
ActsTrk::PixelClusterTruthDecorator::finalize
virtual StatusCode finalize() override
Definition: PixelClusterTruthDecorator.cxx:118
ActsTrk::PixelClusterTruthDecorator
Definition: PixelClusterTruthDecorator.h:34
ActsTrk::PixelClusterTruthDecorator::m_clustercontainer_key
SG::ReadHandleKey< xAOD::PixelClusterContainer > m_clustercontainer_key
Definition: PixelClusterTruthDecorator.h:43
SG::ReadHandleKey< xAOD::PixelClusterContainer >
ActsTrk::PixelClusterTruthDecorator::m_write_xaod_key
SG::WriteHandleKey< xAOD::TrackMeasurementValidationContainer > m_write_xaod_key
Definition: PixelClusterTruthDecorator.h:48
ActsTrk::PixelClusterTruthDecorator::PixelClusterTruthDecorator
PixelClusterTruthDecorator(const std::string &name, ISvcLocator *pSvcLocator)
Definition: PixelClusterTruthDecorator.cxx:13
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
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.
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
PixelClusterContainer.h
WriteDecorHandle.h
Handle class for adding a decoration to an object.
ActsTrk::PixelClusterTruthDecorator::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: PixelClusterTruthDecorator.cxx:30
AthReentrantAlgorithm.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
ActsTrk::PixelClusterTruthDecorator::m_useTruthInfo
bool m_useTruthInfo
Definition: PixelClusterTruthDecorator.h:53
TrackMeasurementValidationContainer.h
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition: MuonDetectorBuilderTool.cxx:54
ActsTrk::PixelClusterTruthDecorator::initialize
virtual StatusCode initialize() override
Definition: PixelClusterTruthDecorator.cxx:17
MeasurementToTruthParticleAssociation.h
ActsTrk::PixelClusterTruthDecorator::~PixelClusterTruthDecorator
virtual ~PixelClusterTruthDecorator()=default
ActsTrk::PixelClusterTruthDecorator::m_associationMap_key
SG::ReadHandleKey< MeasurementToTruthParticleAssociation > m_associationMap_key
Definition: PixelClusterTruthDecorator.h:45