![]() |
ATLAS Offline Software
|
Dual-use tool createing a track-to-vertex map from the vertex-to-track information. More...
#include <BPhysTrackVertexMapTool.h>
Public Member Functions | |
| BPhysTrackVertexMapTool (const std::string &name="BPhysTrackVertexMapTool") | |
| Declare the correct constructor for Athena. | |
| virtual StatusCode | initialize () override |
| Function initialising the tool. | |
| virtual StatusCode | logEvent () override |
| Function being excuted for each event. | |
| virtual StatusCode | finalize () override |
| Function finalizing the tool. | |
| virtual bool | doLog () const override |
| Function indicating whether log counter allows logging of current event. | |
| virtual void | print () const |
| Print the state of the tool. | |
| 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 |
Additional helper functions, not directly mimicking Athena | |
| template<class T> | |
| const T * | getProperty (const std::string &name) const |
| Get one of the tool's properties. | |
| const std::string & | msg_level_name () const __attribute__((deprecated)) |
| A deprecated function for getting the message level's name. | |
| const std::string & | getName (const void *ptr) const |
| Get the name of an object that is / should be in the event store. | |
| SG::sgkey_t | getKey (const void *ptr) const |
| Get the (hashed) key of an object that is in the event store. | |
Static Public Member Functions | |
| static std::string | wrapLines (const std::string &lines, const std::string &prefix) |
| convenience method to wrap output lines by a prefix | |
Protected Member Functions | |
| virtual float | getFloat (std::string name, const xAOD::Vertex *b) |
| virtual std::vector< std::string > | getTokens (std::string input, std::string seperators) |
| 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. | |
Functions to be called by user classes | |
fill cache for current event | |
| virtual StatusCode | cacheEvent () override |
| virtual std::vector< const xAOD::Vertex * > | pvsForIDTrack (const xAOD::TrackParticle *track) const override |
| obtain primary vertices for a given ID track (may return empty vector) | |
| virtual std::vector< const xAOD::Vertex * > | refPVsForIDTrack (const xAOD::TrackParticle *track) const override |
| obtain refitted primary vertices for a given ID track (may return empty vector) | |
| virtual std::vector< const xAOD::Vertex * > | svsForIDTrack (const xAOD::TrackParticle *track) const override |
| obtain secondary vertices for a given ID track (may return empty vector) | |
| virtual std::string | idTrackToString (const xAOD::TrackParticle *track, unsigned int indent=0, bool withPV=false, bool withRefPV=false, bool withSV=false) override |
| virtual std::string | pvToString (const xAOD::Vertex *vtx, unsigned int indent=0, bool withTracks=false) override |
| virtual std::string | refPVToString (const xAOD::Vertex *vtx, unsigned int indent=0, bool withTracks=false) override |
| virtual std::string | svToString (const xAOD::Vertex *vtx, unsigned int indent=0, bool withTracks=false, bool withMasses=false) override |
| virtual std::string | idTracksToString (const xAOD::TrackParticleContainer *tpc, unsigned int indent=0, bool withPV=false, bool withRefPV=false, bool withSV=false) override |
| virtual std::string | pvsToString (const xAOD::VertexContainer *pvc, unsigned int indent=0, bool withTracks=false) override |
| virtual std::string | refPVsToString (const xAOD::VertexContainer *rpvc, unsigned int indent=0, bool withTracks=false) override |
| virtual std::string | svsToString (const xAOD::VertexContainer *svc, unsigned int indent=0, bool withTracks=false, bool withMasses=false) override |
| virtual std::string | summaryToString (std::string prefix) override |
Protected Attributes | |
| std::string | m_vertexContainerName |
| std::string | m_refPVContainerName |
| std::string | m_pvContainerName |
| std::string | m_trackParticleContainerName |
| int | m_debugTrkToVtxMaxEvents |
| std::string | m_dumpPrefix |
| std::string | m_hypoName |
| const xAOD::TrackParticleContainer * | m_tracks |
| const xAOD::TrackParticleAuxContainer * | m_tracksAux |
| const xAOD::VertexContainer * | m_pvtxContainer |
| const xAOD::VertexContainer * | m_svtxContainer |
| const xAOD::VertexAuxContainer * | m_svtxAuxContainer |
| const xAOD::VertexContainer * | m_refPVContainer |
| const xAOD::VertexAuxContainer * | m_refPVAuxContainer |
| unsigned int | m_nEvtsSeen |
| int | m_cachedRun |
| int | m_cachedEvent |
Private Types | |
| typedef std::map< const xAOD::TrackParticle *, std::vector< const xAOD::Vertex * > > | TrackToVertexMap_t |
| typedef std::map< const xAOD::Vertex *, std::string > | VertexNameMap_t |
| typedef std::map< const xAOD::TrackParticle *, std::string > | TrackNameMap_t |
| typedef ServiceHandle< StoreGateSvc > | StoreGateSvc_t |
Private Member Functions | |
| virtual void | initTrackVertexMaps (const xAOD::TrackParticleContainer *tpc, const xAOD::VertexContainer *pvc, const xAOD::VertexContainer *rpvc, const xAOD::VertexContainer *svc) |
| virtual void | addVertexToTrackVertexMap (TrackToVertexMap_t &map, const xAOD::TrackParticle *track, const xAOD::Vertex *vtx) |
| virtual std::string | pvName (const xAOD::Vertex *vtx) |
| virtual std::string | refPVName (const xAOD::Vertex *vtx) |
| virtual std::string | svName (const xAOD::Vertex *vtx) |
| virtual std::string | idTrackName (const xAOD::TrackParticle *vtx) |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> | |
Private Attributes | |
| VertexNameMap_t | m_pvNameMap |
| VertexNameMap_t | m_refPVNameMap |
| VertexNameMap_t | m_svNameMap |
| TrackNameMap_t | m_idTrackNameMap |
| TrackToVertexMap_t | m_idTrackToPVMap |
| TrackToVertexMap_t | m_idTrackToRefPVMap |
| TrackToVertexMap_t | m_idTrackToSVMap |
| 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 |
Dual-use tool createing a track-to-vertex map from the vertex-to-track information.
Job options provided by this class:
$Revision:$
Definition at line 47 of file BPhysTrackVertexMapTool.h.
|
privateinherited |
Definition at line 388 of file AthCommonDataStore.h.
|
private |
Definition at line 185 of file BPhysTrackVertexMapTool.h.
|
private |
Definition at line 140 of file BPhysTrackVertexMapTool.h.
|
private |
Definition at line 180 of file BPhysTrackVertexMapTool.h.
| xAOD::BPhysTrackVertexMapTool::BPhysTrackVertexMapTool | ( | const std::string & | name = "BPhysTrackVertexMapTool" | ) |
Declare the correct constructor for Athena.
Regular AsgTool constructor
Definition at line 36 of file BPhysTrackVertexMapTool.cxx.
|
privatevirtual |
Definition at line 323 of file BPhysTrackVertexMapTool.cxx.
|
overrideprotectedvirtual |
Implements xAOD::IBPhysTrackVertexMapTool.
Definition at line 139 of file BPhysTrackVertexMapTool.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.
|
overridevirtual |
Function indicating whether log counter allows logging of current event.
Implements xAOD::IBPhysTrackVertexMapTool.
Definition at line 126 of file BPhysTrackVertexMapTool.cxx.
|
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
|
overridevirtual |
Function finalizing the tool.
Implements xAOD::IBPhysTrackVertexMapTool.
Definition at line 95 of file BPhysTrackVertexMapTool.cxx.
|
protectedvirtual |
Definition at line 615 of file BPhysTrackVertexMapTool.cxx.
|
inherited |
Get the (hashed) key of an object that is in the event store.
This is a bit of a special one. StoreGateSvc and xAOD::TEvent both provide ways for getting the SG::sgkey_t key for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.
In order to allow tools to efficiently perform this operation, they can use this helper function.
| ptr | The bare pointer to the object that the event store should know about |
Definition at line 119 of file AsgTool.cxx.
|
inherited |
Get the name of an object that is / should be in the event store.
This is a bit of a special one. StoreGateSvc and xAOD::TEvent both provide ways for getting the std::string name for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.
In order to allow tools to efficiently perform this operation, they can use this helper function.
| ptr | The bare pointer to the object that the event store should know about |
Definition at line 106 of file AsgTool.cxx.
|
inherited |
Get one of the tool's properties.
|
protectedvirtual |
Definition at line 628 of file BPhysTrackVertexMapTool.cxx.
|
privatevirtual |
Definition at line 372 of file BPhysTrackVertexMapTool.cxx.
|
overrideprotectedvirtual |
Implements xAOD::IBPhysTrackVertexMapTool.
Definition at line 514 of file BPhysTrackVertexMapTool.cxx.
|
overrideprotectedvirtual |
Implements xAOD::IBPhysTrackVertexMapTool.
Definition at line 384 of file BPhysTrackVertexMapTool.cxx.
|
overridevirtual |
Function initialising the tool.
Reimplemented from asg::AsgTool.
Definition at line 64 of file BPhysTrackVertexMapTool.cxx.
|
privatevirtual |
Definition at line 262 of file BPhysTrackVertexMapTool.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.
|
overridevirtual |
Function being excuted for each event.
Implements xAOD::IBPhysTrackVertexMapTool.
Definition at line 103 of file BPhysTrackVertexMapTool.cxx.
|
inlineinherited |
Definition at line 24 of file AthCommonMsg.h.
|
inherited |
A deprecated function for getting the message level's name.
Instead of using this, weirdly named function, user code should get the string name of the current minimum message level (in case they really need it...), with:
This function's name doesn't follow the ATLAS coding rules, and as such will be removed in the not too distant future.
Definition at line 101 of file AsgTool.cxx.
|
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.
|
virtualinherited |
Print the state of the tool.
Implements asg::IAsgTool.
Reimplemented in AsgHelloTool, HI::HIPileupTool, JetBottomUpSoftDrop, JetConstituentsRetriever, JetDumper, JetFinder, JetFromPseudojet, JetModifiedMassDrop, JetPileupLabelingTool, JetPruner, JetPseudojetRetriever, JetReclusterer, JetReclusteringTool, JetRecTool, JetRecursiveSoftDrop, JetSoftDrop, JetSplitter, JetSubStructureMomentToolsBase, JetToolRunner, JetTrimmer, JetTruthLabelingTool, KtDeltaRTool, and LundVariablesTool.
Definition at line 131 of file AsgTool.cxx.
|
privatevirtual |
Definition at line 338 of file BPhysTrackVertexMapTool.cxx.
|
overrideprotectedvirtual |
obtain primary vertices for a given ID track (may return empty vector)
Implements xAOD::IBPhysTrackVertexMapTool.
Definition at line 209 of file BPhysTrackVertexMapTool.cxx.
|
overrideprotectedvirtual |
Implements xAOD::IBPhysTrackVertexMapTool.
Definition at line 538 of file BPhysTrackVertexMapTool.cxx.
|
overrideprotectedvirtual |
Implements xAOD::IBPhysTrackVertexMapTool.
Definition at line 433 of file BPhysTrackVertexMapTool.cxx.
|
privatevirtual |
Definition at line 349 of file BPhysTrackVertexMapTool.cxx.
|
overrideprotectedvirtual |
obtain refitted primary vertices for a given ID track (may return empty vector)
Implements xAOD::IBPhysTrackVertexMapTool.
Definition at line 227 of file BPhysTrackVertexMapTool.cxx.
|
overrideprotectedvirtual |
Implements xAOD::IBPhysTrackVertexMapTool.
Definition at line 559 of file BPhysTrackVertexMapTool.cxx.
|
overrideprotectedvirtual |
Implements xAOD::IBPhysTrackVertexMapTool.
Definition at line 455 of file BPhysTrackVertexMapTool.cxx.
|
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.
|
overrideprotectedvirtual |
Implements xAOD::IBPhysTrackVertexMapTool.
Definition at line 599 of file BPhysTrackVertexMapTool.cxx.
|
privatevirtual |
Definition at line 360 of file BPhysTrackVertexMapTool.cxx.
|
overrideprotectedvirtual |
obtain secondary vertices for a given ID track (may return empty vector)
Implements xAOD::IBPhysTrackVertexMapTool.
Definition at line 245 of file BPhysTrackVertexMapTool.cxx.
|
overrideprotectedvirtual |
Implements xAOD::IBPhysTrackVertexMapTool.
Definition at line 579 of file BPhysTrackVertexMapTool.cxx.
|
overrideprotectedvirtual |
Implements xAOD::IBPhysTrackVertexMapTool.
Definition at line 475 of file BPhysTrackVertexMapTool.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.
|
static |
convenience method to wrap output lines by a prefix
Definition at line 21 of file BPhysTrackVertexMapTool.cxx.
|
protected |
Definition at line 176 of file BPhysTrackVertexMapTool.h.
|
protected |
Definition at line 175 of file BPhysTrackVertexMapTool.h.
|
protected |
Definition at line 160 of file BPhysTrackVertexMapTool.h.
|
privateinherited |
Pointer to StoreGate (detector store by default)
Definition at line 393 of file AthCommonDataStore.h.
|
protected |
Definition at line 161 of file BPhysTrackVertexMapTool.h.
|
privateinherited |
Pointer to StoreGate (event store by default)
Definition at line 390 of file AthCommonDataStore.h.
|
protected |
Definition at line 162 of file BPhysTrackVertexMapTool.h.
|
private |
Definition at line 186 of file BPhysTrackVertexMapTool.h.
|
private |
Definition at line 188 of file BPhysTrackVertexMapTool.h.
|
private |
Definition at line 189 of file BPhysTrackVertexMapTool.h.
|
private |
Definition at line 190 of file BPhysTrackVertexMapTool.h.
Definition at line 173 of file BPhysTrackVertexMapTool.h.
|
protected |
Definition at line 158 of file BPhysTrackVertexMapTool.h.
|
private |
Definition at line 181 of file BPhysTrackVertexMapTool.h.
|
protected |
Definition at line 167 of file BPhysTrackVertexMapTool.h.
|
protected |
Definition at line 171 of file BPhysTrackVertexMapTool.h.
|
protected |
Definition at line 170 of file BPhysTrackVertexMapTool.h.
|
protected |
Definition at line 157 of file BPhysTrackVertexMapTool.h.
|
private |
Definition at line 182 of file BPhysTrackVertexMapTool.h.
|
private |
Definition at line 183 of file BPhysTrackVertexMapTool.h.
|
protected |
Definition at line 169 of file BPhysTrackVertexMapTool.h.
|
protected |
Definition at line 168 of file BPhysTrackVertexMapTool.h.
|
protected |
Definition at line 159 of file BPhysTrackVertexMapTool.h.
|
protected |
Definition at line 165 of file BPhysTrackVertexMapTool.h.
|
protected |
Definition at line 166 of file BPhysTrackVertexMapTool.h.
|
privateinherited |
Definition at line 399 of file AthCommonDataStore.h.
|
protected |
Definition at line 156 of file BPhysTrackVertexMapTool.h.
|
privateinherited |
Definition at line 398 of file AthCommonDataStore.h.