ATLAS Offline Software
Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
ActsTrk::StripClusterTruthDecoratorAlg Class Reference

#include <StripClusterTruthDecoratorAlg.h>

Inheritance diagram for ActsTrk::StripClusterTruthDecoratorAlg:
Collaboration diagram for ActsTrk::StripClusterTruthDecoratorAlg:

Public Member Functions

 StripClusterTruthDecoratorAlg (const std::string &name, ISvcLocator *pSvcLocator)
 
virtual ~StripClusterTruthDecoratorAlg ()=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
 

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution More...
 
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)
 
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed. More...
 

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

StatusCode labelMeasurementToKeep (const EventContext &ctx, const xAOD::StripClusterContainer &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...
 

Private Attributes

SG::ReadHandleKey< xAOD::StripClusterContainerm_clustercontainer_key {this,"ClusterContainer", "", "Input Strip Cluster container"}
 
SG::ReadHandleKey< MeasurementToTruthParticleAssociationm_associationMap_key {this,"AssociationMapOut", "", "Association map between measurements and truth particles"}
 
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollectionm_stripDetEleCollKey {this, "StripDetectorElements", "ITkStripDetectorElementCollection"}
 
SG::ReadHandleKeyArray< xAOD::TrackParticleContainerm_trackParticlesKey {this, "TrackParticles", {}, "Input xAOD::TrackParticles"}
 
SG::WriteHandleKey< xAOD::TrackMeasurementValidationContainerm_write_xaod_key {this,"MeasurementContainer","", "Output Strip Validation Clusters"}
 
SG::WriteDecorHandleKey< xAOD::StripClusterContainerm_trackMeasurement_link {this, "MeasurementLink", m_clustercontainer_key, "validationMeasurementLink"}
 
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainerm_measurement_truth_indices {this, "MeasurementTruthIndices", m_write_xaod_key, "truth_index"}
 
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainerm_measurement_truth_barcodes {this, "MeasurementTruthBarcode", m_write_xaod_key, "truth_barcode"}
 
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainerm_measurement_detectorElementID {this, "MeasurementDetectorElementID", m_write_xaod_key, "detectorElementID"}
 
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainerm_measurement_waferID {this, "MeasurementWaferID", m_write_xaod_key, "waferID"}
 
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainerm_measurement_bec {this, "MeasurementBEC", m_write_xaod_key, "bec"}
 
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainerm_measurement_layer {this, "MeasurementLayer", m_write_xaod_key, "layer"}
 
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainerm_measurement_sizePhi {this, "MeasurementSizePhi", m_write_xaod_key, "sizePhi"}
 
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainerm_measurement_sizeZ {this, "MeasurementSizeZ", m_write_xaod_key, "sizeZ"}
 
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainerm_measurement_SiWidth {this, "MeasurementSiWidth", m_write_xaod_key, "SiWidth"}
 
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainerm_measurement_eta_module {this, "MeasurementEtaModule", m_write_xaod_key, "eta_module"}
 
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainerm_measurement_phi_module {this, "MeasurementPhiModule", m_write_xaod_key, "phi_module"}
 
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainerm_measurement_omegax {this, "MeasurementOmegaX", m_write_xaod_key, "omegax"}
 
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainerm_measurement_omegay {this, "MeasurementOmegaY", m_write_xaod_key, "omegay"}
 
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainerm_measurement_LorentzShift {this, "MeasurementLorentzShift", m_write_xaod_key, "LorentzShift"}
 
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainerm_measurement_centroid_xphi {this, "MeasurementCentroidXphi", m_write_xaod_key, "centroid_xphi"}
 
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainerm_measurement_centroid_xeta {this, "MeasurementCentroidXeta", m_write_xaod_key, "centroid_xeta"}
 
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainerm_measurement_side {this, "MeasurementSide", m_write_xaod_key, "side"}
 
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 SCT_IDm_stripHelper {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
 

Detailed Description

Definition at line 38 of file StripClusterTruthDecoratorAlg.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ StripClusterTruthDecoratorAlg()

ActsTrk::StripClusterTruthDecoratorAlg::StripClusterTruthDecoratorAlg ( const std::string &  name,
ISvcLocator *  pSvcLocator 
)

Definition at line 14 of file StripClusterTruthDecoratorAlg.cxx.

15  :
16  AthReentrantAlgorithm(name, pSvcLocator)
17  {}

◆ ~StripClusterTruthDecoratorAlg()

virtual ActsTrk::StripClusterTruthDecoratorAlg::~StripClusterTruthDecoratorAlg ( )
virtualdefault

Member Function Documentation

◆ cardinality()

unsigned int AthCommonReentrantAlgorithm< Gaudi::Algorithm >::cardinality
overridevirtualinherited

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.

64 {
65  return 0;
66 }

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T, V, H > &  hndl,
const SG::VarHandleKeyArrayType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKeyArray>

Definition at line 170 of file AthCommonDataStore.h.

172  {
173  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
174  hndl.value(),
175  hndl.documentation());
176 
177  }

◆ declareGaudiProperty() [2/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T, V, H > &  hndl,
const SG::VarHandleKeyType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158  {
159  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
160  hndl.value(),
161  hndl.documentation());
162 
163  }

◆ declareGaudiProperty() [3/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T, V, H > &  hndl,
const SG::VarHandleType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleBase>

Definition at line 184 of file AthCommonDataStore.h.

186  {
187  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
188  hndl.value(),
189  hndl.documentation());
190  }

◆ declareGaudiProperty() [4/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T, V, H > &  t,
const SG::NotHandleType  
)
inlineprivateinherited

specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>

Definition at line 199 of file AthCommonDataStore.h.

200  {
201  return PBASE::declareProperty(t);
202  }

◆ declareProperty() [1/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleBase hndl,
const std::string &  doc,
const SG::VarHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation 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.

249  {
250  this->declare(hndl.vhKey());
251  hndl.vhKey().setOwner(this);
252 
253  return PBASE::declareProperty(name,hndl,doc);
254  }

◆ declareProperty() [2/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleKey hndl,
const std::string &  doc,
const SG::VarHandleKeyType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation 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.

225  {
226  this->declare(hndl);
227  hndl.setOwner(this);
228 
229  return PBASE::declareProperty(name,hndl,doc);
230  }

◆ declareProperty() [3/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleKeyArray hndArr,
const std::string &  doc,
const SG::VarHandleKeyArrayType  
)
inlineinherited

Definition at line 259 of file AthCommonDataStore.h.

263  {
264 
265  // std::ostringstream ost;
266  // ost << Algorithm::name() << " VHKA declareProp: " << name
267  // << " size: " << hndArr.keys().size()
268  // << " mode: " << hndArr.mode()
269  // << " vhka size: " << m_vhka.size()
270  // << "\n";
271  // debug() << ost.str() << endmsg;
272 
273  hndArr.setOwner(this);
274  m_vhka.push_back(&hndArr);
275 
276  Gaudi::Details::PropertyBase* p = PBASE::declareProperty(name, hndArr, doc);
277  if (p != 0) {
278  p->declareUpdateHandler(&AthCommonDataStore<PBASE>::updateVHKA, this);
279  } else {
280  ATH_MSG_ERROR("unable to call declareProperty on VarHandleKeyArray "
281  << name);
282  }
283 
284  return p;
285 
286  }

◆ declareProperty() [4/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc,
const SG::NotHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation 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.

337  {
338  return PBASE::declareProperty(name, property, doc);
339  }

◆ declareProperty() [5/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc = "none" 
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation 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.

355  {
356  typedef typename SG::HandleClassifier<T>::type htype;
357  return declareProperty (name, property, doc, htype());
358  }

◆ declareProperty() [6/6]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( Gaudi::Property< T, V, H > &  t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145  {
146  typedef typename SG::HandleClassifier<T>::type htype;
148  }

◆ detStore()

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

95 { return m_detStore; }

◆ evtStore() [1/2]

ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

85 { return m_evtStore; }

◆ evtStore() [2/2]

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::evtStore ( ) const
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 90 of file AthCommonDataStore.h.

90 { return m_evtStore; }

◆ execute()

StatusCode ActsTrk::StripClusterTruthDecoratorAlg::execute ( const EventContext &  ctx) const
overridevirtual

Definition at line 61 of file StripClusterTruthDecoratorAlg.cxx.

61  {
62 
65  const xAOD::StripClusterContainer *stripClusters = StripClusterContainer.cptr();
66 
68  ATH_CHECK(stripDetEleHandle.isValid());
69  const InDetDD::SiDetectorElementCollection* stripElements = stripDetEleHandle.cptr();
70 
71  const ActsTrk::MeasurementToTruthParticleAssociation* measToTruth(nullptr);
72  if (m_useTruthInfo) {
74  ATH_CHECK( measToTruthHandle.isValid());
75  measToTruth = measToTruthHandle.ptr();
76  }
77 
78  // Setup outputs
79  // Create the xAOD container and its auxiliary store:
81  ATH_CHECK(xaod.record(std::make_unique<xAOD::TrackMeasurementValidationContainer>(),
82  std::make_unique<xAOD::TrackMeasurementValidationAuxContainer>()));
83 
86 
102 
103  // collection
104  std::vector<bool> keepClusterCollection {};
105  ATH_CHECK( labelMeasurementToKeep(ctx, *stripClusters, keepClusterCollection) );
106  xAOD::TrackMeasurementValidationContainer *measurements = xaod.ptr();
107 
108  // loop over collection and convert to xAOD::TrackMeasurementValidation
109  for (std::size_t i(0); i<stripClusters->size(); ++i) {
110  if (not keepClusterCollection[i]) continue;
111  const xAOD::StripCluster* cluster = stripClusters->at(i);
112 
113  measurements->push_back( new xAOD::TrackMeasurementValidation() );
114  xAOD::TrackMeasurementValidation* measurement = measurements->back();
116  measurements->back()->index() );
117  ATH_CHECK( mlink.isValid() );
118  decorator_measurement_link(*cluster) = std::move(mlink);
119 
120  xAOD::DetectorIdentType clusterId = cluster->identifier();
121  xAOD::DetectorIDHashType hashId = cluster->identifierHash();
122 
123  const InDetDD::SiDetectorElement *element = stripElements->getDetectorElement(hashId);
124  if ( not element ) {
125  ATH_MSG_FATAL( "Invalid strip detector element for hash " << hashId );
126  return StatusCode::FAILURE;
127  }
128 
129  const std::vector<Identifier> rdoList = cluster->rdoList();
130  std::vector< std::uint64_t > rdoIdentifierList;
131  rdoIdentifierList.reserve(rdoList.size());
132  for( const Identifier& hitIdentifier : rdoList ){
133  rdoIdentifierList.push_back( hitIdentifier.get_compact() );
134  }
135 
136  //Set Identifier
137  measurement->setIdentifier( clusterId );
138  measurement->setRdoIdentifierList(std::move(rdoIdentifierList));
139 
140  //Set Global Position
141  auto gpos = cluster->globalPosition();
142  measurement->setGlobalPosition(gpos.x(), gpos.y(), gpos.z());
143 
144  // Set local position and error matrix
145  auto locpos = cluster->localPosition<1>();
146  measurement->setLocalPosition(locpos[0], locpos[1]);
147 
148  auto localCov = cluster->localCovariance<1>();
149  measurement->setLocalPositionError( localCov(0,0), 0., 0. );
150 
151  const Identifier waferId = m_stripHelper->wafer_id(hashId);
152  decor_detectorElementID(*measurement) = hashId;
153  decor_waferID(*measurement) = waferId.get_compact();
154  decor_bec(*measurement) = m_stripHelper->barrel_ec(waferId);
155  decor_layer(*measurement) = m_stripHelper->layer_disk(waferId);
156  decor_sizePhi(*measurement) = cluster->channelsInPhi();
157  decor_sizeZ(*measurement) = 0;
158  decor_SiWidth(*measurement) = cluster->channelsInPhi();
159  decor_eta_module(*measurement) = m_stripHelper->eta_module(waferId);
160  decor_phi_module(*measurement) = m_stripHelper->phi_module(waferId);
161  decor_omegax(*measurement) = 0;
162  decor_omegay(*measurement) = 0;
163  decor_LorentzShift(*measurement) = 0;
164  decor_centroid_xphi(*measurement) = 0;
165  decor_centroid_xeta(*measurement) = 0;
166  decor_side(*measurement) = m_stripHelper->side(waferId);
167  }
168 
169 
170  // Get a list of all true particle contributing to the cluster
171  if (m_useTruthInfo) {
174 
175  std::size_t measurementIndex = 0;
176  for (std::size_t i(0); i<stripClusters->size(); ++i) {
177  if (not keepClusterCollection[i]) continue;
178  const xAOD::StripCluster* cluster = stripClusters->at(i);
179  xAOD::TrackMeasurementValidation* measurement = measurements->at(measurementIndex);
180 
181  // Check the two match
182  if (cluster->identifier() != measurement->identifier()) {
183  ATH_MSG_ERROR("Cluster and Measurement are not matching!");
184  return StatusCode::FAILURE;
185  }
186 
187  if (cluster->index() >= measToTruth->size()) {
188  ATH_MSG_ERROR("PRD index "<< cluster->index() << " not present in the measurement to truth vector with size " << measToTruth->size());
189  return StatusCode::FAILURE;
190  }
191 
192  auto tps = measToTruth->at(cluster->index());
193 
194  std::vector<unsigned int> tp_indices;
195  std::vector<unsigned int> tp_barcodes;
196  for (auto tp : tps) {
197  tp_indices.push_back(tp->index());
198  tp_barcodes.push_back(HepMC::uniqueID(tp));
199  }
200 
201  decor_truth_indices(*measurement) = std::move(tp_indices);
202  decor_truth_barcode(*measurement) = std::move(tp_barcodes);
203  ++measurementIndex;
204  } // loop on clusters
205  }
206 
207  ATH_MSG_DEBUG( " recorded StripPrepData objects: size " << measurements->size() );
208  return StatusCode::SUCCESS;
209  }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase &  ExtraDeps)
protectedinherited

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()

const DataObjIDColl & AthCommonReentrantAlgorithm< Gaudi::Algorithm >::extraOutputDeps
overridevirtualinherited

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.

90 {
91  // If we didn't find any symlinks to add, just return the collection
92  // from the base class. Otherwise, return the extended collection.
93  if (!m_extendedExtraObjects.empty()) {
95  }
96  return BaseAlg::extraOutputDeps();
97 }

◆ filterPassed()

virtual bool AthCommonReentrantAlgorithm< Gaudi::Algorithm >::filterPassed ( const EventContext &  ctx) const
inlinevirtualinherited

Definition at line 96 of file AthCommonReentrantAlgorithm.h.

96  {
97  return execState( ctx ).filterPassed();
98  }

◆ initialize()

StatusCode ActsTrk::StripClusterTruthDecoratorAlg::initialize ( )
overridevirtual

Definition at line 20 of file StripClusterTruthDecoratorAlg.cxx.

20  {
21  ATH_MSG_DEBUG("Initialize " << name() << " ...");
22 
23  // Read keys
27 
28  // Tracks only needed if we want on track clusters only
30 
31  // Write keys
32  ATH_CHECK(m_write_xaod_key.initialize());
33 
34  // Decorator
35  ATH_CHECK(m_trackMeasurement_link.initialize());
36 
39 
41  ATH_CHECK(m_measurement_waferID.initialize());
42  ATH_CHECK(m_measurement_bec.initialize());
43  ATH_CHECK(m_measurement_layer.initialize());
44  ATH_CHECK(m_measurement_sizePhi.initialize());
45  ATH_CHECK(m_measurement_sizeZ.initialize());
46  ATH_CHECK(m_measurement_SiWidth.initialize());
47  ATH_CHECK(m_measurement_eta_module.initialize());
48  ATH_CHECK(m_measurement_phi_module.initialize());
49  ATH_CHECK(m_measurement_omegax.initialize());
50  ATH_CHECK(m_measurement_omegay.initialize());
54  ATH_CHECK(m_measurement_side.initialize());
55 
57 
58  return StatusCode::SUCCESS;
59  }

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::inputHandles ( ) const
overridevirtualinherited

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()

bool AthCommonReentrantAlgorithm< Gaudi::Algorithm >::isClonable
overridevirtualinherited

Specify if the algorithm is clonable.

Reentrant algorithms are clonable.

Definition at line 68 of file AthCommonReentrantAlgorithm.cxx.

52 {
53  // Reentrant algorithms are clonable.
54  return true;
55 }

◆ labelMeasurementToKeep()

StatusCode ActsTrk::StripClusterTruthDecoratorAlg::labelMeasurementToKeep ( const EventContext &  ctx,
const xAOD::StripClusterContainer clusters,
std::vector< bool > &  labels 
) const
private

Definition at line 211 of file StripClusterTruthDecoratorAlg.cxx.

214 {
215  labels.clear();
217  labels.resize(clusters.size(), true);
218  return StatusCode::SUCCESS;
219  }
220  labels.resize(clusters.size(), false);
221 
222  static const SG::ConstAccessor< ElementLink<ActsTrk::TrackContainer> > decorator_trackLink("actsTrack");
223 
224  // get the tracks
226  SG::ReadHandle<xAOD::TrackParticleContainer> trackParticleHandle = SG::makeHandle( trackParticlesKey, ctx );
227  ATH_CHECK(trackParticleHandle.isValid());
228  const xAOD::TrackParticleContainer* trackParticles = trackParticleHandle.cptr();
229 
230  for (const xAOD::TrackParticle* trackParticle : *trackParticles) {
231  // Get the ACTS track object
232  ATH_CHECK( decorator_trackLink.isAvailable(*trackParticle) );
233  ElementLink<ActsTrk::TrackContainer> trackLink = decorator_trackLink(*trackParticle);
234  ATH_CHECK(trackLink.isValid());
235 
236  std::optional<ActsTrk::TrackContainer::ConstTrackProxy> optional_track = *trackLink;
237  if ( not optional_track.has_value() ) {
238  ATH_MSG_ERROR("Invalid track link for particle " << trackParticle->index());
239  return StatusCode::FAILURE;
240  }
241  ActsTrk::TrackContainer::ConstTrackProxy track = optional_track.value();
242 
243  // loop on track states
244  track.container().trackStateContainer()
245  .visitBackwards(track.tipIndex(),
246  [&labels]
247  (const typename ActsTrk::TrackContainer::ConstTrackStateProxy& state)
248  {
249  auto flags = state.typeFlags();
250  if (not flags.test(Acts::TrackStateFlag::MeasurementFlag) and
251  not flags.test(Acts::TrackStateFlag::OutlierFlag)) return;
252 
253  auto sl = state.getUncalibratedSourceLink().template get<ATLASUncalibSourceLink>();
254  if (sl == nullptr) return;
255 
256  const xAOD::UncalibratedMeasurement &cluster = getUncalibratedMeasurement(sl);
257  if (cluster.type() != xAOD::UncalibMeasType::StripClusterType) return;
258  labels.at(cluster.index()) = true;
259  });
260  } // loop on tracks
261  } // loop on read handle keys
262 
263  return StatusCode::SUCCESS;
264 }

◆ msg() [1/2]

MsgStream& AthCommonMsg< Gaudi::Algorithm >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24  {
25  return this->msgStream();
26  }

◆ msg() [2/2]

MsgStream& AthCommonMsg< Gaudi::Algorithm >::msg ( const MSG::Level  lvl) const
inlineinherited

Definition at line 27 of file AthCommonMsg.h.

27  {
28  return this->msgStream(lvl);
29  }

◆ msgLvl()

bool AthCommonMsg< Gaudi::Algorithm >::msgLvl ( const MSG::Level  lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30  {
31  return this->msgLevel(lvl);
32  }

◆ outputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles ( ) const
overridevirtualinherited

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()

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> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounce ( T &  h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381  {
382  h.renounce();
383  PBASE::renounce (h);
384  }

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounceArray ( SG::VarHandleKeyArray handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364  {
365  handlesArray.renounce();
366  }

◆ setFilterPassed()

virtual void AthCommonReentrantAlgorithm< Gaudi::Algorithm >::setFilterPassed ( bool  state,
const EventContext &  ctx 
) const
inlinevirtualinherited

Definition at line 100 of file AthCommonReentrantAlgorithm.h.

100  {
101  execState( ctx ).setFilterPassed( state );
102  }

◆ sysExecute()

StatusCode AthCommonReentrantAlgorithm< Gaudi::Algorithm >::sysExecute ( const EventContext &  ctx)
overridevirtualinherited

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.

77 {
78  return BaseAlg::sysExecute (ctx);
79 }

◆ sysInitialize()

StatusCode AthCommonReentrantAlgorithm< Gaudi::Algorithm >::sysInitialize
overridevirtualinherited

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.

107  {
109 
110  if (sc.isFailure()) {
111  return sc;
112  }
113 
114  ServiceHandle<ICondSvc> cs("CondSvc",name());
115  for (auto h : outputHandles()) {
116  if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
117  // do this inside the loop so we don't create the CondSvc until needed
118  if ( cs.retrieve().isFailure() ) {
119  ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
120  return StatusCode::SUCCESS;
121  }
122  if (cs->regHandle(this,*h).isFailure()) {
123  sc = StatusCode::FAILURE;
124  ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
125  << " with CondSvc");
126  }
127  }
128  }
129  return sc;
130 }

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::updateVHKA ( Gaudi::Details::PropertyBase &  )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308  {
309  // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310  // << " size: " << m_vhka.size() << endmsg;
311  for (auto &a : m_vhka) {
312  std::vector<SG::VarHandleKey*> keys = a->keys();
313  for (auto k : keys) {
314  k->setOwner(this);
315  }
316  }
317  }

Member Data Documentation

◆ m_associationMap_key

SG::ReadHandleKey<MeasurementToTruthParticleAssociation> ActsTrk::StripClusterTruthDecoratorAlg::m_associationMap_key {this,"AssociationMapOut", "", "Association map between measurements and truth particles"}
private

Definition at line 56 of file StripClusterTruthDecoratorAlg.h.

◆ m_clustercontainer_key

SG::ReadHandleKey<xAOD::StripClusterContainer> ActsTrk::StripClusterTruthDecoratorAlg::m_clustercontainer_key {this,"ClusterContainer", "", "Input Strip Cluster container"}
private

Definition at line 55 of file StripClusterTruthDecoratorAlg.h.

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthCommonReentrantAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
privateinherited

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::StripClusterTruthDecoratorAlg::m_keepOnlyOnTrackMeasurements {this, "KeepOnlyOnTrackMeasurements", false, "Keep on on-track measurements instead of the full collection"}
private

Definition at line 85 of file StripClusterTruthDecoratorAlg.h.

◆ m_measurement_bec

SG::WriteDecorHandleKey<xAOD::TrackMeasurementValidationContainer> ActsTrk::StripClusterTruthDecoratorAlg::m_measurement_bec {this, "MeasurementBEC", m_write_xaod_key, "bec"}
private

Definition at line 70 of file StripClusterTruthDecoratorAlg.h.

◆ m_measurement_centroid_xeta

SG::WriteDecorHandleKey<xAOD::TrackMeasurementValidationContainer> ActsTrk::StripClusterTruthDecoratorAlg::m_measurement_centroid_xeta {this, "MeasurementCentroidXeta", m_write_xaod_key, "centroid_xeta"}
private

Definition at line 81 of file StripClusterTruthDecoratorAlg.h.

◆ m_measurement_centroid_xphi

SG::WriteDecorHandleKey<xAOD::TrackMeasurementValidationContainer> ActsTrk::StripClusterTruthDecoratorAlg::m_measurement_centroid_xphi {this, "MeasurementCentroidXphi", m_write_xaod_key, "centroid_xphi"}
private

Definition at line 80 of file StripClusterTruthDecoratorAlg.h.

◆ m_measurement_detectorElementID

SG::WriteDecorHandleKey<xAOD::TrackMeasurementValidationContainer> ActsTrk::StripClusterTruthDecoratorAlg::m_measurement_detectorElementID {this, "MeasurementDetectorElementID", m_write_xaod_key, "detectorElementID"}
private

Definition at line 68 of file StripClusterTruthDecoratorAlg.h.

◆ m_measurement_eta_module

SG::WriteDecorHandleKey<xAOD::TrackMeasurementValidationContainer> ActsTrk::StripClusterTruthDecoratorAlg::m_measurement_eta_module {this, "MeasurementEtaModule", m_write_xaod_key, "eta_module"}
private

Definition at line 75 of file StripClusterTruthDecoratorAlg.h.

◆ m_measurement_layer

SG::WriteDecorHandleKey<xAOD::TrackMeasurementValidationContainer> ActsTrk::StripClusterTruthDecoratorAlg::m_measurement_layer {this, "MeasurementLayer", m_write_xaod_key, "layer"}
private

Definition at line 71 of file StripClusterTruthDecoratorAlg.h.

◆ m_measurement_LorentzShift

SG::WriteDecorHandleKey<xAOD::TrackMeasurementValidationContainer> ActsTrk::StripClusterTruthDecoratorAlg::m_measurement_LorentzShift {this, "MeasurementLorentzShift", m_write_xaod_key, "LorentzShift"}
private

Definition at line 79 of file StripClusterTruthDecoratorAlg.h.

◆ m_measurement_omegax

SG::WriteDecorHandleKey<xAOD::TrackMeasurementValidationContainer> ActsTrk::StripClusterTruthDecoratorAlg::m_measurement_omegax {this, "MeasurementOmegaX", m_write_xaod_key, "omegax"}
private

Definition at line 77 of file StripClusterTruthDecoratorAlg.h.

◆ m_measurement_omegay

SG::WriteDecorHandleKey<xAOD::TrackMeasurementValidationContainer> ActsTrk::StripClusterTruthDecoratorAlg::m_measurement_omegay {this, "MeasurementOmegaY", m_write_xaod_key, "omegay"}
private

Definition at line 78 of file StripClusterTruthDecoratorAlg.h.

◆ m_measurement_phi_module

SG::WriteDecorHandleKey<xAOD::TrackMeasurementValidationContainer> ActsTrk::StripClusterTruthDecoratorAlg::m_measurement_phi_module {this, "MeasurementPhiModule", m_write_xaod_key, "phi_module"}
private

Definition at line 76 of file StripClusterTruthDecoratorAlg.h.

◆ m_measurement_side

SG::WriteDecorHandleKey<xAOD::TrackMeasurementValidationContainer> ActsTrk::StripClusterTruthDecoratorAlg::m_measurement_side {this, "MeasurementSide", m_write_xaod_key, "side"}
private

Definition at line 82 of file StripClusterTruthDecoratorAlg.h.

◆ m_measurement_SiWidth

SG::WriteDecorHandleKey<xAOD::TrackMeasurementValidationContainer> ActsTrk::StripClusterTruthDecoratorAlg::m_measurement_SiWidth {this, "MeasurementSiWidth", m_write_xaod_key, "SiWidth"}
private

Definition at line 74 of file StripClusterTruthDecoratorAlg.h.

◆ m_measurement_sizePhi

SG::WriteDecorHandleKey<xAOD::TrackMeasurementValidationContainer> ActsTrk::StripClusterTruthDecoratorAlg::m_measurement_sizePhi {this, "MeasurementSizePhi", m_write_xaod_key, "sizePhi"}
private

Definition at line 72 of file StripClusterTruthDecoratorAlg.h.

◆ m_measurement_sizeZ

SG::WriteDecorHandleKey<xAOD::TrackMeasurementValidationContainer> ActsTrk::StripClusterTruthDecoratorAlg::m_measurement_sizeZ {this, "MeasurementSizeZ", m_write_xaod_key, "sizeZ"}
private

Definition at line 73 of file StripClusterTruthDecoratorAlg.h.

◆ m_measurement_truth_barcodes

SG::WriteDecorHandleKey<xAOD::TrackMeasurementValidationContainer> ActsTrk::StripClusterTruthDecoratorAlg::m_measurement_truth_barcodes {this, "MeasurementTruthBarcode", m_write_xaod_key, "truth_barcode"}
private

Definition at line 66 of file StripClusterTruthDecoratorAlg.h.

◆ m_measurement_truth_indices

SG::WriteDecorHandleKey<xAOD::TrackMeasurementValidationContainer> ActsTrk::StripClusterTruthDecoratorAlg::m_measurement_truth_indices {this, "MeasurementTruthIndices", m_write_xaod_key, "truth_index"}
private

Definition at line 65 of file StripClusterTruthDecoratorAlg.h.

◆ m_measurement_waferID

SG::WriteDecorHandleKey<xAOD::TrackMeasurementValidationContainer> ActsTrk::StripClusterTruthDecoratorAlg::m_measurement_waferID {this, "MeasurementWaferID", m_write_xaod_key, "waferID"}
private

Definition at line 69 of file StripClusterTruthDecoratorAlg.h.

◆ m_stripDetEleCollKey

SG::ReadCondHandleKey<InDetDD::SiDetectorElementCollection> ActsTrk::StripClusterTruthDecoratorAlg::m_stripDetEleCollKey {this, "StripDetectorElements", "ITkStripDetectorElementCollection"}
private

Definition at line 57 of file StripClusterTruthDecoratorAlg.h.

◆ m_stripHelper

const SCT_ID* ActsTrk::StripClusterTruthDecoratorAlg::m_stripHelper {nullptr}
private

Definition at line 87 of file StripClusterTruthDecoratorAlg.h.

◆ m_trackMeasurement_link

SG::WriteDecorHandleKey< xAOD::StripClusterContainer > ActsTrk::StripClusterTruthDecoratorAlg::m_trackMeasurement_link {this, "MeasurementLink", m_clustercontainer_key, "validationMeasurementLink"}
private

Definition at line 63 of file StripClusterTruthDecoratorAlg.h.

◆ m_trackParticlesKey

SG::ReadHandleKeyArray< xAOD::TrackParticleContainer > ActsTrk::StripClusterTruthDecoratorAlg::m_trackParticlesKey {this, "TrackParticles", {}, "Input xAOD::TrackParticles"}
private

Definition at line 59 of file StripClusterTruthDecoratorAlg.h.

◆ m_useTruthInfo

Gaudi::Property<bool> ActsTrk::StripClusterTruthDecoratorAlg::m_useTruthInfo {this, "UseTruthInfo", true}
private

Definition at line 84 of file StripClusterTruthDecoratorAlg.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.

◆ m_write_xaod_key

SG::WriteHandleKey<xAOD::TrackMeasurementValidationContainer> ActsTrk::StripClusterTruthDecoratorAlg::m_write_xaod_key {this,"MeasurementContainer","", "Output Strip Validation Clusters"}
private

Definition at line 61 of file StripClusterTruthDecoratorAlg.h.


The documentation for this class was generated from the following files:
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
xAOD::UncalibratedMeasurement_v1::identifier
DetectorIdentType identifier() const
Returns the full Identifier of the measurement.
ActsTrk::StripClusterTruthDecoratorAlg::m_trackMeasurement_link
SG::WriteDecorHandleKey< xAOD::StripClusterContainer > m_trackMeasurement_link
Definition: StripClusterTruthDecoratorAlg.h:63
ActsTrk::StripClusterTruthDecoratorAlg::m_measurement_centroid_xeta
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_centroid_xeta
Definition: StripClusterTruthDecoratorAlg.h:81
xAOD::UncalibratedMeasurement_v1::identifierHash
DetectorIDHashType identifierHash() const
Returns the IdentifierHash of the measurement (corresponds to the detector element IdentifierHash)
xAOD::DetectorIdentType
long unsigned int DetectorIdentType
Definition: MeasurementDefs.h:44
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
ActsTrk::StripClusterTruthDecoratorAlg::m_stripHelper
const SCT_ID * m_stripHelper
Definition: StripClusterTruthDecoratorAlg.h:87
InDetDD::SiDetectorElementCollection
Definition: SiDetectorElementCollection.h:27
SG::ReadCondHandle
Definition: ReadCondHandle.h:44
SG::ReadHandle::cptr
const_pointer_type cptr()
Dereference the pointer.
ActsTrk::StripClusterTruthDecoratorAlg::m_measurement_layer
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_layer
Definition: StripClusterTruthDecoratorAlg.h:71
xAOD::StripCluster_v1::channelsInPhi
int channelsInPhi() const
Returns the dimensions of the cluster in numbers of channels in phi (x), respectively.
ActsTrk::StripClusterTruthDecoratorAlg::m_measurement_SiWidth
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_SiWidth
Definition: StripClusterTruthDecoratorAlg.h:74
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:67
ActsTrk::StripClusterTruthDecoratorAlg::m_measurement_sizeZ
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_sizeZ
Definition: StripClusterTruthDecoratorAlg.h:73
ActsTrk::StripClusterTruthDecoratorAlg::m_measurement_centroid_xphi
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_centroid_xphi
Definition: StripClusterTruthDecoratorAlg.h:80
AthCommonDataStore::renounce
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)
Definition: AthCommonDataStore.h:380
ActsTrk::StripClusterTruthDecoratorAlg::m_write_xaod_key
SG::WriteHandleKey< xAOD::TrackMeasurementValidationContainer > m_write_xaod_key
Definition: StripClusterTruthDecoratorAlg.h:61
ActsTrk::StripClusterTruthDecoratorAlg::m_measurement_truth_barcodes
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_truth_barcodes
Definition: StripClusterTruthDecoratorAlg.h:66
SG::ReadCondHandle::isValid
bool isValid()
Definition: ReadCondHandle.h:210
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
ParticleTest.tp
tp
Definition: ParticleTest.py:25
Identifier::get_compact
value_type get_compact() const
Get the compact id.
ActsTrk::StripClusterTruthDecoratorAlg::m_measurement_LorentzShift
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_LorentzShift
Definition: StripClusterTruthDecoratorAlg.h:79
ActsTrk::StripClusterTruthDecoratorAlg::m_measurement_truth_indices
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_truth_indices
Definition: StripClusterTruthDecoratorAlg.h:65
SG::ConstAccessor
Helper class to provide constant type-safe access to aux data.
Definition: ConstAccessor.h:55
SCT_ID::barrel_ec
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0)
Definition: SCT_ID.h:728
xAOD::TrackMeasurementValidation_v1::setRdoIdentifierList
void setRdoIdentifierList(const std::vector< uint64_t > &rdoIdentifierList)
Sets the list of RDO identifiers.
SCT_ID::phi_module
int phi_module(const Identifier &id) const
Definition: SCT_ID.h:740
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
SG::ReadHandleKey< xAOD::TrackParticleContainer >
ActsTrk::StripClusterTruthDecoratorAlg::m_stripDetEleCollKey
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_stripDetEleCollKey
Definition: StripClusterTruthDecoratorAlg.h:57
ActsTrk::StripClusterTruthDecoratorAlg::m_measurement_omegax
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_omegax
Definition: StripClusterTruthDecoratorAlg.h:77
ActsTrk::MeasurementToTruthParticleAssociation
Definition: MeasurementToTruthParticleAssociation.h:18
ActsTrk::StripClusterTruthDecoratorAlg::m_measurement_side
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_side
Definition: StripClusterTruthDecoratorAlg.h:82
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
xAOD::StripCluster_v1::rdoList
const std::vector< Identifier > rdoList() const
Returns the list of identifiers of the channels building the cluster.
Definition: StripCluster_v1.cxx:37
ActsTrk::StripClusterTruthDecoratorAlg::m_associationMap_key
SG::ReadHandleKey< MeasurementToTruthParticleAssociation > m_associationMap_key
Definition: StripClusterTruthDecoratorAlg.h:56
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::detStore
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:95
ActsTrk::StripClusterTruthDecoratorAlg::labelMeasurementToKeep
StatusCode labelMeasurementToKeep(const EventContext &ctx, const xAOD::StripClusterContainer &clusters, std::vector< bool > &labels) const
Definition: StripClusterTruthDecoratorAlg.cxx:211
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:74
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:29
SG::makeHandle
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
Definition: ReadCondHandle.h:274
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
xAOD::TrackMeasurementValidation_v1
Class describing a TrackMeasurementValidation.
Definition: TrackMeasurementValidation_v1.h:27
AthCommonReentrantAlgorithm::extraOutputDeps
virtual const DataObjIDColl & extraOutputDeps() const override
Return the list of extra output dependencies.
Definition: AthCommonReentrantAlgorithm.cxx:89
beamspotnt.labels
list labels
Definition: bin/beamspotnt.py:1446
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:209
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
ActsTrk::StripClusterTruthDecoratorAlg::m_measurement_bec
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_bec
Definition: StripClusterTruthDecoratorAlg.h:70
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
xAOD::TrackMeasurementValidation_v1::setLocalPosition
void setLocalPosition(float localX, float localY)
Sets the local position.
lumiFormat.i
int i
Definition: lumiFormat.py:85
ActsTrk::StripClusterTruthDecoratorAlg::m_measurement_sizePhi
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_sizePhi
Definition: StripClusterTruthDecoratorAlg.h:72
ActsTrk::StripClusterTruthDecoratorAlg::m_measurement_waferID
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_waferID
Definition: StripClusterTruthDecoratorAlg.h:69
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
SG::WriteHandle::ptr
pointer_type ptr()
Dereference the pointer.
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
Definition: AthCommonDataStore.h:145
SG::WriteDecorHandle
Handle class for adding a decoration to an object.
Definition: StoreGate/StoreGate/WriteDecorHandle.h:100
AthCommonReentrantAlgorithm::sysExecute
virtual StatusCode sysExecute(const EventContext &ctx) override
Execute an algorithm.
Definition: AthCommonReentrantAlgorithm.cxx:76
ActsTrk::StripClusterTruthDecoratorAlg::m_measurement_omegay
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_omegay
Definition: StripClusterTruthDecoratorAlg.h:78
ActsTrk::StripClusterTruthDecoratorAlg::m_measurement_detectorElementID
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_detectorElementID
Definition: StripClusterTruthDecoratorAlg.h:68
HepMC::uniqueID
int uniqueID(const T &p)
Definition: MagicNumbers.h:116
xAOD::StripCluster_v1
Definition: StripCluster_v1.h:17
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
SG::VarHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:103
xAOD::UncalibratedMeasurement_v1::localCovariance
ConstMatrixMap< N > localCovariance() const
Returns the local covariance of the measurement.
xAOD::TrackMeasurementValidation_v1::setIdentifier
void setIdentifier(uint64_t identifier)
Sets the identifier.
SG::AuxElement::index
size_t index() const
Return the index of this element within its container.
DataVector::back
const T * back() const
Access the last element in the collection as an rvalue.
DataVector
Derived DataVector<T>.
Definition: DataVector.h:794
xAOD::UncalibratedMeasurement_v1::localPosition
ConstVectorMap< N > localPosition() const
Returns the local position of the measurement.
ActsTrk::StripClusterTruthDecoratorAlg::m_measurement_phi_module
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_phi_module
Definition: StripClusterTruthDecoratorAlg.h:76
SG::ReadHandle::isValid
virtual bool isValid() override final
Can the handle be successfully dereferenced?
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
ActsTrk::StripClusterTruthDecoratorAlg::m_keepOnlyOnTrackMeasurements
Gaudi::Property< bool > m_keepOnlyOnTrackMeasurements
Definition: StripClusterTruthDecoratorAlg.h:85
xAOD::TrackMeasurementValidation_v1::setGlobalPosition
void setGlobalPosition(float globalX, float globalY, float globalZ)
Sets the global position.
Definition: TrackMeasurementValidation_v1.cxx:50
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
xAOD::DetectorIDHashType
unsigned int DetectorIDHashType
@ detector ID element hash
Definition: MeasurementDefs.h:43
xAOD::TrackMeasurementValidation_v1::setLocalPositionError
void setLocalPositionError(float localXError, float localYError, float localXYCorrelation)
Sets the local position error.
Definition: TrackMeasurementValidation_v1.cxx:37
SCT_ID::layer_disk
int layer_disk(const Identifier &id) const
Definition: SCT_ID.h:734
xAOD::TrackMeasurementValidation_v1::identifier
uint64_t identifier() const
InDetDD::SiDetectorElement
Definition: SiDetectorElement.h:109
DataVector::push_back
value_type push_back(value_type pElem)
Add an element to the end of the collection.
SG::CondHandleKey::initialize
StatusCode initialize(bool used=true)
SG::ReadHandle::ptr
const_pointer_type ptr()
Dereference the pointer.
xAOD::StripClusterContainer
StripClusterContainer_v1 StripClusterContainer
Define the version of the strip cluster container.
Definition: StripClusterContainer.h:14
ActsTrk::StripClusterTruthDecoratorAlg::m_trackParticlesKey
SG::ReadHandleKeyArray< xAOD::TrackParticleContainer > m_trackParticlesKey
Definition: StripClusterTruthDecoratorAlg.h:59
SG::WriteHandle
Definition: StoreGate/StoreGate/WriteHandle.h:73
a
TList * a
Definition: liststreamerinfos.cxx:10
h
SG::WriteHandle::record
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
SCT_ID::eta_module
int eta_module(const Identifier &id) const
Definition: SCT_ID.h:746
RunTileMonitoring.clusters
clusters
Definition: RunTileMonitoring.py:133
xAOD::StripCluster_v1::globalPosition
ConstVectorMap< 3 > globalPosition() const
Returns the global position of the strip cluster.
Definition: StripCluster_v1.cxx:15
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:629
AthCommonReentrantAlgorithm< Gaudi::Algorithm >::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthCommonReentrantAlgorithm.cxx:107
SCT_ID::side
int side(const Identifier &id) const
Definition: SCT_ID.h:752
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:801
xAOD::track
@ track
Definition: TrackingPrimitives.h:513
xAOD::TrackParticle_v1
Class describing a TrackParticle.
Definition: TrackParticle_v1.h:43
ActsTrk::StripClusterTruthDecoratorAlg::m_clustercontainer_key
SG::ReadHandleKey< xAOD::StripClusterContainer > m_clustercontainer_key
Definition: StripClusterTruthDecoratorAlg.h:55
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
DataVector::at
const T * at(size_type n) const
Access an element, as an rvalue.
SCT_ID::wafer_id
Identifier wafer_id(int barrel_ec, int layer_disk, int phi_module, int eta_module, int side) const
For a single side of module.
Definition: SCT_ID.h:464
AthCommonReentrantAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Definition: AthCommonReentrantAlgorithm.h:114
DataVector::size
size_type size() const noexcept
Returns the number of elements in the collection.
InDetDD::SiDetectorElementCollection::getDetectorElement
const SiDetectorElement * getDetectorElement(const IdentifierHash &hash) const
Definition: SiDetectorElementCollection.cxx:9
ActsTrk::StripClusterTruthDecoratorAlg::m_measurement_eta_module
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_eta_module
Definition: StripClusterTruthDecoratorAlg.h:75
fitman.k
k
Definition: fitman.py:528
ServiceHandle< ICondSvc >
SG::ReadCondHandle::cptr
const_pointer_type cptr()
Definition: ReadCondHandle.h:71
ActsTrk::StripClusterTruthDecoratorAlg::m_useTruthInfo
Gaudi::Property< bool > m_useTruthInfo
Definition: StripClusterTruthDecoratorAlg.h:84
Identifier
Definition: IdentifierFieldParser.cxx:14