![]() |
ATLAS Offline Software
|
#include <ParticleCaloExtensionTool.h>
Public Types | |
| typedef std::unordered_map< size_t, std::unique_ptr< Trk::CaloExtension > > | Cache |
Public Member Functions | |
| ParticleCaloExtensionTool (const std::string &, const std::string &, const IInterface *) | |
| virtual | ~ParticleCaloExtensionTool () |
| virtual StatusCode | initialize () override final |
| virtual std::unique_ptr< Trk::CaloExtension > | caloExtension (const EventContext &ctx, const xAOD::IParticle &particle) const override final |
| Method returning the calo layers crossed by the IParticle track or the IParticle itself if it is neutral/TruthParticle The memory ownership is handled by the unique_ptr. | |
| virtual const Trk::CaloExtension * | caloExtension (const EventContext &ctx, const xAOD::IParticle &particle, IParticleCaloExtensionTool::Cache &cache) const override final |
| Method to return the calo layers crossed (CaloExtension) by the IParticle track or the IParticle itself if it is neutral/TruthParticle. | |
| virtual const Trk::CaloExtension * | caloExtension (const xAOD::IParticle &particle, const CaloExtensionCollection &cache) const override final |
| Method to return the calo layers crossed (CaloExtension) by the IParticle track or the IParticle itself if it is neutral/TruthParticle It returns the result stored in the CaloExtensionCollection created by the caloExtensionCollection method below. | |
| virtual StatusCode | caloExtensionCollection (const EventContext &ctx, const xAOD::IParticleContainer &particles, const std::vector< bool > &mask, CaloExtensionCollection &caloextensions) const override final |
| Method that can be used by algorithms that : A. | |
| virtual std::unique_ptr< Trk::CaloExtension > | caloExtension (const EventContext &ctx, const TrackParameters &startPars, PropDirection propDir, ParticleHypothesis particleType) const override final |
| Method returning a unique_ptr to the caloExtension given the relevant starting point parameters , direction and particle hypothesis. | |
| std::vector< std::unique_ptr< Trk::Surface > > | caloSurfacesFromLayers (const std::vector< CaloSampling::CaloSample > &clusterLayers, double eta, const CaloDetDescrManager &caloDD) const override final |
| Method returning a vector of calo surfaces give calo layers/samplings. | |
| virtual std::vector< std::pair< CaloSampling::CaloSample, std::unique_ptr< const Trk::TrackParameters > > > | surfaceCaloExtension (const EventContext &ctx, const TrackParameters &startPars, const std::vector< CaloSampling::CaloSample > &clusterLayers, const std::vector< std::unique_ptr< Trk::Surface > > &caloSurfaces, ParticleHypothesis particleType) const override final |
| Method returning a vector of the Track Parameters at layers/samplings. | |
| virtual std::vector< std::pair< CaloSampling::CaloSample, std::unique_ptr< const Trk::TrackParameters > > > | layersCaloExtension (const EventContext &ctx, const TrackParameters &startPars, const std::vector< CaloSampling::CaloSample > &clusterLayers, double eta, const CaloDetDescrManager &caloDD, ParticleHypothesis particleType) const override final |
| Method returning a vector of the Track Parameters at layers/samplings. | |
| ServiceHandle< StoreGateSvc > & | evtStore () |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. | |
| const ServiceHandle< StoreGateSvc > & | detStore () const |
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. | |
| virtual StatusCode | sysInitialize () override |
| Perform system initialization for an algorithm. | |
| virtual StatusCode | sysStart () override |
| Handle START transition. | |
| virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. | |
| virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. | |
| Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T, V, H > &t) |
| void | updateVHKA (Gaudi::Details::PropertyBase &) |
| MsgStream & | msg () const |
| bool | msgLvl (const MSG::Level lvl) const |
Static Public Member Functions | |
| static const InterfaceID & | interfaceID () |
Protected Member Functions | |
| void | renounceArray (SG::VarHandleKeyArray &handlesArray) |
| remove all handles from I/O resolution | |
| 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. | |
Private Types | |
| typedef ServiceHandle< StoreGateSvc > | StoreGateSvc_t |
Private Member Functions | |
| std::unique_ptr< Trk::CaloExtension > | caloExtension (const EventContext &ctx, const xAOD::TruthParticle &particle) const |
| std::unique_ptr< Trk::CaloExtension > | caloExtension (const EventContext &ctx, const xAOD::NeutralParticle &particle) const |
| std::unique_ptr< Trk::CaloExtension > | caloExtension (const EventContext &ctx, const xAOD::TrackParticle &particle) const |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> | |
Private Attributes | |
| ToolHandle< Trk::IExtrapolator > | m_extrapolator { this, "Extrapolator", "" } |
| ToolHandle< ICaloSurfaceBuilder > | m_calosurf |
| Tool to build calorimeter layer surfaces. | |
| Gaudi::Property< std::string > | m_particleTypeName |
| Gaudi::Property< bool > | m_startFromPerigee |
| const AtlasDetectorID * | m_detID |
| ParticleHypothesis | m_particleStrategy |
| Gaudi::Property< unsigned int > | m_extrapolDetectorID |
| ToolHandle< GenericMonitoringTool > | m_monTool {this,"MonTool","","Monitoring tool"} |
| Monitoring tool for recording histograms of the alg in action. | |
| StoreGateSvc_t | m_evtStore |
| Pointer to StoreGate (event store by default) | |
| StoreGateSvc_t | m_detStore |
| Pointer to StoreGate (detector store by default) | |
| std::vector< SG::VarHandleKeyArray * > | m_vhka |
| bool | m_varHandleArraysDeclared |
Definition at line 44 of file ParticleCaloExtensionTool.h.
|
inherited |
Definition at line 98 of file IParticleCaloExtensionTool.h.
|
privateinherited |
Definition at line 388 of file AthCommonDataStore.h.
| Trk::ParticleCaloExtensionTool::ParticleCaloExtensionTool | ( | const std::string & | t, |
| const std::string & | n, | ||
| const IInterface * | p ) |
Definition at line 20 of file ParticleCaloExtensionTool.cxx.
|
virtualdefault |
|
finaloverridevirtual |
Method returning a unique_ptr to the caloExtension given the relevant starting point parameters , direction and particle hypothesis.
| ctx | event context needed for multithreading |
| startPars | the starting track parameters |
| propDir | extrapolation direction |
| particleType | type of particle |
Implements Trk::IParticleCaloExtensionTool.
Definition at line 257 of file ParticleCaloExtensionTool.cxx.
|
finaloverridevirtual |
Method returning the calo layers crossed by the IParticle track or the IParticle itself if it is neutral/TruthParticle The memory ownership is handled by the unique_ptr.
| ctx | event context needed for multithreading |
| particle | reference to the Particle |
Implements Trk::IParticleCaloExtensionTool.
Definition at line 63 of file ParticleCaloExtensionTool.cxx.
|
finaloverridevirtual |
Method to return the calo layers crossed (CaloExtension) by the IParticle track or the IParticle itself if it is neutral/TruthParticle.
An alg looping over a single collection of IParticles re-using them multiple times can use a local cache of the form std::unordered_map<size_t,std::unique_ptr<Trk::CaloExtension>>. The key is the value of IParticle::index()
This method adds the relevant extension to the cache look-up table which retains ownership.
| ctx | event context needed for multithreading |
| particle | reference to the Particle |
| cache | the look-up table cache |
Implements Trk::IParticleCaloExtensionTool.
Definition at line 92 of file ParticleCaloExtensionTool.cxx.
|
private |
Definition at line 173 of file ParticleCaloExtensionTool.cxx.
|
private |
Definition at line 192 of file ParticleCaloExtensionTool.cxx.
|
private |
Definition at line 148 of file ParticleCaloExtensionTool.cxx.
|
finaloverridevirtual |
Method to return the calo layers crossed (CaloExtension) by the IParticle track or the IParticle itself if it is neutral/TruthParticle It returns the result stored in the CaloExtensionCollection created by the caloExtensionCollection method below.
In this case, the CaloExtensionCollection (DataVector<CaloExtension>) owns the caloExtension.
| particle | reference to the Particle |
| cache | The CaloExtensionCollections |
Implements Trk::IParticleCaloExtensionTool.
Definition at line 106 of file ParticleCaloExtensionTool.cxx.
|
finaloverridevirtual |
Method that can be used by algorithms that : A.
Have an IParticleCollection B. Define a mask of the size of that collection C. Want back a Calo Extension Collection alligned with the input collection i.e 1 to 1 correspondance with the input collection. The Collection can then be used as such to retrieve the extensions or manipulated and written to StoreGate.
| ctx | event context needed for multithreading |
| particles | The input collection |
| mask | contains true for the elements for which to permorm an extension, false otherwise |
Implements Trk::IParticleCaloExtensionTool.
Definition at line 119 of file ParticleCaloExtensionTool.cxx.
|
finaloverridevirtual |
Method returning a vector of calo surfaces give calo layers/samplings.
| ctx | event context needed for multithreading |
| clusterLayers | the layers (should be ordered) we aim to |
| eta | eta used for the depth |
Implements Trk::IParticleCaloExtensionTool.
Definition at line 355 of file ParticleCaloExtensionTool.cxx.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
|
inlineinherited |
Definition at line 145 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
Definition at line 95 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition at line 85 of file AthCommonDataStore.h.
|
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
|
finaloverridevirtual |
Definition at line 33 of file ParticleCaloExtensionTool.cxx.
|
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.
|
inlinestaticinherited |
Definition at line 247 of file IParticleCaloExtensionTool.h.
|
finaloverridevirtual |
Method returning a vector of the Track Parameters at layers/samplings.
| ctx | event context needed for multithreading |
| startPars | the starting track parameters |
| clusterLayers | the layers (should be ordered) we aim to |
| eta | eta used for the depth |
| particleType | type of particle |
Implements Trk::IParticleCaloExtensionTool.
Definition at line 407 of file ParticleCaloExtensionTool.cxx.
|
inlineinherited |
Definition at line 24 of file AthCommonMsg.h.
|
inlineinherited |
Definition at line 30 of file AthCommonMsg.h.
|
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.
|
inlineprotectedinherited |
Definition at line 380 of file AthCommonDataStore.h.
|
inlineprotectedinherited |
remove all handles from I/O resolution
Definition at line 364 of file AthCommonDataStore.h.
|
finaloverridevirtual |
Method returning a vector of the Track Parameters at layers/samplings.
| ctx | event context needed for multithreading |
| startPars | the starting track parameters |
| clusterLayers | the layers (should be ordered) we aim to |
| clusterSurfaces | the surfaces for each layer |
| particleType | type of particle |
The clusterLayers and clusterSurfaces need to be 1-1 this can be done via the caloSurfacesFromLayers method above.
Implements Trk::IParticleCaloExtensionTool.
Definition at line 375 of file ParticleCaloExtensionTool.cxx.
|
overridevirtualinherited |
Perform system initialization for an algorithm.
We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.
Reimplemented in asg::AsgMetadataTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and DerivationFramework::CfAthAlgTool.
|
overridevirtualinherited |
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
|
inlineinherited |
Definition at line 308 of file AthCommonDataStore.h.
|
private |
Tool to build calorimeter layer surfaces.
Definition at line 127 of file ParticleCaloExtensionTool.h.
|
private |
Definition at line 144 of file ParticleCaloExtensionTool.h.
|
privateinherited |
Pointer to StoreGate (detector store by default)
Definition at line 393 of file AthCommonDataStore.h.
|
privateinherited |
Pointer to StoreGate (event store by default)
Definition at line 390 of file AthCommonDataStore.h.
|
private |
Definition at line 124 of file ParticleCaloExtensionTool.h.
|
private |
Definition at line 147 of file ParticleCaloExtensionTool.h.
|
private |
Monitoring tool for recording histograms of the alg in action.
Definition at line 156 of file ParticleCaloExtensionTool.h.
|
private |
Definition at line 145 of file ParticleCaloExtensionTool.h.
|
private |
Definition at line 134 of file ParticleCaloExtensionTool.h.
|
private |
Definition at line 140 of file ParticleCaloExtensionTool.h.
|
privateinherited |
Definition at line 399 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 398 of file AthCommonDataStore.h.