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