![]() |
ATLAS Offline Software
|
This validation tool writes basic information about Trk::TrackParticleBase into an ntuple;. More...
#include <BasicValTrkParticleNtupleTool.h>
Public Member Functions | |
| BasicValTrkParticleNtupleTool (const std::string &, const std::string &, const IInterface *) | |
| ~BasicValTrkParticleNtupleTool () | |
| StatusCode | initialize () |
| StatusCode | finalize () |
| finalize | |
| virtual StatusCode | addNtupleItems (TTree *tree) |
| add branches to the tree Should be called once (per track collection and tree) dunring the initialisation phase by the calling algorithm (usually Trk::TrackValidationNtupleWriter) | |
| virtual StatusCode | writeTrackData (const Trk::Track &, const int iterationIndex, const unsigned int fitStatCode) |
| fill AND write ntuple data of a given track | |
| virtual StatusCode | writeTrackParticleData (const Trk::TrackParticleBase &) |
| fill AND write ntuple data of a given track particle | |
| virtual StatusCode | fillTrackData (const Trk::Track &, const int iterationIndex, const unsigned int fitStatCode) |
| fill ntuple data of a given track without writing the record. | |
| virtual StatusCode | fillTrackParticleData (const Trk::TrackParticleBase &) |
| fill ntuple data of a given track particle without writing the record. | |
| virtual StatusCode | fillTrackParameter (const Trk::TrackParameters *, const int iterationIndex) |
| fill ntuple data of a given track without writing the record. | |
| virtual StatusCode | fillMeasurementData (const Trk::MeasurementBase *, const Trk::TrackParameters *) |
| fill ntuple data of given measurement and track parameters without writing the record | |
| virtual StatusCode | fillOutlierData (const Trk::MeasurementBase *, const Trk::TrackParameters *, const Trk::FitQualityOnSurface *) |
| fill ntuple data of an outlier measurement (without writing the record yet). | |
| virtual StatusCode | fillHoleData (const Trk::TrackStateOnSurface &) |
| fill ntuple data of holes on track without writing the record | |
| virtual StatusCode | fillTrackTruthData (const TrackParameters *&, const TrackTruth &, const int truthIndex=-1) |
| fill ntuple data of holes on track without writing the record | |
| virtual StatusCode | writeRecord (TTree *tree) |
| write the filled data into the ntuple | |
| 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 () |
| Interface ID, declared here, and defined below. | |
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 | |
| StatusCode | fillTrkParticlePerigee (const Trk::Perigee *perigee) |
| fill the perigee in ntuple | |
| StatusCode | fillTrkParticleSummary (const Trk::TrackSummary *summary) |
| fill the perigee in ntuple | |
| StatusCode | fillFitQualityData (const Trk::FitQuality *fitQuality) |
| void | resetVariables () |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> | |
Private Attributes | |
| bool | m_bookNewNtuple |
| jobOption: book new ntuple? | |
| std::string | m_ntupleFileName |
| jobOption: Ntuple file name | |
| std::string | m_ntupleDirName |
| jobOption: Ntuple directory name | |
| std::string | m_ntupleTreeName |
| jobOption: Ntuple tree name | |
| TTree * | m_nt |
| Pointer to the NTuple tree. | |
| int | m_TrackIDcounter |
| help variable to link with event property tree | |
| unsigned int | m_lastEventNumber |
| help variable to link with event property tree | |
| int | m_runNumber |
| run number the track belongs to | |
| int | m_eventNumber |
| event number the track belongs to | |
| unsigned char | m_TrackID |
| number of the track within the current event | |
| float | m_Rec_d0 |
| reconstructed track params: local d0 at perigee UNIT:mm | |
| float | m_Rec_z0 |
| reconstructed track params: local z0 at perigee UNIT:mm | |
| float | m_Rec_phi0 |
| reconstructed track params: angle phi at perigee UNIT:rad | |
| float | m_Rec_eta |
| reconstructed track params: pseudorapidity UNIT:1 | |
| float | m_Rec_qOverP |
| reconstructed track params: curvature q/p UNIT:1/MeV | |
| float | m_errord0 |
| error on local d0 at perigee UNIT:mm | |
| float | m_errorz0 |
| error on local z0 at perigee UNIT:mm | |
| float | m_errorphi0 |
| error on angle phi at perigee UNIT:rad | |
| float | m_errortheta0 |
| error on angle theta at perigee UNIT:rad | |
| float | m_errorqoverp |
| error on curvature q/p UNIT:1/MeV | |
| float | m_chi2 |
| chi sqared of the track fit normalized to DOF | |
| unsigned char | m_numberOfPixelHits |
| number of measurements in the Pixels | |
| unsigned char | m_numberOfContribPixelLayers |
| number of contributing layers of the pixel detector | |
| unsigned char | m_numberOfPixelHoles |
| number of pixel layers on track with absence of hits | |
| unsigned char | m_numberOfPixelDeadSensors |
| number of dead pixel sensors crossed | |
| unsigned char | m_numberOfSCTHits |
| number of measurements in the SCT | |
| unsigned char | m_numberOfSCTHoles |
| number of SCT holes | |
| unsigned char | m_numberOfSCTDeadSensors |
| number of dead SCT sensors crossed | |
| unsigned char | m_numberOfTRTHits |
| number of TRT hits | |
| unsigned char | m_numberOfTRTHoles |
| number of TRT holes | |
| unsigned char | m_numberOfTRTDeadStraws |
| number of dead TRT straws crossed | |
| unsigned char | m_numberOfTRTHighThresholdHits |
| number of TRT hits which pass the high threshold | |
| unsigned long | m_idHitPattern |
| bit word carrying information about hit layers | |
| SG::ReadHandleKey< xAOD::EventInfo > | m_evt {this, "EvtInfo", "EventInfo", "EventInfo name"} |
| 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 |
Static Private Attributes | |
| static const float | s_errorEntry = -99999.0 |
| error entry costant | |
This validation tool writes basic information about Trk::TrackParticleBase into an ntuple;.
It can book the ntuple, create the tree directory and add basic entries. This tool is also able to write the current record to the ntuple file and start a new entry. You can also use an existing ntuple tree (which has to have the same track-wise structure) and just use the Trk::BasicValidationNtupleTool to add some ntuple variables.
Every entry (Rec:TrackPartcile) contains the event number, a track id (numbering the tracks within one event).
Perigee parameters and track summary are filled for every track if available.
Definition at line 39 of file BasicValTrkParticleNtupleTool.h.
|
privateinherited |
Definition at line 388 of file AthCommonDataStore.h.
| Trk::BasicValTrkParticleNtupleTool::BasicValTrkParticleNtupleTool | ( | const std::string & | t, |
| const std::string & | n, | ||
| const IInterface * | p ) |
Definition at line 27 of file BasicValTrkParticleNtupleTool.cxx.
|
default |
|
virtual |
add branches to the tree Should be called once (per track collection and tree) dunring the initialisation phase by the calling algorithm (usually Trk::TrackValidationNtupleWriter)
Implements Trk::IValidationNtupleTool.
Definition at line 123 of file BasicValTrkParticleNtupleTool.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
|
private |
Definition at line 311 of file BasicValTrkParticleNtupleTool.cxx.
|
virtual |
fill ntuple data of holes on track without writing the record
Implements Trk::IValidationNtupleTool.
Definition at line 382 of file BasicValTrkParticleNtupleTool.cxx.
|
virtual |
fill ntuple data of given measurement and track parameters without writing the record
Implements Trk::IValidationNtupleTool.
Definition at line 371 of file BasicValTrkParticleNtupleTool.cxx.
|
virtual |
fill ntuple data of an outlier measurement (without writing the record yet).
The TrackParameters and FQoS are optional, i.e. NULL pointers should be handled by the implementation
Implements Trk::IValidationNtupleTool.
Definition at line 376 of file BasicValTrkParticleNtupleTool.cxx.
|
virtual |
fill ntuple data of a given track without writing the record.
Implements Trk::IValidationNtupleTool.
Definition at line 359 of file BasicValTrkParticleNtupleTool.cxx.
|
virtual |
fill ntuple data of a given track without writing the record.
Implements Trk::IValidationNtupleTool.
Definition at line 366 of file BasicValTrkParticleNtupleTool.cxx.
|
virtual |
fill ntuple data of a given track particle without writing the record.
fill track data into variables without actually writing the record
Implements Trk::IValidationNtupleTool.
Definition at line 190 of file BasicValTrkParticleNtupleTool.cxx.
|
virtual |
fill ntuple data of holes on track without writing the record
Implements Trk::IValidationNtupleTool.
Definition at line 386 of file BasicValTrkParticleNtupleTool.cxx.
|
private |
fill the perigee in ntuple
Definition at line 233 of file BasicValTrkParticleNtupleTool.cxx.
|
private |
fill the perigee in ntuple
Definition at line 274 of file BasicValTrkParticleNtupleTool.cxx.
| StatusCode Trk::BasicValTrkParticleNtupleTool::finalize | ( | ) |
finalize
Definition at line 112 of file BasicValTrkParticleNtupleTool.cxx.
| StatusCode Trk::BasicValTrkParticleNtupleTool::initialize | ( | ) |
Definition at line 81 of file BasicValTrkParticleNtupleTool.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 |
Interface ID, declared here, and defined below.
Definition at line 105 of file IValidationNtupleTool.h.
|
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.
|
private |
Definition at line 337 of file BasicValTrkParticleNtupleTool.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.
|
virtual |
write the filled data into the ntuple
Implements Trk::IValidationNtupleTool.
Definition at line 329 of file BasicValTrkParticleNtupleTool.cxx.
|
virtual |
fill AND write ntuple data of a given track
Implements Trk::IValidationNtupleTool.
Definition at line 352 of file BasicValTrkParticleNtupleTool.cxx.
|
virtual |
fill AND write ntuple data of a given track particle
Implements Trk::IValidationNtupleTool.
Definition at line 171 of file BasicValTrkParticleNtupleTool.cxx.
|
private |
jobOption: book new ntuple?
Definition at line 114 of file BasicValTrkParticleNtupleTool.h.
|
private |
chi sqared of the track fit normalized to DOF
Definition at line 143 of file BasicValTrkParticleNtupleTool.h.
|
privateinherited |
Pointer to StoreGate (detector store by default)
Definition at line 393 of file AthCommonDataStore.h.
|
private |
error on local d0 at perigee UNIT:mm
Definition at line 136 of file BasicValTrkParticleNtupleTool.h.
|
private |
error on angle phi at perigee UNIT:rad
Definition at line 138 of file BasicValTrkParticleNtupleTool.h.
|
private |
error on curvature q/p UNIT:1/MeV
Definition at line 140 of file BasicValTrkParticleNtupleTool.h.
|
private |
error on angle theta at perigee UNIT:rad
Definition at line 139 of file BasicValTrkParticleNtupleTool.h.
|
private |
error on local z0 at perigee UNIT:mm
Definition at line 137 of file BasicValTrkParticleNtupleTool.h.
|
private |
event number the track belongs to
Definition at line 126 of file BasicValTrkParticleNtupleTool.h.
|
private |
Definition at line 162 of file BasicValTrkParticleNtupleTool.h.
|
privateinherited |
Pointer to StoreGate (event store by default)
Definition at line 390 of file AthCommonDataStore.h.
|
private |
bit word carrying information about hit layers
Definition at line 158 of file BasicValTrkParticleNtupleTool.h.
|
private |
help variable to link with event property tree
Definition at line 122 of file BasicValTrkParticleNtupleTool.h.
|
private |
Pointer to the NTuple tree.
Definition at line 119 of file BasicValTrkParticleNtupleTool.h.
|
private |
jobOption: Ntuple directory name
Definition at line 116 of file BasicValTrkParticleNtupleTool.h.
|
private |
jobOption: Ntuple file name
Definition at line 115 of file BasicValTrkParticleNtupleTool.h.
|
private |
jobOption: Ntuple tree name
Definition at line 117 of file BasicValTrkParticleNtupleTool.h.
|
private |
number of contributing layers of the pixel detector
Definition at line 147 of file BasicValTrkParticleNtupleTool.h.
|
private |
number of dead pixel sensors crossed
Definition at line 149 of file BasicValTrkParticleNtupleTool.h.
|
private |
number of measurements in the Pixels
Definition at line 146 of file BasicValTrkParticleNtupleTool.h.
|
private |
number of pixel layers on track with absence of hits
Definition at line 148 of file BasicValTrkParticleNtupleTool.h.
|
private |
number of dead SCT sensors crossed
Definition at line 152 of file BasicValTrkParticleNtupleTool.h.
|
private |
number of measurements in the SCT
Definition at line 150 of file BasicValTrkParticleNtupleTool.h.
|
private |
number of SCT holes
Definition at line 151 of file BasicValTrkParticleNtupleTool.h.
|
private |
number of dead TRT straws crossed
Definition at line 155 of file BasicValTrkParticleNtupleTool.h.
|
private |
number of TRT hits which pass the high threshold
Definition at line 156 of file BasicValTrkParticleNtupleTool.h.
|
private |
number of TRT hits
Definition at line 153 of file BasicValTrkParticleNtupleTool.h.
|
private |
number of TRT holes
Definition at line 154 of file BasicValTrkParticleNtupleTool.h.
|
private |
reconstructed track params: local d0 at perigee UNIT:mm
Definition at line 130 of file BasicValTrkParticleNtupleTool.h.
|
private |
reconstructed track params: pseudorapidity UNIT:1
Definition at line 133 of file BasicValTrkParticleNtupleTool.h.
|
private |
reconstructed track params: angle phi at perigee UNIT:rad
Definition at line 132 of file BasicValTrkParticleNtupleTool.h.
|
private |
reconstructed track params: curvature q/p UNIT:1/MeV
Definition at line 134 of file BasicValTrkParticleNtupleTool.h.
|
private |
reconstructed track params: local z0 at perigee UNIT:mm
Definition at line 131 of file BasicValTrkParticleNtupleTool.h.
|
private |
run number the track belongs to
Definition at line 125 of file BasicValTrkParticleNtupleTool.h.
|
private |
number of the track within the current event
Definition at line 127 of file BasicValTrkParticleNtupleTool.h.
|
private |
help variable to link with event property tree
Definition at line 121 of file BasicValTrkParticleNtupleTool.h.
|
privateinherited |
Definition at line 399 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 398 of file AthCommonDataStore.h.
|
staticprivate |
error entry costant
Definition at line 160 of file BasicValTrkParticleNtupleTool.h.