![]() |
ATLAS Offline Software
|
Validation Algorithm to retrieve a Track Collection, loop over the tracks and write track information into ntuples using IValidationNtupleTool. More...
#include <TrackValidationNtupleWriter.h>
Public Member Functions | |
| TrackValidationNtupleWriter (const std::string &name, ISvcLocator *pSvcLocator) | |
| Standard Athena-Algorithm Constructor. | |
| ~TrackValidationNtupleWriter () | |
| Default Destructor. | |
| StatusCode | initialize () |
| standard Athena-Algorithm method | |
| StatusCode | execute () |
| standard Athena-Algorithm method | |
| StatusCode | finalize () |
| standard Athena-Algorithm method | |
| virtual StatusCode | sysInitialize () override |
| Override sysInitialize. | |
| virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. | |
| 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 | 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 |
Protected Member Functions | |
| StatusCode | writeTrackData (unsigned int trackColIndex, std::vector< Trk::ValidationTrackTruthData > &truthData, const Trk::Vertex *primaryVertex=NULL) |
| < following methods and atributes are used in derived class TrigTrackValidationNtupleWriter Private method to associate truth to a track | |
| StatusCode | writeTrackParticleData (unsigned int trackParticleColIndex) |
| method to write track particle data to Ntuple. | |
| 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. | |
Protected Attributes | |
| ToolHandleArray< Trk::ITrackValidationNtupleTool > | m_ValidationNtupleTools |
| set of tools for writing Trk::Track into the Ntuple | |
| ToolHandle< Trk::IValidationNtupleTool > | m_ValTrkParticleNtupleTool |
| Tool for writting Rec::TrackParticle into the Ntuple – OBSOLETE. | |
| ToolHandle< Trk::ITruthNtupleTool > | m_truthNtupleTool |
| ToolHandle< Trk::IJetTruthNtupleTool > | m_jetTruthNtupleTool |
| ToolHandleArray< Trk::ITrackTruthClassifier > | m_trackTruthClassifierHandles |
| jobO: list of truth classifiers | |
| std::vector< const Trk::ITrackTruthClassifier * > | m_trackTruthClassifiers |
| the truth classifiers | |
| ToolHandleArray< Trk::IEventPropertyNtupleTool > | m_eventPropertyNtupleHandles |
| jobO: list of event property tools | |
| std::vector< Trk::IEventPropertyNtupleTool * > | m_eventPropertyNtupleTools |
| list of event property tools | |
| std::vector< std::string > | m_inputTrackCollection |
| name of the TrackCollection | |
| std::vector< std::string > | m_inputTrackParticleCollection |
| name of the TrackParticleCollection | |
| std::vector< std::string > | m_trackTruthCollectionName |
| name of the TrackTruthCollection | |
| std::string | m_McEventCollectionName |
| name of the McEventCollection | |
| std::string | m_inputPrimaryVertexCollection |
| SG key of the input primary vertex collection (used by the track selector) | |
| std::string | m_ntupleFileName |
| jobOption: Ntuple file name | |
| std::string | m_ntupleDirName |
| jobOption: Ntuple directory name | |
| ToolHandle< Trk::ITruthToTrack > | m_truthToTrack |
| Tool handle to the Trk::TruthToTrack tool. | |
| ToolHandle< Trk::ITrackSelectorTool > | m_trackSelector |
| Tool handle to the Trk::ITrackSelectorTool. | |
| ToolHandle< Trk::IGenParticleSelector > | m_genPartSelector |
| Tool handle to the Trk::IGenParticleSelector. | |
| ToolHandle< Trk::IGenParticleJetFinder > | m_genJetFinder |
| Tool to find jets. | |
| bool | m_useExternalEventLinkTree |
| if TVNW should make event tree itself or assume CBNT does | |
| bool | m_doTruth |
| Switch to turn on / off truth. | |
| bool | m_doTrackParticle |
| HepMC::GenParticlePtr | m_visibleParticleWithoutTruth |
| Switch to turn on/pff recording track particle trees into Ntuple. | |
| std::vector< unsigned int > | m_nTrackTreeRecords |
| std::vector< TTree * > | m_trees |
| Pointer to the NTuple trees (one for each input track collection) | |
| TTree * | m_eventLinkTree |
| pointer to event-wise ntuple trees (one for all input track collections + truth) | |
Private Types | |
| typedef ServiceHandle< StoreGateSvc > | StoreGateSvc_t |
Private Member Functions | |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> | |
Private Attributes | |
| DataObjIDColl | m_extendedExtraObjects |
| 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 |
Validation Algorithm to retrieve a Track Collection, loop over the tracks and write track information into ntuples using IValidationNtupleTool.
For information about the ntuple variables filled, have a look into the IValidationNtupleTool implementation used.
Definition at line 48 of file TrackValidationNtupleWriter.h.
|
privateinherited |
Definition at line 388 of file AthCommonDataStore.h.
| Trk::TrackValidationNtupleWriter::TrackValidationNtupleWriter | ( | const std::string & | name, |
| ISvcLocator * | pSvcLocator ) |
Standard Athena-Algorithm Constructor.
Definition at line 45 of file TrackValidationNtupleWriter.cxx.
|
default |
Default Destructor.
|
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.
| StatusCode Trk::TrackValidationNtupleWriter::execute | ( | ) |
standard Athena-Algorithm method
Definition at line 318 of file TrackValidationNtupleWriter.cxx.
|
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
|
overridevirtualinherited |
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 50 of file AthAlgorithm.cxx.
| StatusCode Trk::TrackValidationNtupleWriter::finalize | ( | ) |
standard Athena-Algorithm method
Definition at line 732 of file TrackValidationNtupleWriter.cxx.
| StatusCode Trk::TrackValidationNtupleWriter::initialize | ( | ) |
standard Athena-Algorithm method
Definition at line 110 of file TrackValidationNtupleWriter.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.
|
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.
|
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< Algorithm > >.
Reimplemented in AthAnalysisAlgorithm, AthFilterAlgorithm, AthHistogramAlgorithm, and PyAthena::Alg.
Definition at line 66 of file AthAlgorithm.cxx.
|
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.
|
protected |
< following methods and atributes are used in derived class TrigTrackValidationNtupleWriter Private method to associate truth to a track
Definition at line 525 of file TrackValidationNtupleWriter.cxx.
|
protected |
method to write track particle data to Ntuple.
Rec::Track particles are retrieved from SG
Definition at line 677 of file TrackValidationNtupleWriter.cxx.
|
privateinherited |
Pointer to StoreGate (detector store by default)
Definition at line 393 of file AthCommonDataStore.h.
|
protected |
Definition at line 97 of file TrackValidationNtupleWriter.h.
|
protected |
Switch to turn on / off truth.
Definition at line 96 of file TrackValidationNtupleWriter.h.
|
protected |
pointer to event-wise ntuple trees (one for all input track collections + truth)
Definition at line 102 of file TrackValidationNtupleWriter.h.
|
protected |
jobO: list of event property tools
Definition at line 80 of file TrackValidationNtupleWriter.h.
|
protected |
list of event property tools
Definition at line 81 of file TrackValidationNtupleWriter.h.
|
privateinherited |
Pointer to StoreGate (event store by default)
Definition at line 390 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 79 of file AthAlgorithm.h.
|
protected |
Tool to find jets.
Definition at line 94 of file TrackValidationNtupleWriter.h.
|
protected |
Tool handle to the Trk::IGenParticleSelector.
Definition at line 93 of file TrackValidationNtupleWriter.h.
|
protected |
SG key of the input primary vertex collection (used by the track selector)
Definition at line 87 of file TrackValidationNtupleWriter.h.
|
protected |
name of the TrackCollection
Definition at line 83 of file TrackValidationNtupleWriter.h.
|
protected |
name of the TrackParticleCollection
Definition at line 84 of file TrackValidationNtupleWriter.h.
|
protected |
Definition at line 77 of file TrackValidationNtupleWriter.h.
|
protected |
name of the McEventCollection
Definition at line 86 of file TrackValidationNtupleWriter.h.
|
protected |
Definition at line 100 of file TrackValidationNtupleWriter.h.
|
protected |
jobOption: Ntuple directory name
Definition at line 89 of file TrackValidationNtupleWriter.h.
|
protected |
jobOption: Ntuple file name
Definition at line 88 of file TrackValidationNtupleWriter.h.
|
protected |
Tool handle to the Trk::ITrackSelectorTool.
Definition at line 92 of file TrackValidationNtupleWriter.h.
|
protected |
jobO: list of truth classifiers
Definition at line 78 of file TrackValidationNtupleWriter.h.
|
protected |
the truth classifiers
Definition at line 79 of file TrackValidationNtupleWriter.h.
|
protected |
name of the TrackTruthCollection
Definition at line 85 of file TrackValidationNtupleWriter.h.
|
protected |
Pointer to the NTuple trees (one for each input track collection)
Definition at line 101 of file TrackValidationNtupleWriter.h.
|
protected |
Definition at line 76 of file TrackValidationNtupleWriter.h.
|
protected |
Tool handle to the Trk::TruthToTrack tool.
Definition at line 91 of file TrackValidationNtupleWriter.h.
|
protected |
if TVNW should make event tree itself or assume CBNT does
Definition at line 95 of file TrackValidationNtupleWriter.h.
|
protected |
set of tools for writing Trk::Track into the Ntuple
Definition at line 74 of file TrackValidationNtupleWriter.h.
|
protected |
Tool for writting Rec::TrackParticle into the Ntuple – OBSOLETE.
Definition at line 75 of file TrackValidationNtupleWriter.h.
|
privateinherited |
Definition at line 399 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 398 of file AthCommonDataStore.h.
|
protected |
Switch to turn on/pff recording track particle trees into Ntuple.
cludge to treat G4's "fake fakes"
Definition at line 99 of file TrackValidationNtupleWriter.h.