Loading [MathJax]/jax/output/SVG/config.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
ActsTrk::PixelClusterTruthDecoratorAlg Class Reference

#include <PixelClusterTruthDecoratorAlg.h>

Inheritance diagram for ActsTrk::PixelClusterTruthDecoratorAlg:
Collaboration diagram for ActsTrk::PixelClusterTruthDecoratorAlg:

Public Member Functions

 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 > &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

Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 

Private Attributes

ToolHandle< ISiLorentzAngleToolm_lorentzAngleTool {this, "LorentzAngleTool", ""}
 
SG::ReadHandleKey< xAOD::PixelClusterContainerm_clustercontainer_key {this,"ClusterContainer", "","Input Pixel Cluster container"}
 
SG::ReadHandleKey< ActsTrk::MeasurementToTruthParticleAssociationm_associationMap_key {this,"AssociationMapOut","", "Association map between measurements and truth particles"}
 
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollectionm_pixelDetEleCollKey {this, "PixelDetEleCollKey", "ITkPixelDetectorElementCollection"}
 
SG::WriteHandleKey< xAOD::TrackMeasurementValidationContainerm_write_xaod_key {this,"MeasurementContainer","", "Output Pixel Validation Clusters"}
 
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainerm_measurement_truth_indices {this, "MeasurementTruthIndices", "truth_index"}
 
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainerm_measurement_truth_barcodes {this, "MeasurementTruthBarcode", "truth_barcode"}
 
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainerm_measurement_detectorElementID {this, "MeasurementDetectorElementID", "detectorElementID"}
 
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainerm_measurement_waferID {this, "MeasurementWaferID", "waferID"}
 
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainerm_measurement_bec {this, "MeasurementBEC", "bec"}
 
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainerm_measurement_layer {this, "MeasurementLayer", "layer"}
 
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainerm_measurement_sizePhi {this, "MeasurementSizePhi", "sizePhi"}
 
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainerm_measurement_sizeZ {this, "MeasurementSizeZ", "sizeZ"}
 
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainerm_measurement_SiWidth {this, "MeasurementSiWidth", "SiWidth"}
 
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainerm_measurement_eta_module {this, "MeasurementEtaModule", "eta_module"}
 
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainerm_measurement_phi_module {this, "MeasurementPhiModule", "phi_module"}
 
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainerm_measurement_omegax {this, "MeasurementOmegaX", "omegax"}
 
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainerm_measurement_omegay {this, "MeasurementOmegaY", "omegay"}
 
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainerm_measurement_LorentzShift {this, "MeasurementLorentzShift", "LorentzShift"}
 
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainerm_measurement_centroid_xphi {this, "MeasurementCentroidXphi", "centroid_xphi"}
 
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainerm_measurement_centroid_xeta {this, "MeasurementCentroidXeta", "centroid_xeta"}
 
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainerm_measurement_side {this, "MeasurementSide", "side"}
 
Gaudi::Property< bool > m_useTruthInfo {this, "UseTruthInfo", true}
 
const PixelIDm_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
 

Detailed Description

Definition at line 37 of file PixelClusterTruthDecoratorAlg.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

◆ PixelClusterTruthDecoratorAlg()

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

Definition at line 12 of file PixelClusterTruthDecoratorAlg.cxx.

13  :
14  AthReentrantAlgorithm(name, pSvcLocator)
15  {}

◆ ~PixelClusterTruthDecoratorAlg()

virtual ActsTrk::PixelClusterTruthDecoratorAlg::~PixelClusterTruthDecoratorAlg ( )
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 > &  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 > &  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 > &  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 > &  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 > &  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::PixelClusterTruthDecoratorAlg::execute ( const EventContext &  ctx) const
overridevirtual

Definition at line 73 of file PixelClusterTruthDecoratorAlg.cxx.

73  {
74 
75  //Mandatory. Require if the algorithm is scheduled.
79 
81  ATH_CHECK(pixelDetEleHandle.isValid());
82  const InDetDD::SiDetectorElementCollection* pixelDetEle = pixelDetEleHandle.cptr();
83 
84  // Get the truth association map
85  const MeasurementToTruthParticleAssociation* measToTruth(nullptr);
86  if (m_useTruthInfo) {
88  ATH_CHECK(measToTruthHandle.isValid());
89  measToTruth = measToTruthHandle.cptr();
90  }
91 
92  // Setup outputs
93  // Create the xAOD container and its auxiliary store:
95  ATH_CHECK(xaod.record(std::make_unique<xAOD::TrackMeasurementValidationContainer>(),
96  std::make_unique<xAOD::TrackMeasurementValidationAuxContainer>()));
97 
98  // Decorations
114 
115 
116  // Create output collection
117  xAOD::TrackMeasurementValidationContainer *measurements = xaod.ptr();
118  std::vector<xAOD::TrackMeasurementValidation*> toAdd(clusters->size(), nullptr);
119  for (std::size_t i(0); i<toAdd.size(); ++i) {
121  }
122  measurements->insert(measurements->end(), toAdd.begin(), toAdd.end());
123 
124 
125  // loop over collection and convert to xAOD::TrackMeasurementValidation
126  for (std::size_t i(0); i<clusters->size(); ++i) {
127  const xAOD::PixelCluster* cluster = clusters->at(i);
128  xAOD::TrackMeasurementValidation* measurement = measurements->at(i);
129 
130  xAOD::DetectorIdentType clusterId = cluster->identifier();
131  xAOD::DetectorIDHashType hashId = cluster->identifierHash();
132 
133  const InDetDD::SiDetectorElement *element = pixelDetEle->getDetectorElement(hashId);
134  if ( not element ) {
135  ATH_MSG_FATAL( "Invalid pixel detector element for hash " << hashId );
136  return StatusCode::FAILURE;
137  }
138 
139  const std::vector<Identifier> rdoList = cluster->rdoList();
140  std::vector< std::uint64_t > rdoIdentifierList;
141  rdoIdentifierList.reserve(rdoList.size());
142  int rowmin = std::numeric_limits<int>::max();
143  int rowmax = std::numeric_limits<int>::min();
144  int colmin = std::numeric_limits<int>::max();
145  int colmax = std::numeric_limits<int>::min();
146  for( const Identifier& hitIdentifier : rdoList ){
147  rdoIdentifierList.push_back( hitIdentifier.get_compact() );
148  //May want to addinformation about the individual hits here
149  int row = m_PixelHelper->phi_index(hitIdentifier);
150  int col = m_PixelHelper->eta_index(hitIdentifier);
151  rowmin = std::min(rowmin, row);
152  rowmax = std::max(rowmax, row);
153  colmin = std::min(colmin, col);
154  colmax = std::max(colmax, col);
155  }
156 
157  // compute centroid
158  const InDetDD::PixelModuleDesign* design = dynamic_cast<const InDetDD::PixelModuleDesign*>(&element->design());
159  if (not design) {
160  ATH_MSG_ERROR("Cannot retrieve detector design");
161  return StatusCode::FAILURE;
162  }
163  InDetDD::SiLocalPosition pos1 = design->positionFromColumnRow(colmin,rowmin);
164  InDetDD::SiLocalPosition pos2 = design->positionFromColumnRow(colmax,rowmin);
165  InDetDD::SiLocalPosition pos3 = design->positionFromColumnRow(colmin,rowmax);
166  InDetDD::SiLocalPosition pos4 = design->positionFromColumnRow(colmax,rowmax);
167  InDetDD::SiLocalPosition centroid = 0.25 * (pos1 + pos2 + pos3 + pos4);
168 
169  //Set Identifier
170  measurement->setIdentifier( clusterId );
171  measurement->setRdoIdentifierList(std::move(rdoIdentifierList));
172 
173  //Set Global Position
174  auto gpos = cluster->globalPosition();
175  measurement->setGlobalPosition(gpos.x(), gpos.y(), gpos.z());
176 
177  // Set local position and error matrix
178  auto locpos = cluster->localPosition<2>();
179  measurement->setLocalPosition(locpos[0], locpos[1]);
180 
181  auto localCov = cluster->localCovariance<2>();
182  measurement->setLocalPositionError( localCov(0,0), localCov(1,1), localCov(0,1) );
183 
184  const Identifier waferId = m_PixelHelper->wafer_id(hashId);
185  decor_detectorElementID(*measurement) = hashId;
186  decor_waferID(*measurement) = waferId.get_compact();
187  decor_bec(*measurement) = m_PixelHelper->barrel_ec(waferId);
188  decor_layer(*measurement) = m_PixelHelper->layer_disk(waferId);
189  decor_sizePhi(*measurement) = cluster->channelsInPhi();
190  decor_sizeZ(*measurement) = cluster->channelsInEta();
191  decor_SiWidth(*measurement) = cluster->channelsInPhi();
192  decor_eta_module(*measurement) = m_PixelHelper->eta_module(waferId);
193  decor_phi_module(*measurement) = m_PixelHelper->phi_module(waferId);
194  decor_omegax(*measurement) = cluster->omegaX();
195  decor_omegay(*measurement) = cluster->omegaY();
196  decor_LorentzShift(*measurement) = static_cast<float>( m_lorentzAngleTool->getLorentzShift(cluster->identifierHash(), ctx) );
197  decor_centroid_xphi(*measurement) = centroid.xPhi();
198  decor_centroid_xeta(*measurement) = centroid.xEta();
199  decor_side(*measurement) = 0;
200  }
201 
202 
203  // handle the truth
204  if (m_useTruthInfo) {
207 
208  for (std::size_t i(0); i<clusters->size(); ++i) {
209  const xAOD::PixelCluster* cluster = clusters->at(i);
210  xAOD::TrackMeasurementValidation* measurement = measurements->at(i);
211 
212  // Use the MultiTruth Collection
213  // to get a list of all true particle contributing to the cluster
214  if (cluster->index() >= measToTruth->size()) {
215  ATH_MSG_ERROR( "PRD index "<< cluster->index() << " not present in the measurement to truth vector with size " << measToTruth->size() );
216  return StatusCode::FAILURE;
217  }
218 
219  auto tps = measToTruth->at(cluster->index());
220 
221  std::vector<unsigned int> tp_indices;
222  std::vector<unsigned int> tp_barcodes;
223  for (const auto& tp : tps) {
224  tp_indices.push_back(tp->index());
225  tp_barcodes.push_back(HepMC::barcode(tp));
226  }
227 
228  // decorate
229  decor_truth_indices(*measurement) = std::move(tp_indices);
230  decor_truth_barcode(*measurement) = std::move(tp_barcodes);
231 
232  } // loop on clusters/measurements
233  } // if do truth
234 
235  ATH_MSG_DEBUG( " recorded PixelPrepData objects: size " << measurements->size() );
236  return StatusCode::SUCCESS;
237 }

◆ 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::PixelClusterTruthDecoratorAlg::initialize ( )
overridevirtual

Definition at line 17 of file PixelClusterTruthDecoratorAlg.cxx.

17  {
18  ATH_MSG_DEBUG("Initialize " << name() << " ...");
19 
20  // Read keys
24 
25  // Write keys
26  ATH_CHECK(m_write_xaod_key.initialize());
27 
28  // Decorators
31 
47 
50 
52  ATH_CHECK(m_measurement_waferID.initialize());
53  ATH_CHECK(m_measurement_bec.initialize());
54  ATH_CHECK(m_measurement_layer.initialize());
55  ATH_CHECK(m_measurement_sizePhi.initialize());
56  ATH_CHECK(m_measurement_sizeZ.initialize());
57  ATH_CHECK(m_measurement_SiWidth.initialize());
58  ATH_CHECK(m_measurement_eta_module.initialize());
59  ATH_CHECK(m_measurement_phi_module.initialize());
60  ATH_CHECK(m_measurement_omegax.initialize());
61  ATH_CHECK(m_measurement_omegay.initialize());
65  ATH_CHECK(m_measurement_side.initialize());
66 
67  ATH_CHECK( m_lorentzAngleTool.retrieve() );
68  ATH_CHECK( detStore()->retrieve(m_PixelHelper, "PixelID") );
69 
70  return StatusCode::SUCCESS;
71  }

◆ 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 }

◆ 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<ActsTrk::MeasurementToTruthParticleAssociation> ActsTrk::PixelClusterTruthDecoratorAlg::m_associationMap_key {this,"AssociationMapOut","", "Association map between measurements and truth particles"}
private

Definition at line 51 of file PixelClusterTruthDecoratorAlg.h.

◆ m_clustercontainer_key

SG::ReadHandleKey<xAOD::PixelClusterContainer> ActsTrk::PixelClusterTruthDecoratorAlg::m_clustercontainer_key {this,"ClusterContainer", "","Input Pixel Cluster container"}
private

Definition at line 50 of file PixelClusterTruthDecoratorAlg.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_lorentzAngleTool

ToolHandle<ISiLorentzAngleTool> ActsTrk::PixelClusterTruthDecoratorAlg::m_lorentzAngleTool {this, "LorentzAngleTool", ""}
private

Definition at line 48 of file PixelClusterTruthDecoratorAlg.h.

◆ m_measurement_bec

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

Definition at line 61 of file PixelClusterTruthDecoratorAlg.h.

◆ m_measurement_centroid_xeta

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

Definition at line 72 of file PixelClusterTruthDecoratorAlg.h.

◆ m_measurement_centroid_xphi

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

Definition at line 71 of file PixelClusterTruthDecoratorAlg.h.

◆ m_measurement_detectorElementID

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

Definition at line 59 of file PixelClusterTruthDecoratorAlg.h.

◆ m_measurement_eta_module

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

Definition at line 66 of file PixelClusterTruthDecoratorAlg.h.

◆ m_measurement_layer

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

Definition at line 62 of file PixelClusterTruthDecoratorAlg.h.

◆ m_measurement_LorentzShift

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

Definition at line 70 of file PixelClusterTruthDecoratorAlg.h.

◆ m_measurement_omegax

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

Definition at line 68 of file PixelClusterTruthDecoratorAlg.h.

◆ m_measurement_omegay

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

Definition at line 69 of file PixelClusterTruthDecoratorAlg.h.

◆ m_measurement_phi_module

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

Definition at line 67 of file PixelClusterTruthDecoratorAlg.h.

◆ m_measurement_side

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

Definition at line 73 of file PixelClusterTruthDecoratorAlg.h.

◆ m_measurement_SiWidth

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

Definition at line 65 of file PixelClusterTruthDecoratorAlg.h.

◆ m_measurement_sizePhi

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

Definition at line 63 of file PixelClusterTruthDecoratorAlg.h.

◆ m_measurement_sizeZ

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

Definition at line 64 of file PixelClusterTruthDecoratorAlg.h.

◆ m_measurement_truth_barcodes

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

Definition at line 57 of file PixelClusterTruthDecoratorAlg.h.

◆ m_measurement_truth_indices

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

Definition at line 56 of file PixelClusterTruthDecoratorAlg.h.

◆ m_measurement_waferID

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

Definition at line 60 of file PixelClusterTruthDecoratorAlg.h.

◆ m_pixelDetEleCollKey

SG::ReadCondHandleKey<InDetDD::SiDetectorElementCollection> ActsTrk::PixelClusterTruthDecoratorAlg::m_pixelDetEleCollKey {this, "PixelDetEleCollKey", "ITkPixelDetectorElementCollection"}
private

Definition at line 52 of file PixelClusterTruthDecoratorAlg.h.

◆ m_PixelHelper

const PixelID* ActsTrk::PixelClusterTruthDecoratorAlg::m_PixelHelper {nullptr}
private

Definition at line 76 of file PixelClusterTruthDecoratorAlg.h.

◆ m_useTruthInfo

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

Definition at line 75 of file PixelClusterTruthDecoratorAlg.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::PixelClusterTruthDecoratorAlg::m_write_xaod_key {this,"MeasurementContainer","", "Output Pixel Validation Clusters"}
private

Definition at line 53 of file PixelClusterTruthDecoratorAlg.h.


The documentation for this class was generated from the following files:
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
query_example.row
row
Definition: query_example.py:24
ActsTrk::PixelClusterTruthDecoratorAlg::m_PixelHelper
const PixelID * m_PixelHelper
Definition: PixelClusterTruthDecoratorAlg.h:76
xAOD::DetectorIdentType
long unsigned int DetectorIdentType
Definition: MeasurementDefs.h:44
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
PixelID::phi_index
int phi_index(const Identifier &id) const
Definition: PixelID.h:658
InDetDD::SiDetectorElementCollection
Definition: SiDetectorElementCollection.h:30
SG::ReadCondHandle
Definition: ReadCondHandle.h:44
InDetDD::PixelModuleDesign
Definition: PixelModuleDesign.h:48
SG::ReadHandle::cptr
const_pointer_type cptr()
Dereference the pointer.
ActsTrk::PixelClusterTruthDecoratorAlg::m_measurement_centroid_xphi
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_centroid_xphi
Definition: PixelClusterTruthDecoratorAlg.h:71
PixelID::barrel_ec
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0)
Definition: PixelID.h:619
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
xAOD::TrackMeasurementValidation
TrackMeasurementValidation_v1 TrackMeasurementValidation
Reference the current persistent version:
Definition: TrackMeasurementValidation.h:13
max
constexpr double max()
Definition: ap_fixedTest.cxx:33
ActsTrk::PixelClusterTruthDecoratorAlg::m_measurement_centroid_xeta
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_centroid_xeta
Definition: PixelClusterTruthDecoratorAlg.h:72
min
constexpr double min()
Definition: ap_fixedTest.cxx:26
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::PixelClusterTruthDecoratorAlg::m_measurement_phi_module
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_phi_module
Definition: PixelClusterTruthDecoratorAlg.h:67
SG::ReadCondHandle::isValid
bool isValid()
Definition: ReadCondHandle.h:206
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::PixelClusterTruthDecoratorAlg::m_measurement_layer
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_layer
Definition: PixelClusterTruthDecoratorAlg.h:62
ActsTrk::PixelClusterTruthDecoratorAlg::m_clustercontainer_key
SG::ReadHandleKey< xAOD::PixelClusterContainer > m_clustercontainer_key
Definition: PixelClusterTruthDecoratorAlg.h:50
ActsTrk::PixelClusterTruthDecoratorAlg::m_measurement_bec
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_bec
Definition: PixelClusterTruthDecoratorAlg.h:61
ActsTrk::PixelClusterTruthDecoratorAlg::m_measurement_LorentzShift
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_LorentzShift
Definition: PixelClusterTruthDecoratorAlg.h:70
xAOD::TrackMeasurementValidation_v1::setRdoIdentifierList
void setRdoIdentifierList(const std::vector< uint64_t > &rdoIdentifierList)
Sets the list of RDO identifiers.
ActsTrk::PixelClusterTruthDecoratorAlg::m_measurement_sizeZ
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_sizeZ
Definition: PixelClusterTruthDecoratorAlg.h:64
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
ActsTrk::PixelClusterTruthDecoratorAlg::m_measurement_eta_module
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_eta_module
Definition: PixelClusterTruthDecoratorAlg.h:66
PixelID::wafer_id
Identifier wafer_id(int barrel_ec, int layer_disk, int phi_module, int eta_module) const
For a single crystal.
Definition: PixelID.h:364
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
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
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
InDetDD::SiLocalPosition
Definition: SiLocalPosition.h:31
SG::makeHandle
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
Definition: ReadCondHandle.h:270
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
ActsTrk::PixelClusterTruthDecoratorAlg::m_associationMap_key
SG::ReadHandleKey< ActsTrk::MeasurementToTruthParticleAssociation > m_associationMap_key
Definition: PixelClusterTruthDecoratorAlg.h:51
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ActsTrk::PixelClusterTruthDecoratorAlg::m_pixelDetEleCollKey
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_pixelDetEleCollKey
Definition: PixelClusterTruthDecoratorAlg.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
ActsTrk::PixelClusterTruthDecoratorAlg::m_measurement_truth_barcodes
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_truth_barcodes
Definition: PixelClusterTruthDecoratorAlg.h:57
columnar::ContainerId::cluster
@ cluster
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::PixelClusterTruthDecoratorAlg::m_measurement_omegay
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_omegay
Definition: PixelClusterTruthDecoratorAlg.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
HepMC::barcode
int barcode(const T *p)
Definition: Barcode.h:16
SG::WriteDecorHandle
Handle class for adding a decoration to an object.
Definition: StoreGate/StoreGate/WriteDecorHandle.h:100
ActsTrk::PixelClusterTruthDecoratorAlg::m_measurement_side
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_side
Definition: PixelClusterTruthDecoratorAlg.h:73
AthCommonReentrantAlgorithm::sysExecute
virtual StatusCode sysExecute(const EventContext &ctx) override
Execute an algorithm.
Definition: AthCommonReentrantAlgorithm.cxx:76
ActsTrk::PixelClusterTruthDecoratorAlg::m_measurement_truth_indices
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_truth_indices
Definition: PixelClusterTruthDecoratorAlg.h:56
PixelID::eta_index
int eta_index(const Identifier &id) const
Definition: PixelID.h:664
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
DataVector::insert
iterator insert(iterator position, value_type pElem)
Add a new element to the collection.
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::TrackMeasurementValidation_v1::setIdentifier
void setIdentifier(uint64_t identifier)
Sets the identifier.
ActsTrk::PixelClusterTruthDecoratorAlg::m_measurement_waferID
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_waferID
Definition: PixelClusterTruthDecoratorAlg.h:60
ActsTrk::PixelClusterTruthDecoratorAlg::m_useTruthInfo
Gaudi::Property< bool > m_useTruthInfo
Definition: PixelClusterTruthDecoratorAlg.h:75
DataVector
Derived DataVector<T>.
Definition: DataVector.h:794
DeMoUpdate.toAdd
bool toAdd
Definition: DeMoUpdate.py:1304
SG::ReadHandle::isValid
virtual bool isValid() override final
Can the handle be successfully dereferenced?
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
ActsTrk::PixelClusterTruthDecoratorAlg::m_lorentzAngleTool
ToolHandle< ISiLorentzAngleTool > m_lorentzAngleTool
Definition: PixelClusterTruthDecoratorAlg.h:48
ActsTrk::PixelClusterTruthDecoratorAlg::m_write_xaod_key
SG::WriteHandleKey< xAOD::TrackMeasurementValidationContainer > m_write_xaod_key
Definition: PixelClusterTruthDecoratorAlg.h:53
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
PixelID::layer_disk
int layer_disk(const Identifier &id) const
Definition: PixelID.h:626
PixelID::eta_module
int eta_module(const Identifier &id) const
Definition: PixelID.h:651
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
xAOD::PixelClusterContainer
PixelClusterContainer_v1 PixelClusterContainer
Define the version of the pixel cluster container.
Definition: Event/xAOD/xAODInDetMeasurement/xAODInDetMeasurement/PixelClusterContainer.h:14
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
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
InDetDD::SiDetectorElement
Definition: SiDetectorElement.h:109
SG::CondHandleKey::initialize
StatusCode initialize(bool used=true)
query_example.col
col
Definition: query_example.py:7
ActsTrk::PixelClusterTruthDecoratorAlg::m_measurement_sizePhi
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_sizePhi
Definition: PixelClusterTruthDecoratorAlg.h:63
DataVector::end
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
SG::WriteHandle
Definition: StoreGate/StoreGate/WriteHandle.h:76
ActsTrk::PixelClusterTruthDecoratorAlg::m_measurement_detectorElementID
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_detectorElementID
Definition: PixelClusterTruthDecoratorAlg.h:59
a
TList * a
Definition: liststreamerinfos.cxx:10
xAOD::PixelCluster_v1
Definition: PixelCluster_v1.h:17
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
RunTileMonitoring.clusters
clusters
Definition: RunTileMonitoring.py:133
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:623
AthCommonReentrantAlgorithm< Gaudi::Algorithm >::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthCommonReentrantAlgorithm.cxx:107
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
DataVector::at
const T * at(size_type n) const
Access an element, as an rvalue.
ActsTrk::PixelClusterTruthDecoratorAlg::m_measurement_omegax
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_omegax
Definition: PixelClusterTruthDecoratorAlg.h:68
PixelID::phi_module
int phi_module(const Identifier &id) const
Definition: PixelID.h:644
AthCommonReentrantAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Definition: AthCommonReentrantAlgorithm.h:114
ActsTrk::PixelClusterTruthDecoratorAlg::m_measurement_SiWidth
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurement_SiWidth
Definition: PixelClusterTruthDecoratorAlg.h:65
DataVector::size
size_type size() const noexcept
Returns the number of elements in the collection.
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
InDetDD::SiDetectorElementCollection::getDetectorElement
const SiDetectorElement * getDetectorElement(const IdentifierHash &hash) const
Definition: SiDetectorElementCollection.cxx:15
NSWL1::centroid
Vertex centroid(const Polygon &p)
Definition: GeoUtils.cxx:59
fitman.k
k
Definition: fitman.py:528
ServiceHandle< ICondSvc >
SG::ReadCondHandle::cptr
const_pointer_type cptr()
Definition: ReadCondHandle.h:67
Identifier
Definition: IdentifierFieldParser.cxx:14