 |
ATLAS Offline Software
|
#include <PixelClusterTruthDecoratorAlg.h>
|
| PixelClusterTruthDecoratorAlg (const std::string &name, ISvcLocator *pSvcLocator) |
|
virtual | ~PixelClusterTruthDecoratorAlg ()=default |
|
virtual StatusCode | initialize () override |
|
virtual StatusCode | execute (const EventContext &ctx) const override |
|
virtual StatusCode | sysInitialize () override |
| Override sysInitialize. More...
|
|
virtual bool | isClonable () const override |
| Specify if the algorithm is clonable. More...
|
|
virtual unsigned int | cardinality () const override |
| Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant. More...
|
|
virtual StatusCode | sysExecute (const EventContext &ctx) override |
| Execute an algorithm. More...
|
|
virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. More...
|
|
virtual bool | filterPassed (const EventContext &ctx) const |
|
virtual void | setFilterPassed (bool state, const EventContext &ctx) const |
|
ServiceHandle< StoreGateSvc > & | evtStore () |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
virtual StatusCode | sysStart () override |
| Handle START transition. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. More...
|
|
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T, V, H > &t) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| Declare a new Gaudi property. More...
|
|
void | updateVHKA (Gaudi::Details::PropertyBase &) |
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
|
StatusCode | labelMeasurementToKeep (const EventContext &ctx, const xAOD::PixelClusterContainer &clusters, std::vector< bool > &labels) const |
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyArrayType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleType &) |
| specialization for handling Gaudi::Property<SG::VarHandleBase> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &t, const SG::NotHandleType &) |
| specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
|
|
|
ToolHandle< ISiLorentzAngleTool > | m_lorentzAngleTool {this, "LorentzAngleTool", ""} |
|
SG::ReadHandleKey< xAOD::PixelClusterContainer > | m_clustercontainer_key {this,"ClusterContainer", "","Input Pixel Cluster container"} |
|
SG::ReadHandleKey< ActsTrk::MeasurementToTruthParticleAssociation > | m_associationMap_key {this,"AssociationMapOut","", "Association map between measurements and truth particles"} |
|
SG::ReadHandleKeyArray< xAOD::TrackParticleContainer > | m_trackParticlesKey {this, "TrackParticles", {}, "Input xAOD::TrackParticles"} |
|
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > | m_pixelDetEleCollKey {this, "PixelDetEleCollKey", "ITkPixelDetectorElementCollection"} |
|
SG::WriteHandleKey< xAOD::TrackMeasurementValidationContainer > | m_write_xaod_key {this,"MeasurementContainer","", "Output Pixel Validation Clusters"} |
|
SG::WriteDecorHandleKey< xAOD::PixelClusterContainer > | m_trackMeasurement_link {this, "MeasurementLink", m_clustercontainer_key, "validationMeasurementLink"} |
|
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > | m_measurement_truth_indices {this, "MeasurementTruthIndices", m_write_xaod_key, "truth_index"} |
|
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > | m_measurement_truth_barcodes {this, "MeasurementTruthBarcode", m_write_xaod_key, "truth_barcode"} |
|
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > | m_measurement_detectorElementID {this, "MeasurementDetectorElementID", m_write_xaod_key, "detectorElementID"} |
|
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > | m_measurement_waferID {this, "MeasurementWaferID", m_write_xaod_key, "waferID"} |
|
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > | m_measurement_bec {this, "MeasurementBEC", m_write_xaod_key, "bec"} |
|
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > | m_measurement_layer {this, "MeasurementLayer", m_write_xaod_key, "layer"} |
|
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > | m_measurement_sizePhi {this, "MeasurementSizePhi", m_write_xaod_key, "sizePhi"} |
|
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > | m_measurement_sizeZ {this, "MeasurementSizeZ", m_write_xaod_key, "sizeZ"} |
|
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > | m_measurement_SiWidth {this, "MeasurementSiWidth", m_write_xaod_key, "SiWidth"} |
|
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > | m_measurement_eta_module {this, "MeasurementEtaModule", m_write_xaod_key, "eta_module"} |
|
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > | m_measurement_phi_module {this, "MeasurementPhiModule", m_write_xaod_key, "phi_module"} |
|
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > | m_measurement_omegax {this, "MeasurementOmegaX", m_write_xaod_key, "omegax"} |
|
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > | m_measurement_omegay {this, "MeasurementOmegaY", m_write_xaod_key, "omegay"} |
|
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > | m_measurement_LorentzShift {this, "MeasurementLorentzShift", m_write_xaod_key, "LorentzShift"} |
|
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > | m_measurement_centroid_xphi {this, "MeasurementCentroidXphi", m_write_xaod_key, "centroid_xphi"} |
|
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > | m_measurement_centroid_xeta {this, "MeasurementCentroidXeta", m_write_xaod_key, "centroid_xeta"} |
|
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > | m_measurement_side {this, "MeasurementSide", m_write_xaod_key, "side"} |
|
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > | m_measurement_tots {this, "MeasurementToT", m_write_xaod_key, "tots"} |
|
Gaudi::Property< bool > | m_useTruthInfo {this, "UseTruthInfo", true} |
|
Gaudi::Property< bool > | m_keepOnlyOnTrackMeasurements {this, "KeepOnlyOnTrackMeasurements", false, "Keep on on-track measurements instead of the full collection"} |
|
const PixelID * | m_PixelHelper {nullptr} |
|
DataObjIDColl | m_extendedExtraObjects |
| Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks. More...
|
|
StoreGateSvc_t | m_evtStore |
| Pointer to StoreGate (event store by default) More...
|
|
StoreGateSvc_t | m_detStore |
| Pointer to StoreGate (detector store by default) More...
|
|
std::vector< SG::VarHandleKeyArray * > | m_vhka |
|
bool | m_varHandleArraysDeclared |
|
◆ StoreGateSvc_t
◆ PixelClusterTruthDecoratorAlg()
ActsTrk::PixelClusterTruthDecoratorAlg::PixelClusterTruthDecoratorAlg |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~PixelClusterTruthDecoratorAlg()
virtual ActsTrk::PixelClusterTruthDecoratorAlg::~PixelClusterTruthDecoratorAlg |
( |
| ) |
|
|
virtualdefault |
◆ cardinality()
Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.
Override this to return 0 for reentrant algorithms.
Override this to return 0 for reentrant algorithms.
Definition at line 75 of file AthCommonReentrantAlgorithm.cxx.
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
StatusCode ActsTrk::PixelClusterTruthDecoratorAlg::execute |
( |
const EventContext & |
ctx | ) |
const |
|
overridevirtual |
Definition at line 65 of file PixelClusterTruthDecoratorAlg.cxx.
77 const MeasurementToTruthParticleAssociation* measToTruth(
nullptr);
81 measToTruth = measToTruthHandle.
cptr();
87 ATH_CHECK(xaod.
record(std::make_unique<xAOD::TrackMeasurementValidationContainer>(),
88 std::make_unique<xAOD::TrackMeasurementValidationAuxContainer>()));
113 std::vector<bool> keepClusterCollection {};
119 if (not keepClusterCollection[
i])
continue;
125 measurements->
back()->index() );
128 decorator_measurement_link(*cluster) = std::move(mlink);
135 ATH_MSG_FATAL(
"Invalid pixel detector element for hash " << hashId );
136 return StatusCode::FAILURE;
139 const std::vector<Identifier> rdoList = cluster->
rdoList();
140 std::vector< std::uint64_t > rdoIdentifierList;
141 rdoIdentifierList.reserve(rdoList.size());
146 for(
const Identifier& hitIdentifier : rdoList ){
147 rdoIdentifierList.push_back( hitIdentifier.get_compact() );
161 return StatusCode::FAILURE;
188 decor_detectorElementID(*measurement) = hashId;
189 decor_waferID(*measurement) = waferId.
get_compact();
197 decor_omegax(*measurement) = omegax;
198 decor_omegay(*measurement) = omegay;
200 decor_centroid_xphi(*measurement) =
centroid.xPhi();
201 decor_centroid_xeta(*measurement) =
centroid.xEta();
202 decor_side(*measurement) = 0;
203 decor_tots(*measurement) = cluster->
totList();
213 std::size_t measurementIndex = 0;
215 if (not keepClusterCollection[
i])
continue;
222 return StatusCode::FAILURE;
227 if (cluster->
index() >= measToTruth->size()) {
228 ATH_MSG_ERROR(
"PRD index "<< cluster->
index() <<
" not present in the measurement to truth vector with size " << measToTruth->size() );
229 return StatusCode::FAILURE;
232 auto tps = measToTruth->at(cluster->
index());
234 std::vector<unsigned int> tp_indices;
235 std::vector<unsigned int> tp_barcodes;
236 for (
const auto&
tp : tps) {
237 tp_indices.push_back(
tp->index());
242 decor_truth_indices(*measurement) = std::move(tp_indices);
243 decor_truth_barcode(*measurement) = std::move(tp_barcodes);
248 ATH_MSG_DEBUG(
" recorded PixelPrepData objects: size " << measurements->
size() );
249 return StatusCode::SUCCESS;
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ extraOutputDeps()
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 94 of file AthCommonReentrantAlgorithm.cxx.
◆ filterPassed()
◆ initialize()
StatusCode ActsTrk::PixelClusterTruthDecoratorAlg::initialize |
( |
| ) |
|
|
overridevirtual |
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ isClonable()
◆ labelMeasurementToKeep()
Definition at line 252 of file PixelClusterTruthDecoratorAlg.cxx.
259 return StatusCode::SUCCESS;
273 ATH_CHECK( decorator_trackLink.isAvailable(*trackParticle) );
277 std::optional<ActsTrk::TrackContainer::ConstTrackProxy> optional_track = *trackLink;
278 if ( not optional_track.has_value() ) {
279 ATH_MSG_ERROR(
"Invalid track link for particle " << trackParticle->index());
280 return StatusCode::FAILURE;
282 ActsTrk::TrackContainer::ConstTrackProxy
track = optional_track.value();
285 track.container().trackStateContainer()
286 .visitBackwards(
track.tipIndex(),
288 (
const typename ActsTrk::TrackContainer::ConstTrackStateProxy& state)
290 auto flags = state.typeFlags();
291 if (not flags.test(Acts::TrackStateFlag::MeasurementFlag) and
292 not flags.test(Acts::TrackStateFlag::OutlierFlag)) return;
294 auto sl = state.getUncalibratedSourceLink().template get<ATLASUncalibSourceLink>();
295 if (sl == nullptr) return;
297 const xAOD::UncalibratedMeasurement &cluster = getUncalibratedMeasurement(sl);
298 if (cluster.type() != xAOD::UncalibMeasType::PixelClusterType) return;
299 labels.at(cluster.index()) = true;
304 return StatusCode::SUCCESS;
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ renounce()
◆ renounceArray()
◆ setFilterPassed()
◆ sysExecute()
Execute an algorithm.
We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.
Definition at line 85 of file AthCommonReentrantAlgorithm.cxx.
◆ sysInitialize()
Override sysInitialize.
Override sysInitialize from the base class.
Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc
Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc
Reimplemented from AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >.
Reimplemented in InputMakerBase, and HypoBase.
Definition at line 61 of file AthCommonReentrantAlgorithm.cxx.
110 if (
sc.isFailure()) {
118 if ( cs.retrieve().isFailure() ) {
120 return StatusCode::SUCCESS;
122 if (cs->regHandle(
this,*
h).isFailure()) {
123 sc = StatusCode::FAILURE;
124 ATH_MSG_ERROR(
"unable to register WriteCondHandle " <<
h->fullKey()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ m_associationMap_key
◆ m_clustercontainer_key
◆ m_detStore
◆ m_evtStore
◆ m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Empty if no symlinks were found.
Definition at line 114 of file AthCommonReentrantAlgorithm.h.
◆ m_keepOnlyOnTrackMeasurements
Gaudi::Property<bool> ActsTrk::PixelClusterTruthDecoratorAlg::m_keepOnlyOnTrackMeasurements {this, "KeepOnlyOnTrackMeasurements", false, "Keep on on-track measurements instead of the full collection"} |
|
private |
◆ m_lorentzAngleTool
ToolHandle<ISiLorentzAngleTool> ActsTrk::PixelClusterTruthDecoratorAlg::m_lorentzAngleTool {this, "LorentzAngleTool", ""} |
|
private |
◆ m_measurement_bec
◆ m_measurement_centroid_xeta
◆ m_measurement_centroid_xphi
◆ m_measurement_detectorElementID
◆ m_measurement_eta_module
◆ m_measurement_layer
◆ m_measurement_LorentzShift
◆ m_measurement_omegax
◆ m_measurement_omegay
◆ m_measurement_phi_module
◆ m_measurement_side
◆ m_measurement_SiWidth
◆ m_measurement_sizePhi
◆ m_measurement_sizeZ
◆ m_measurement_tots
◆ m_measurement_truth_barcodes
◆ m_measurement_truth_indices
◆ m_measurement_waferID
◆ m_pixelDetEleCollKey
◆ m_PixelHelper
const PixelID* ActsTrk::PixelClusterTruthDecoratorAlg::m_PixelHelper {nullptr} |
|
private |
◆ m_trackMeasurement_link
◆ m_trackParticlesKey
◆ m_useTruthInfo
Gaudi::Property<bool> ActsTrk::PixelClusterTruthDecoratorAlg::m_useTruthInfo {this, "UseTruthInfo", true} |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ m_write_xaod_key
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
DetectorIdentType identifier() const
Returns the full Identifier of the measurement.
DetectorIDHashType identifierHash() const
Returns the IdentifierHash of the measurement (corresponds to the detector element IdentifierHash)
const PixelID * m_PixelHelper
long unsigned int DetectorIdentType
int phi_index(const Identifier &id) const
Gaudi::Property< bool > m_keepOnlyOnTrackMeasurements
SG::WriteDecorHandleKey< xAOD::PixelClusterContainer > m_trackMeasurement_link
const_pointer_type cptr()
Dereference the pointer.
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_centroid_xphi
const std::vector< Identifier > rdoList() const
Returns the list of identifiers of the channels building the cluster.
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0)
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_centroid_xeta
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_phi_module
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
value_type get_compact() const
Get the compact id.
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_layer
SG::ReadHandleKey< xAOD::PixelClusterContainer > m_clustercontainer_key
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_bec
Helper class to provide constant type-safe access to aux data.
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_LorentzShift
void setRdoIdentifierList(const std::vector< uint64_t > &rdoIdentifierList)
Sets the list of RDO identifiers.
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_sizeZ
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_eta_module
bool isValid() const
Test to see if the link can be dereferenced.
Identifier wafer_id(int barrel_ec, int layer_disk, int phi_module, int eta_module) const
For a single crystal.
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
An algorithm that can be simultaneously executed in multiple threads.
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
std::pair< float, float > computeOmegas(const xAOD::PixelCluster &cluster, const PixelID &pixelID)
Class describing a TrackMeasurementValidation.
virtual const DataObjIDColl & extraOutputDeps() const override
Return the list of extra output dependencies.
SG::ReadHandleKey< ActsTrk::MeasurementToTruthParticleAssociation > m_associationMap_key
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_pixelDetEleCollKey
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_truth_barcodes
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
void setLocalPosition(float localX, float localY)
Sets the local position.
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_omegay
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_tots
::StatusCode StatusCode
StatusCode definition for legacy code.
pointer_type ptr()
Dereference the pointer.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
Handle class for adding a decoration to an object.
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_side
virtual StatusCode sysExecute(const EventContext &ctx) override
Execute an algorithm.
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_truth_indices
int eta_index(const Identifier &id) const
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
ConstMatrixMap< N > localCovariance() const
Returns the local covariance of the measurement.
void setIdentifier(uint64_t identifier)
Sets the identifier.
size_t index() const
Return the index of this element within its container.
const T * back() const
Access the last element in the collection as an rvalue.
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_waferID
Gaudi::Property< bool > m_useTruthInfo
ConstVectorMap< N > localPosition() const
Returns the local position of the measurement.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
virtual void renounce()=0
ToolHandle< ISiLorentzAngleTool > m_lorentzAngleTool
SG::WriteHandleKey< xAOD::TrackMeasurementValidationContainer > m_write_xaod_key
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
ElementLink implementation for ROOT usage.
int layer_disk(const Identifier &id) const
int eta_module(const Identifier &id) const
void setGlobalPosition(float globalX, float globalY, float globalZ)
Sets the global position.
ConstVectorMap< 3 > globalPosition() const
Returns the global position of the pixel cluster.
PixelClusterContainer_v1 PixelClusterContainer
Define the version of the pixel cluster container.
unsigned int DetectorIDHashType
@ detector ID element hash
void setLocalPositionError(float localXError, float localYError, float localXYCorrelation)
Sets the local position error.
uint64_t identifier() const
value_type push_back(value_type pElem)
Add an element to the end of the collection.
StatusCode initialize(bool used=true)
const std::vector< int > & totList() const
Returns the list of ToT of the channels building the cluster.
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_sizePhi
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_detectorElementID
StatusCode labelMeasurementToKeep(const EventContext &ctx, const xAOD::PixelClusterContainer &clusters, std::vector< bool > &labels) const
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
#define ATH_MSG_WARNING(x)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
virtual StatusCode sysInitialize() override
Override sysInitialize.
Class describing a TrackParticle.
const T * at(size_type n) const
Access an element, as an rvalue.
int channelsInEta() const
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_omegax
int phi_module(const Identifier &id) const
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_SiWidth
size_type size() const noexcept
Returns the number of elements in the collection.
const SiDetectorElement * getDetectorElement(const IdentifierHash &hash) const
Vertex centroid(const Polygon &p)
int channelsInPhi() const
Returns the dimensions of the cluster in numbers of channels in phi (x) and eta (y) directions,...
const_pointer_type cptr()
SG::ReadHandleKeyArray< xAOD::TrackParticleContainer > m_trackParticlesKey