ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
Acts
ActsObjectDecoration
src
StripClusterSiHitDecoratorAlg.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 ACTSOBJECTDECORATION_STRIPCLUSTER_SIHIT_DECORATORALG_H
6
#define ACTSOBJECTDECORATION_STRIPCLUSTER_SIHIT_DECORATORALG_H
7
8
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
9
#include "
StoreGate/ReadHandleKey.h
"
10
#include "
StoreGate/WriteDecorHandleKey.h
"
11
#include "
xAODTracking/TrackMeasurementValidationContainer.h
"
12
#include "
InDetSimData/InDetSimDataCollection.h
"
13
#include "
InDetReadoutGeometry/SiDetectorElementCollection.h
"
14
#include "
InDetReadoutGeometry/SiDetectorElement.h
"
15
#include "
InDetSimEvent/SiHitCollection.h
"
16
#include "
InDetIdentifier/SCT_ID.h
"
17
18
namespace
ActsTrk
{
19
20
class
StripClusterSiHitDecoratorAlg
21
:
public
AthReentrantAlgorithm
{
22
public
:
23
StripClusterSiHitDecoratorAlg
(
const
std::string &name,ISvcLocator *pSvcLocator);
24
virtual
~StripClusterSiHitDecoratorAlg
() =
default
;
25
26
virtual
StatusCode
initialize
()
override
;
27
virtual
StatusCode
execute
(
const
EventContext& ctx)
const override
;
28
29
private
:
30
std::vector<SiHit>
31
findAllHitsCompatibleWithCluster
(
const
std::vector< Identifier >& rdos,
32
const
InDetDD::SiDetectorElement
& element,
33
const
std::vector<const SiHit*>& sihits)
const
;
34
35
private
:
36
SG::ReadHandleKey< xAOD::TrackMeasurementValidationContainer >
m_inputMeasurementsKey
{
this
,
"Measurements"
,
""
};
37
SG::ReadHandleKey< InDetSimDataCollection >
m_SDOcontainer_key
{
this
,
"SDOs"
,
""
};
38
SG::ReadHandleKey< SiHitCollection >
m_siHitsKey
{
this
,
"SiHits"
,
""
};
39
SG::ReadCondHandleKey<InDetDD::SiDetectorElementCollection>
m_stripDetEleCollKey
{
this
,
"StripDetEleCollKey"
,
"ITkStripDetectorElementCollection"
};
40
41
// Detector decorator
42
SG::ReadDecorHandleKey<xAOD::TrackMeasurementValidationContainer>
m_measurement_detectorElementID
{
this
,
"MeasurementDetectorElementID"
,
m_inputMeasurementsKey
,
"detectorElementID"
};
43
44
// SDO decorations
45
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer >
m_sdo_words
{
this
,
"SdoWords"
,
m_inputMeasurementsKey
,
"sdo_words"
};
46
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer >
m_sdo_depositsBarcode
{
this
,
"SdoDepositsBarcode"
,
m_inputMeasurementsKey
,
"sdo_depositsBarcode"
};
47
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer >
m_sdo_depositsEnergy
{
this
,
"SdoDepositsEnergy"
,
m_inputMeasurementsKey
,
"sdo_depositsEnergy"
};
48
49
// SiHit decorations
50
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer >
m_sihit_energyDeposit_decor_key
{
this
,
"SiHitEnergyDeposit"
,
m_inputMeasurementsKey
,
"sihit_energyDeposit"
};
51
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer >
m_sihit_meanTime_decor_key
{
this
,
"SiHitMeanTime"
,
m_inputMeasurementsKey
,
"sihit_meanTime"
};
52
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer >
m_sihit_barcode_decor_key
{
this
,
"SiHitBarcode"
,
m_inputMeasurementsKey
,
"sihit_barcode"
};
53
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer >
m_sihit_pdgid_decor_key
{
this
,
"SiHitPdgId"
,
m_inputMeasurementsKey
,
"sihit_pdgid"
};
54
55
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer >
m_sihit_startPosX_decor_key
{
this
,
"SiHitStartPosX"
,
m_inputMeasurementsKey
,
"sihit_startPosX"
};
56
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer >
m_sihit_startPosY_decor_key
{
this
,
"SiHitStartPosY"
,
m_inputMeasurementsKey
,
"sihit_startPosY"
};
57
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer >
m_sihit_startPosZ_decor_key
{
this
,
"SiHitStartPosZ"
,
m_inputMeasurementsKey
,
"sihit_startPosZ"
};
58
59
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer >
m_sihit_endPosX_decor_key
{
this
,
"SiHitStopPosX"
,
m_inputMeasurementsKey
,
"sihit_endPosX"
};
60
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer >
m_sihit_endPosY_decor_key
{
this
,
"SiHitStopPosY"
,
m_inputMeasurementsKey
,
"sihit_endPosY"
};
61
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer >
m_sihit_endPosZ_decor_key
{
this
,
"SiHitStopPosZ"
,
m_inputMeasurementsKey
,
"sihit_endPosZ"
};
62
63
const
SCT_ID
*
m_StripHelper
{
nullptr
};
64
};
65
66
}
67
68
#endif
AthReentrantAlgorithm.h
InDetSimDataCollection.h
SCT_ID.h
This is an Identifier helper class for the SCT subdetector.
SiDetectorElementCollection.h
SiDetectorElement.h
SiHitCollection.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
TrackMeasurementValidationContainer.h
ActsTrk::StripClusterSiHitDecoratorAlg::m_sihit_startPosY_decor_key
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_sihit_startPosY_decor_key
Definition
StripClusterSiHitDecoratorAlg.h:56
ActsTrk::StripClusterSiHitDecoratorAlg::m_sihit_pdgid_decor_key
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_sihit_pdgid_decor_key
Definition
StripClusterSiHitDecoratorAlg.h:53
ActsTrk::StripClusterSiHitDecoratorAlg::findAllHitsCompatibleWithCluster
std::vector< SiHit > findAllHitsCompatibleWithCluster(const std::vector< Identifier > &rdos, const InDetDD::SiDetectorElement &element, const std::vector< const SiHit * > &sihits) const
Definition
StripClusterSiHitDecoratorAlg.cxx:185
ActsTrk::StripClusterSiHitDecoratorAlg::StripClusterSiHitDecoratorAlg
StripClusterSiHitDecoratorAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition
StripClusterSiHitDecoratorAlg.cxx:15
ActsTrk::StripClusterSiHitDecoratorAlg::m_sihit_endPosX_decor_key
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_sihit_endPosX_decor_key
Definition
StripClusterSiHitDecoratorAlg.h:59
ActsTrk::StripClusterSiHitDecoratorAlg::m_sihit_meanTime_decor_key
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_sihit_meanTime_decor_key
Definition
StripClusterSiHitDecoratorAlg.h:51
ActsTrk::StripClusterSiHitDecoratorAlg::m_sdo_depositsEnergy
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_sdo_depositsEnergy
Definition
StripClusterSiHitDecoratorAlg.h:47
ActsTrk::StripClusterSiHitDecoratorAlg::m_sdo_depositsBarcode
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_sdo_depositsBarcode
Definition
StripClusterSiHitDecoratorAlg.h:46
ActsTrk::StripClusterSiHitDecoratorAlg::m_sihit_endPosY_decor_key
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_sihit_endPosY_decor_key
Definition
StripClusterSiHitDecoratorAlg.h:60
ActsTrk::StripClusterSiHitDecoratorAlg::initialize
virtual StatusCode initialize() override
Definition
StripClusterSiHitDecoratorAlg.cxx:20
ActsTrk::StripClusterSiHitDecoratorAlg::m_sihit_startPosX_decor_key
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_sihit_startPosX_decor_key
Definition
StripClusterSiHitDecoratorAlg.h:55
ActsTrk::StripClusterSiHitDecoratorAlg::m_StripHelper
const SCT_ID * m_StripHelper
Definition
StripClusterSiHitDecoratorAlg.h:63
ActsTrk::StripClusterSiHitDecoratorAlg::m_siHitsKey
SG::ReadHandleKey< SiHitCollection > m_siHitsKey
Definition
StripClusterSiHitDecoratorAlg.h:38
ActsTrk::StripClusterSiHitDecoratorAlg::m_measurement_detectorElementID
SG::ReadDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_detectorElementID
Definition
StripClusterSiHitDecoratorAlg.h:42
ActsTrk::StripClusterSiHitDecoratorAlg::m_sihit_energyDeposit_decor_key
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_sihit_energyDeposit_decor_key
Definition
StripClusterSiHitDecoratorAlg.h:50
ActsTrk::StripClusterSiHitDecoratorAlg::m_sdo_words
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_sdo_words
Definition
StripClusterSiHitDecoratorAlg.h:45
ActsTrk::StripClusterSiHitDecoratorAlg::~StripClusterSiHitDecoratorAlg
virtual ~StripClusterSiHitDecoratorAlg()=default
ActsTrk::StripClusterSiHitDecoratorAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition
StripClusterSiHitDecoratorAlg.cxx:56
ActsTrk::StripClusterSiHitDecoratorAlg::m_sihit_startPosZ_decor_key
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_sihit_startPosZ_decor_key
Definition
StripClusterSiHitDecoratorAlg.h:57
ActsTrk::StripClusterSiHitDecoratorAlg::m_sihit_endPosZ_decor_key
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_sihit_endPosZ_decor_key
Definition
StripClusterSiHitDecoratorAlg.h:61
ActsTrk::StripClusterSiHitDecoratorAlg::m_inputMeasurementsKey
SG::ReadHandleKey< xAOD::TrackMeasurementValidationContainer > m_inputMeasurementsKey
Definition
StripClusterSiHitDecoratorAlg.h:36
ActsTrk::StripClusterSiHitDecoratorAlg::m_SDOcontainer_key
SG::ReadHandleKey< InDetSimDataCollection > m_SDOcontainer_key
Definition
StripClusterSiHitDecoratorAlg.h:37
ActsTrk::StripClusterSiHitDecoratorAlg::m_sihit_barcode_decor_key
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_sihit_barcode_decor_key
Definition
StripClusterSiHitDecoratorAlg.h:52
ActsTrk::StripClusterSiHitDecoratorAlg::m_stripDetEleCollKey
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_stripDetEleCollKey
Definition
StripClusterSiHitDecoratorAlg.h:39
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
InDetDD::SiDetectorElement
Class to hold geometrical description of a silicon detector element.
Definition
SiDetectorElement.h:109
SCT_ID
This is an Identifier helper class for the SCT subdetector.
Definition
SCT_ID.h:68
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
SG::ReadDecorHandleKey
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Definition
StoreGate/StoreGate/ReadDecorHandleKey.h:86
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition
StoreGate/StoreGate/WriteDecorHandleKey.h:90
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition
MdtCalibInput.h:31
Generated on
for ATLAS Offline Software by
1.17.0