Loading [MathJax]/extensions/tex2jax.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::StripClusterSiHitDecoratorAlg Class Reference

#include <StripClusterSiHitDecoratorAlg.h>

Inheritance diagram for ActsTrk::StripClusterSiHitDecoratorAlg:
Collaboration diagram for ActsTrk::StripClusterSiHitDecoratorAlg:

Public Member Functions

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

std::vector< SiHitfindAllHitsCompatibleWithCluster (const xAOD::StripCluster &cluster, const InDetDD::SiDetectorElement &element, const std::vector< const SiHit * > &sihits) const
 
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

SG::ReadHandleKey< xAOD::TrackMeasurementValidationContainerm_inputMeasurementsKey {this, "Measurements", ""}
 
SG::ReadHandleKey< xAOD::StripClusterContainerm_inputClustersKey {this, "Clusters", ""}
 
SG::ReadHandleKey< InDetSimDataCollectionm_SDOcontainer_key {this, "SDOs", ""}
 
SG::ReadHandleKey< SiHitCollectionm_siHitsKey {this, "SiHits", ""}
 
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollectionm_stripDetEleCollKey {this, "StripDetEleCollKey", "ITkStripDetectorElementCollection"}
 
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainerm_sdo_words {this, "SdoWords", m_inputMeasurementsKey, "sdo_words"}
 
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainerm_sdo_depositsBarcode {this, "SdoDepositsBarcode", m_inputMeasurementsKey, "sdo_depositsBarcode"}
 
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainerm_sdo_depositsEnergy {this, "SdoDepositsEnergy", m_inputMeasurementsKey, "sdo_depositsEnergy"}
 
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainerm_sihit_energyDeposit_decor_key {this, "SiHitEnergyDeposit", m_inputMeasurementsKey, "sihit_energyDeposit"}
 
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainerm_sihit_meanTime_decor_key {this, "SiHitMeanTime", m_inputMeasurementsKey, "sihit_meanTime"}
 
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainerm_sihit_barcode_decor_key {this, "SiHitBarcode", m_inputMeasurementsKey, "sihit_barcode"}
 
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainerm_sihit_pdgid_decor_key {this, "SiHitPdgId", m_inputMeasurementsKey, "sihit_pdgid"}
 
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainerm_sihit_startPosX_decor_key {this, "SiHitStartPosX", m_inputMeasurementsKey, "sihit_startPosX"}
 
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainerm_sihit_startPosY_decor_key {this, "SiHitStartPosY", m_inputMeasurementsKey, "sihit_startPosY"}
 
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainerm_sihit_startPosZ_decor_key {this, "SiHitStartPosZ", m_inputMeasurementsKey, "sihit_startPosZ"}
 
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainerm_sihit_endPosX_decor_key {this, "SiHitStopPosX", m_inputMeasurementsKey, "sihit_endPosX"}
 
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainerm_sihit_endPosY_decor_key {this, "SiHitStopPosY", m_inputMeasurementsKey, "sihit_endPosY"}
 
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainerm_sihit_endPosZ_decor_key {this, "SiHitStopPosZ", m_inputMeasurementsKey, "sihit_endPosZ"}
 
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 21 of file StripClusterSiHitDecoratorAlg.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

◆ StripClusterSiHitDecoratorAlg()

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

Definition at line 14 of file StripClusterSiHitDecoratorAlg.cxx.

16  : AthReentrantAlgorithm(name, pSvcLocator)
17  {}

◆ ~StripClusterSiHitDecoratorAlg()

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

Definition at line 53 of file StripClusterSiHitDecoratorAlg.cxx.

54  {
55  ATH_MSG_DEBUG( "Executing " << name() << " ..." );
56 
57  ATH_MSG_DEBUG( "Retrieving TrackMeasurementValidationContainer with key: " << m_inputMeasurementsKey.key() );
59  ATH_CHECK( measurementHandle.isValid() );
60  const xAOD::TrackMeasurementValidationContainer* measurements = measurementHandle.cptr();
61 
62  ATH_MSG_DEBUG( "Retrieving StripClusterContainer with key: " << m_inputClustersKey.key() );
64  ATH_CHECK( clusterHandle.isValid() );
65  const xAOD::StripClusterContainer* clusters = clusterHandle.cptr();
66 
67  ATH_MSG_DEBUG( "Retrieving InDetSimDataCollection with key: " << m_SDOcontainer_key.key() );
69  ATH_CHECK( sdoHandle.isValid() );
70  const InDetSimDataCollection* sdos = sdoHandle.cptr();
71 
72  ATH_MSG_DEBUG("Retrieving SiHitCollection with key: " << m_siHitsKey.key());
74  ATH_CHECK(siHitsHandle.isValid());
75  const SiHitCollection* siHits = siHitsHandle.cptr();
76 
78  ATH_CHECK(stripDetEleHandle.isValid());
79  const InDetDD::SiDetectorElementCollection* stripElements = stripDetEleHandle.cptr();
80 
81  // SDO decorators
85 
86  // SiHit decorators
91 
95 
99 
100  // measurements and clusters have the same size
101  // measurement n corresponds to cluster n
102  ATH_CHECK( measurements->size() == clusters->size() );
103 
104  // organize the si hits in such a way we group them together by idhash
105  std::vector< std::vector< const SiHit* > > siHitsCollections(m_StripHelper->wafer_hash_max());
106  for (const SiHit& siHit: *siHits) {
107  if ( not siHit.isSCT() ) {
108  ATH_MSG_ERROR("Si Hit in Strip collection is not Strip!!!");
109  return StatusCode::FAILURE;
110  }
111 
112  Identifier wafer_id(m_StripHelper->wafer_id(siHit.getBarrelEndcap(),
113  siHit.getLayerDisk(),
114  siHit.getPhiModule(),
115  siHit.getEtaModule(),
116  siHit.getSide()));
117  IdentifierHash wafer_hash(m_StripHelper->wafer_hash(wafer_id));
118 
119  if (wafer_hash >= m_StripHelper->wafer_hash_max()) {
120  ATH_MSG_ERROR("There is a problem with Si Hit collection.");
121  ATH_MSG_ERROR("Wafer hash is too big");
122  return StatusCode::FAILURE;
123  }
124  siHitsCollections[wafer_hash].push_back(&siHit);
125  } // loop on si hits
126 
127 
129  stripAccessor ( *clusters,
130  [] (const xAOD::StripCluster& cl) -> IdentifierHash { return cl.identifierHash(); },
131  stripElements->size());
132 
133  // run on id hashes
134  const auto& allIdHashes = stripAccessor.allIdentifiers();
135  for (const auto& hashId : allIdHashes) {
136  const InDetDD::SiDetectorElement *element = stripElements->getDetectorElement(hashId);
137  if ( not element ) {
138  ATH_MSG_FATAL( "Invalid strip detector element for hash " << hashId);
139  return StatusCode::FAILURE;
140  }
141 
142  auto [startRange, stopRange] = stripAccessor.rangesForIdentifierDirect(hashId).front();
143  const std::vector< const SiHit* >& siHitsWithCurrentHash = siHitsCollections.at(hashId);
144 
145  for (auto itr = startRange; itr != stopRange; ++itr) {
146  const xAOD::StripCluster* cluster = *startRange;
147  const xAOD::TrackMeasurementValidation* measurement = measurements->at(cluster->index());
148  ATH_CHECK(measurement->identifier() == cluster->identifier() );
149 
150  auto [word, depositsBarcode, depositsEnergy] = ActsTrk::detail::getSDOInformation(cluster->rdoList(), *sdos);
151  std::vector<SiHit> compatibleSiHits = findAllHitsCompatibleWithCluster(*cluster, *element, siHitsWithCurrentHash);
152 
153  auto [energyDeposit, meanTime, barcode, pdgid,
154  startPosX, startPosY, startPosZ,
155  endPosX, endPosY, endPosZ] = ActsTrk::detail::getSiHitInformation(*element, compatibleSiHits);
156 
157  // attach SDO decorations
158  decor_sdo_words(*measurement) = std::move(word);
159  decor_sdo_depositsBarcode(*measurement) = std::move(depositsBarcode);
160  decor_sdo_depositsEnergy(*measurement) = std::move(depositsEnergy);
161 
162  // attach SiHit decorations
163  decor_sihit_energyDeposit(*measurement) = std::move(energyDeposit);
164  decor_sihit_meanTime(*measurement) = std::move(meanTime);
165  decor_sihit_barcode(*measurement) = std::move(barcode);
166  decor_sihit_pdgid(*measurement) = std::move(pdgid);
167 
168  decor_sihit_startPosX(*measurement) = std::move(startPosX);
169  decor_sihit_startPosY(*measurement) = std::move(startPosY);
170  decor_sihit_startPosZ(*measurement) = std::move(startPosZ);
171 
172  decor_sihit_endPosX(*measurement) = std::move(endPosX);
173  decor_sihit_endPosY(*measurement) = std::move(endPosY);
174  decor_sihit_endPosZ(*measurement) = std::move(endPosZ);
175  } // loop on clusters
176  } // loop on hash ids
177 
178  return StatusCode::SUCCESS;
179  }

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

◆ findAllHitsCompatibleWithCluster()

std::vector< SiHit > ActsTrk::StripClusterSiHitDecoratorAlg::findAllHitsCompatibleWithCluster ( const xAOD::StripCluster cluster,
const InDetDD::SiDetectorElement element,
const std::vector< const SiHit * > &  sihits 
) const
private

Definition at line 182 of file StripClusterSiHitDecoratorAlg.cxx.

185  {
186  std::vector<SiHit> matchingHits {};
187  std::vector<const SiHit*> multiMatchingHits {};
188 
189  for (const SiHit* siHit: siHits) {
190  // Now we have all hits in the module that match lets check to see if they match the cluster
191  // Must be within +/- 1 hits of any hit in the cluster to be included
192  HepGeom::Point3D<double> averagePosition = 0.5 * (siHit->localStartPosition() + siHit->localEndPosition());
193  Amg::Vector2D pos = element.hitLocalToLocal(averagePosition.z(), averagePosition.y());
194  InDetDD::SiCellId diode = element.cellIdOfPosition(pos);
195 
196  for (const auto& hitIdentifier: cluster.rdoList()) {
197  ATH_MSG_DEBUG("Truth Strip " << diode.phiIndex() << " Cluster Strip " << m_StripHelper->strip(hitIdentifier));
198 
199  if (std::abs( static_cast<int>(diode.phiIndex()) - m_StripHelper->strip(hitIdentifier) ) <= 1) {
200  multiMatchingHits.push_back(siHit);
201  break;
202  }
203  }
204  } // loop on si hits
205 
206  // Now we will now make 1 SiHit for each true particle if the SiHits "touch" other
207  std::vector<const SiHit* >::iterator siHitIter = multiMatchingHits.begin();
208  std::vector<const SiHit* >::iterator siHitIter2 = multiMatchingHits.begin();
209  for ( ; siHitIter != multiMatchingHits.end(); ++siHitIter) {
210  const SiHit* lowestXPos = *siHitIter;
211  const SiHit* highestXPos = *siHitIter;
212 
213  // We will merge these hits
214  std::vector<const SiHit* > ajoiningHits;
215  ajoiningHits.push_back( *siHitIter );
216 
217  siHitIter2 = siHitIter + 1;
218  while ( siHitIter2 != multiMatchingHits.end() ) {
219  // Need to come from the same truth particle
220  if ( not HepMC::is_same_particle((*siHitIter)->particleLink(),
221  (*siHitIter2)->particleLink()) ) {
222  ++siHitIter2;
223  continue;
224  }
225 
226  // Check to see if the SiHits are compatible with each other.
227  if (std::abs((highestXPos->localEndPosition().x()-(*siHitIter2)->localStartPosition().x()))<0.00005 &&
228  std::abs((highestXPos->localEndPosition().y()-(*siHitIter2)->localStartPosition().y()))<0.00005 &&
229  std::abs((highestXPos->localEndPosition().z()-(*siHitIter2)->localStartPosition().z()))<0.00005 ) {
230  highestXPos = *siHitIter2;
231  ajoiningHits.push_back( *siHitIter2 );
232  // Dont use hit more than once
233  // @TODO could invalidate siHitIter
234  siHitIter2 = multiMatchingHits.erase( siHitIter2 );
235  } else if (std::abs((lowestXPos->localStartPosition().x()-(*siHitIter2)->localEndPosition().x()))<0.00005 &&
236  std::abs((lowestXPos->localStartPosition().y()-(*siHitIter2)->localEndPosition().y()))<0.00005 &&
237  std::abs((lowestXPos->localStartPosition().z()-(*siHitIter2)->localEndPosition().z()))<0.00005) {
238  lowestXPos = *siHitIter2;
239  ajoiningHits.push_back( *siHitIter2 );
240  // Dont use hit more than once
241  // @TODO could invalidate siHitIter
242  siHitIter2 = multiMatchingHits.erase( siHitIter2 );
243  } else {
244  ++siHitIter2;
245  }
246  } // while loop
247 
248  if ( ajoiningHits.empty() ) {
249  ATH_MSG_WARNING("This should really never happen");
250  continue;
251  } else if ( ajoiningHits.size() == 1 ) {
252  // Copy Si Hit ready to return
253  matchingHits.push_back( *ajoiningHits[0] );
254  continue;
255  } else {
256  // Build new SiHit and merge information together.
257  ATH_MSG_DEBUG("Merging " << ajoiningHits.size() << " SiHits together." );
258 
259  float energyDep {0.f};
260  float time {0.f};
261  for( const auto& siHit : ajoiningHits ){
262  energyDep += siHit->energyLoss();
263  time += siHit->meanTime();
264  }
265  time /= ajoiningHits.size();
266 
267  matchingHits.emplace_back(lowestXPos->localStartPosition(),
268  highestXPos->localEndPosition(),
269  energyDep,
270  time,
271  HepMC::barcode((*siHitIter)->particleLink()),
272  1, // 0 for pixel 1 for strip
273  (*siHitIter)->getBarrelEndcap(),
274  (*siHitIter)->getLayerDisk(),
275  (*siHitIter)->getEtaModule(),
276  (*siHitIter)->getPhiModule(),
277  (*siHitIter)->getSide() );
278 
279  ATH_MSG_DEBUG("Finished Merging " << ajoiningHits.size() << " SiHits together." );
280  }
281  } // loop on multi matching hits
282 
283  return matchingHits;
284  }

◆ initialize()

StatusCode ActsTrk::StripClusterSiHitDecoratorAlg::initialize ( )
overridevirtual

Definition at line 19 of file StripClusterSiHitDecoratorAlg.cxx.

20  {
21  ATH_MSG_DEBUG( "Initializing " << name() << " ..." );
22 
23  ATH_CHECK( m_inputMeasurementsKey.initialize() );
27  ATH_CHECK( m_siHitsKey.initialize() );
28 
29  // SDO decorations
30  ATH_CHECK( m_sdo_words.initialize() );
31  ATH_CHECK( m_sdo_depositsBarcode.initialize() );
32  ATH_CHECK( m_sdo_depositsEnergy.initialize() );
33 
34  // SiHit decorations
36  ATH_CHECK( m_sihit_meanTime_decor_key.initialize() );
37  ATH_CHECK( m_sihit_barcode_decor_key.initialize() );
38  ATH_CHECK( m_sihit_pdgid_decor_key.initialize() );
39 
40  ATH_CHECK( m_sihit_startPosX_decor_key.initialize() );
41  ATH_CHECK( m_sihit_startPosY_decor_key.initialize() );
42  ATH_CHECK( m_sihit_startPosZ_decor_key.initialize() );
43 
44  ATH_CHECK( m_sihit_endPosX_decor_key.initialize() );
45  ATH_CHECK( m_sihit_endPosY_decor_key.initialize() );
46  ATH_CHECK( m_sihit_endPosZ_decor_key.initialize() );
47 
48  ATH_CHECK( detStore()->retrieve(m_StripHelper, "SCT_ID") );
49 
50  return StatusCode::SUCCESS;
51  }

◆ 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_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_inputClustersKey

SG::ReadHandleKey< xAOD::StripClusterContainer > ActsTrk::StripClusterSiHitDecoratorAlg::m_inputClustersKey {this, "Clusters", ""}
private

Definition at line 38 of file StripClusterSiHitDecoratorAlg.h.

◆ m_inputMeasurementsKey

SG::ReadHandleKey< xAOD::TrackMeasurementValidationContainer > ActsTrk::StripClusterSiHitDecoratorAlg::m_inputMeasurementsKey {this, "Measurements", ""}
private

Definition at line 37 of file StripClusterSiHitDecoratorAlg.h.

◆ m_sdo_depositsBarcode

SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > ActsTrk::StripClusterSiHitDecoratorAlg::m_sdo_depositsBarcode {this, "SdoDepositsBarcode", m_inputMeasurementsKey, "sdo_depositsBarcode"}
private

Definition at line 45 of file StripClusterSiHitDecoratorAlg.h.

◆ m_sdo_depositsEnergy

SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > ActsTrk::StripClusterSiHitDecoratorAlg::m_sdo_depositsEnergy {this, "SdoDepositsEnergy", m_inputMeasurementsKey, "sdo_depositsEnergy"}
private

Definition at line 46 of file StripClusterSiHitDecoratorAlg.h.

◆ m_sdo_words

SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > ActsTrk::StripClusterSiHitDecoratorAlg::m_sdo_words {this, "SdoWords", m_inputMeasurementsKey, "sdo_words"}
private

Definition at line 44 of file StripClusterSiHitDecoratorAlg.h.

◆ m_SDOcontainer_key

SG::ReadHandleKey< InDetSimDataCollection > ActsTrk::StripClusterSiHitDecoratorAlg::m_SDOcontainer_key {this, "SDOs", ""}
private

Definition at line 39 of file StripClusterSiHitDecoratorAlg.h.

◆ m_sihit_barcode_decor_key

SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > ActsTrk::StripClusterSiHitDecoratorAlg::m_sihit_barcode_decor_key {this, "SiHitBarcode", m_inputMeasurementsKey, "sihit_barcode"}
private

Definition at line 51 of file StripClusterSiHitDecoratorAlg.h.

◆ m_sihit_endPosX_decor_key

SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > ActsTrk::StripClusterSiHitDecoratorAlg::m_sihit_endPosX_decor_key {this, "SiHitStopPosX", m_inputMeasurementsKey, "sihit_endPosX"}
private

Definition at line 58 of file StripClusterSiHitDecoratorAlg.h.

◆ m_sihit_endPosY_decor_key

SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > ActsTrk::StripClusterSiHitDecoratorAlg::m_sihit_endPosY_decor_key {this, "SiHitStopPosY", m_inputMeasurementsKey, "sihit_endPosY"}
private

Definition at line 59 of file StripClusterSiHitDecoratorAlg.h.

◆ m_sihit_endPosZ_decor_key

SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > ActsTrk::StripClusterSiHitDecoratorAlg::m_sihit_endPosZ_decor_key {this, "SiHitStopPosZ", m_inputMeasurementsKey, "sihit_endPosZ"}
private

Definition at line 60 of file StripClusterSiHitDecoratorAlg.h.

◆ m_sihit_energyDeposit_decor_key

SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > ActsTrk::StripClusterSiHitDecoratorAlg::m_sihit_energyDeposit_decor_key {this, "SiHitEnergyDeposit", m_inputMeasurementsKey, "sihit_energyDeposit"}
private

Definition at line 49 of file StripClusterSiHitDecoratorAlg.h.

◆ m_sihit_meanTime_decor_key

SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > ActsTrk::StripClusterSiHitDecoratorAlg::m_sihit_meanTime_decor_key {this, "SiHitMeanTime", m_inputMeasurementsKey, "sihit_meanTime"}
private

Definition at line 50 of file StripClusterSiHitDecoratorAlg.h.

◆ m_sihit_pdgid_decor_key

SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > ActsTrk::StripClusterSiHitDecoratorAlg::m_sihit_pdgid_decor_key {this, "SiHitPdgId", m_inputMeasurementsKey, "sihit_pdgid"}
private

Definition at line 52 of file StripClusterSiHitDecoratorAlg.h.

◆ m_sihit_startPosX_decor_key

SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > ActsTrk::StripClusterSiHitDecoratorAlg::m_sihit_startPosX_decor_key {this, "SiHitStartPosX", m_inputMeasurementsKey, "sihit_startPosX"}
private

Definition at line 54 of file StripClusterSiHitDecoratorAlg.h.

◆ m_sihit_startPosY_decor_key

SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > ActsTrk::StripClusterSiHitDecoratorAlg::m_sihit_startPosY_decor_key {this, "SiHitStartPosY", m_inputMeasurementsKey, "sihit_startPosY"}
private

Definition at line 55 of file StripClusterSiHitDecoratorAlg.h.

◆ m_sihit_startPosZ_decor_key

SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > ActsTrk::StripClusterSiHitDecoratorAlg::m_sihit_startPosZ_decor_key {this, "SiHitStartPosZ", m_inputMeasurementsKey, "sihit_startPosZ"}
private

Definition at line 56 of file StripClusterSiHitDecoratorAlg.h.

◆ m_siHitsKey

SG::ReadHandleKey< SiHitCollection > ActsTrk::StripClusterSiHitDecoratorAlg::m_siHitsKey {this, "SiHits", ""}
private

Definition at line 40 of file StripClusterSiHitDecoratorAlg.h.

◆ m_stripDetEleCollKey

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

Definition at line 41 of file StripClusterSiHitDecoratorAlg.h.

◆ m_StripHelper

const SCT_ID* ActsTrk::StripClusterSiHitDecoratorAlg::m_StripHelper {nullptr}
private

Definition at line 62 of file StripClusterSiHitDecoratorAlg.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.


The documentation for this class was generated from the following files:
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
ActsTrk::StripClusterSiHitDecoratorAlg::m_stripDetEleCollKey
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_stripDetEleCollKey
Definition: StripClusterSiHitDecoratorAlg.h:41
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
InDetDD::SolidStateDetectorElementBase::cellIdOfPosition
SiCellId cellIdOfPosition(const Amg::Vector2D &localPos) const
As in previous method but returns SiCellId.
Definition: SolidStateDetectorElementBase.cxx:224
ActsTrk::StripClusterSiHitDecoratorAlg::m_sihit_startPosX_decor_key
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_sihit_startPosX_decor_key
Definition: StripClusterSiHitDecoratorAlg.h:54
SiHit::localEndPosition
HepGeom::Point3D< double > localEndPosition() const
Definition: SiHit.cxx:153
ContainerAccessor
Definition: ContainerAccessor.h:25
InDetDD::SiDetectorElementCollection
Definition: SiDetectorElementCollection.h:30
SG::ReadCondHandle
Definition: ReadCondHandle.h:44
ActsTrk::StripClusterSiHitDecoratorAlg::m_sihit_startPosY_decor_key
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_sihit_startPosY_decor_key
Definition: StripClusterSiHitDecoratorAlg.h:55
SG::ReadHandle::cptr
const_pointer_type cptr()
Dereference the pointer.
ActsTrk::detail::getSiHitInformation
std::tuple< std::vector< float >, std::vector< float >, std::vector< int >, std::vector< int >, std::vector< float >, std::vector< float >, std::vector< float >, std::vector< float >, std::vector< float >, std::vector< float > > getSiHitInformation(const InDetDD::SiDetectorElement &element, const std::vector< SiHit > &matchingHits)
Definition: Tracking/Acts/ActsObjectDecoration/src/detail/Utilities.cxx:57
Amg::Vector2D
Eigen::Matrix< double, 2, 1 > Vector2D
Definition: GeoPrimitives.h:48
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:67
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
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
AtlasHitsVector
Definition: AtlasHitsVector.h:33
ActsTrk::StripClusterSiHitDecoratorAlg::m_sihit_energyDeposit_decor_key
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_sihit_energyDeposit_decor_key
Definition: StripClusterSiHitDecoratorAlg.h:49
ActsTrk::StripClusterSiHitDecoratorAlg::m_inputClustersKey
SG::ReadHandleKey< xAOD::StripClusterContainer > m_inputClustersKey
Definition: StripClusterSiHitDecoratorAlg.h:38
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
ActsTrk::detail::getSDOInformation
std::tuple< std::vector< int >, std::vector< std::vector< int > >, std::vector< std::vector< float > > > getSDOInformation(const std::vector< Identifier > &rdoList, const InDetSimDataCollection &sdoCollection)
Definition: Tracking/Acts/ActsObjectDecoration/src/detail/Utilities.cxx:13
InDetSimDataCollection
Definition: InDetSimDataCollection.h:25
ActsTrk::StripClusterSiHitDecoratorAlg::m_sdo_words
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_sdo_words
Definition: StripClusterSiHitDecoratorAlg.h:44
InDetDD::SiCellId::phiIndex
int phiIndex() const
Get phi index. Equivalent to strip().
Definition: SiCellId.h:122
ActsTrk::StripClusterSiHitDecoratorAlg::m_sihit_meanTime_decor_key
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_sihit_meanTime_decor_key
Definition: StripClusterSiHitDecoratorAlg.h:50
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
ActsTrk::StripClusterSiHitDecoratorAlg::m_sihit_endPosY_decor_key
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_sihit_endPosY_decor_key
Definition: StripClusterSiHitDecoratorAlg.h:59
SG::VarHandleKey::key
const std::string & key() const
Return the StoreGate ID for the referenced object.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:141
ActsTrk::StripClusterSiHitDecoratorAlg::findAllHitsCompatibleWithCluster
std::vector< SiHit > findAllHitsCompatibleWithCluster(const xAOD::StripCluster &cluster, const InDetDD::SiDetectorElement &element, const std::vector< const SiHit * > &sihits) const
Definition: StripClusterSiHitDecoratorAlg.cxx:182
HepMC::is_same_particle
bool is_same_particle(const T1 &p1, const T2 &p2)
Method to establish if two particles in the GenEvent actually represent the same particle.
Definition: MagicNumbers.h:367
ActsTrk::StripClusterSiHitDecoratorAlg::m_sihit_endPosZ_decor_key
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_sihit_endPosZ_decor_key
Definition: StripClusterSiHitDecoratorAlg.h:60
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
Trk::energyDeposit
@ energyDeposit
Definition: MeasurementType.h:32
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
SiHit
Definition: SiHit.h:19
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
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
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ActsTrk::StripClusterSiHitDecoratorAlg::m_sdo_depositsBarcode
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_sdo_depositsBarcode
Definition: StripClusterSiHitDecoratorAlg.h:45
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
columnar::ContainerId::cluster
@ cluster
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
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::StripClusterSiHitDecoratorAlg::m_sihit_pdgid_decor_key
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_sihit_pdgid_decor_key
Definition: StripClusterSiHitDecoratorAlg.h:52
AthCommonReentrantAlgorithm::sysExecute
virtual StatusCode sysExecute(const EventContext &ctx) override
Execute an algorithm.
Definition: AthCommonReentrantAlgorithm.cxx:76
ActsTrk::StripClusterSiHitDecoratorAlg::m_sdo_depositsEnergy
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_sdo_depositsEnergy
Definition: StripClusterSiHitDecoratorAlg.h:46
xAOD::StripCluster_v1
Definition: StripCluster_v1.h:17
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
SCT_ID::wafer_hash
IdentifierHash wafer_hash(const Identifier &wafer_id) const
wafer hash from id - optimized
Definition: SCT_ID.h:492
ActsTrk::StripClusterSiHitDecoratorAlg::m_sihit_barcode_decor_key
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_sihit_barcode_decor_key
Definition: StripClusterSiHitDecoratorAlg.h:51
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
DataVector
Derived DataVector<T>.
Definition: DataVector.h:794
SG::ReadHandle::isValid
virtual bool isValid() override final
Can the handle be successfully dereferenced?
InDetDD::SolidStateDetectorElementBase::hitLocalToLocal
Amg::Vector2D hitLocalToLocal(double xEta, double xPhi) const
Simulation/Hit local frame to reconstruction local frame.
Definition: SolidStateDetectorElementBase.cxx:95
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::StripClusterSiHitDecoratorAlg::m_inputMeasurementsKey
SG::ReadHandleKey< xAOD::TrackMeasurementValidationContainer > m_inputMeasurementsKey
Definition: StripClusterSiHitDecoratorAlg.h:37
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
SCT_ID::wafer_hash_max
size_type wafer_hash_max(void) const
Definition: SCT_ID.cxx:645
xAOD::TrackMeasurementValidation_v1::identifier
uint64_t identifier() const
InDetDD::SiDetectorElement
Definition: SiDetectorElement.h:109
SG::CondHandleKey::initialize
StatusCode initialize(bool used=true)
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:18
InDetDD::SiCellId
Definition: SiCellId.h:29
ActsTrk::StripClusterSiHitDecoratorAlg::m_sihit_endPosX_decor_key
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_sihit_endPosX_decor_key
Definition: StripClusterSiHitDecoratorAlg.h:58
a
TList * a
Definition: liststreamerinfos.cxx:10
h
CaloSwCorrections.time
def time(flags, cells_name, *args, **kw)
Definition: CaloSwCorrections.py:242
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
SCT_ID::strip
int strip(const Identifier &id) const
Definition: SCT_ID.h:764
ActsTrk::StripClusterSiHitDecoratorAlg::m_sihit_startPosZ_decor_key
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_sihit_startPosZ_decor_key
Definition: StripClusterSiHitDecoratorAlg.h:56
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:629
AthCommonReentrantAlgorithm< Gaudi::Algorithm >::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthCommonReentrantAlgorithm.cxx:107
ActsTrk::StripClusterSiHitDecoratorAlg::m_siHitsKey
SG::ReadHandleKey< SiHitCollection > m_siHitsKey
Definition: StripClusterSiHitDecoratorAlg.h:40
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
ActsTrk::StripClusterSiHitDecoratorAlg::m_SDOcontainer_key
SG::ReadHandleKey< InDetSimDataCollection > m_SDOcontainer_key
Definition: StripClusterSiHitDecoratorAlg.h:39
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
IdentifierHash
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Definition: IdentifierHash.h:25
ActsTrk::StripClusterSiHitDecoratorAlg::m_StripHelper
const SCT_ID * m_StripHelper
Definition: StripClusterSiHitDecoratorAlg.h:62
AthCommonReentrantAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Definition: AthCommonReentrantAlgorithm.h:114
dq_make_web_display.cl
cl
print [x.__class__ for x in toList(dqregion.getSubRegions()) ]
Definition: dq_make_web_display.py:26
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
SiHit::localStartPosition
HepGeom::Point3D< double > localStartPosition() const
Definition: SiHit.cxx:146
fitman.k
k
Definition: fitman.py:528
ServiceHandle< ICondSvc >
SG::ReadCondHandle::cptr
const_pointer_type cptr()
Definition: ReadCondHandle.h:71
Identifier
Definition: IdentifierFieldParser.cxx:14