![]() |
ATLAS Offline Software
|
#include <SimpleIDNtupleTool.h>
Public Member Functions | |
| SimpleIDNtupleTool (const std::string &type, const std::string &name, const IInterface *parent) | |
| virtual | ~SimpleIDNtupleTool () |
| virtual StatusCode | initialize () override |
| virtual StatusCode | finalize () override |
| virtual void | dumpTrack (int itrk, const Trk::AlignTrack *alignTrack) override |
| fills track information to ntuple | |
| void | fillHits (const Trk::AlignTrack *alignTrack) |
| fills hit information to ntuple | |
| virtual void | storeHitmap () override |
| stores hitmap for writing to ntuple | |
| virtual void | fillHitmap () override |
| fills ntuple with hit information | |
| virtual void | fillSummary () override |
| fills ntuple with event and track summary information | |
| virtual void | showStatistics () override |
| write statistics out to log file | |
| virtual void | setNtuple (TFile *ntuple) override |
| sets the output stream for the logfile | |
| virtual StatusCode | fillNtuple () override |
| writes trees and histograms to ntuple | |
| virtual void | fillChi2VChamberShift (const int, const int, int *, double **, double **, double **, double **, double **, double **) |
| used for numerical derivatives to write chi2 vs. | |
| virtual void | setLogStream (std::ostream *os) |
| returns pointer to TFile containing 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 () |
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. | |
Protected Attributes | |
| std::ostream * | m_logStream = nullptr |
| logfile output stream | |
Private Types | |
| typedef ServiceHandle< StoreGateSvc > | StoreGateSvc_t |
Private Member Functions | |
| void | initializeNtuple () |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> | |
Private Attributes | |
| ToolHandle< Trk::ITrackParticleCreatorTool > | m_particleCreator |
| Pointer to track particle creator tool. | |
| ToolHandle< Trk::IAlignModuleTool > | m_alignModuleTool |
| Pointer to AlignmModuleTool. | |
| const TRT_ID * | m_idHelper |
| TFile * | m_file |
| TTree * | m_tree |
| int | m_runNumber |
| int | m_evtNumber |
| double | m_xvtx |
| x coord of track perigee (xvtx in ntuple) | |
| double | m_yvtx |
| y coord of track perigee (yvtx in ntuple) | |
| double | m_zvtx |
| z coord of track perigee (zvtx in ntuple) | |
| double | m_d0 |
| d0 perigee parameter of reconstructed track (d0 in ntuple) | |
| double | m_z0 |
| z0 perigee parameter of reconstructed track (z0 in ntuple) | |
| double | m_phi0 |
| phi perigee parameter of reconstructed track (phi0 in ntuple) | |
| double | m_theta |
| theta perigee parameter of reconstructed track (theta in ntuple) | |
| double | m_qoverp |
| Q over p perigee parameter of reconstructed track (qoverp in ntuple) | |
| double | m_pt |
| pt perigee parameter of reconstructed track (pt in ntuple) | |
| double | m_eta |
| eta of perigee of reconstructed track (eta in ntuple) | |
| double | m_chi2 |
| Chi2 of the track fit (chi2 in ntuple) | |
| int | m_ndof |
| number of degrees of freedom of the track fit (ndof in ntuple) | |
| double | m_chi2prob |
| Chi2 probability of the track fit (chi2prob in ntuple) | |
| int | m_nhits |
| number of hits on track [including scattering centers] (nhits in ntuple) | |
| int | m_nhitstrt |
| number of TRT hits on track (ntrthits in ntuple) | |
| int | m_nhitssct |
| number of SCT hits on track (nscthits in ntuple) | |
| int | m_nhitspix |
| number of Pixel hits on track (ntrthits in ntuple) | |
| int | m_nshared |
| number of shared hits on track (nshared in ntuple) | |
| int | m_nshsct |
| number of shared SCT hits on track (nshsct in ntuple) | |
| int | m_nshpix |
| number of shared Pixel hits on track (nshpix in ntuple) | |
| int | m_nholes |
| number of holes on track (nholes in ntuple) | |
| int | m_nhsct |
| number of SCT holes on track (nhsct in ntuple) | |
| int | m_nhpix |
| number of Pixel holes on track (nhpix in ntuple) | |
| double * | m_hit_rho |
| radius of hit (hit_rho in ntuple) | |
| double * | m_hit_phi |
| phi angle of hit (hit_phi in ntuple) | |
| double * | m_hit_z |
| z coord of hit (hit_z in ntuple) | |
| double * | m_hit_cotth |
| cot(theta) of hit (hit_cotth in ntuple) | |
| double * | m_hit_eta |
| eta angle of hit (hit_eta in ntuple) | |
| double * | m_hit_xloc |
| local x coord of hit (hit_xloc in ntuple) | |
| double * | m_hit_yloc |
| local y coord of hit (hit_yloc in ntuple) | |
| double * | m_hit_zloc |
| local z coord of hit (hit_zloc in ntuple) | |
| double * | m_hit_drd |
| drift distance to wire for hit (hit_drd in ntuple) | |
| double * | m_hit_sig |
| hit error (hit_sig in ntuple) | |
| double * | m_hit_resx |
| X-residual of the hit. | |
| double * | m_hit_resx_err |
| X-residual error of the hit. | |
| double * | m_hit_resy |
| Y-residual of the hit. | |
| double * | m_hit_resy_err |
| Y-residual error of the hit. | |
| double * | m_hit_tpar_x |
| track parameter locX | |
| double * | m_hit_tpar_y |
| track parameter locY | |
| int * | m_hit_det |
| detector type for the hit | |
| int * | m_hit_type |
| hit type | |
| double * | m_hit_derivx_transx |
| derivatives of X-residual wrt. | |
| double * | m_hit_derivx_transy |
| derivatives of X-residual wrt. | |
| double * | m_hit_derivx_transz |
| derivatives of X-residual wrt. | |
| double * | m_hit_derivx_rotx |
| derivatives of X-residual wrt. | |
| double * | m_hit_derivx_roty |
| derivatives of X-residual wrt. | |
| double * | m_hit_derivx_rotz |
| derivatives of X-residual wrt. | |
| double * | m_hit_derivx_bowx |
| derivatives of X-residual wrt. | |
| double * | m_hit_derivx_bowy |
| derivatives of X-residual wrt. | |
| double * | m_hit_derivx_bowz |
| derivatives of X-residual wrt. | |
| double * | m_hit_derivy_transx |
| derivatives of Y-residual wrt. | |
| double * | m_hit_derivy_transy |
| derivatives of Y-residual wrt. | |
| double * | m_hit_derivy_transz |
| derivatives of Y-residual wrt. | |
| double * | m_hit_derivy_rotx |
| derivatives of Y-residual wrt. | |
| double * | m_hit_derivy_roty |
| derivatives of Y-residual wrt. | |
| double * | m_hit_derivy_rotz |
| derivatives of Y-residual wrt. | |
| double * | m_hit_derivy_bowx |
| derivatives of Y-residual wrt. | |
| double * | m_hit_derivy_bowy |
| derivatives of Y-residual wrt. | |
| double * | m_hit_derivy_bowz |
| derivatives of Y-residual wrt. | |
| int | m_max_hits |
| max number of hits on track stored in ntuple | |
| bool | m_storeDerivatives |
| 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 36 of file SimpleIDNtupleTool.h.
|
privateinherited |
Definition at line 388 of file AthCommonDataStore.h.
| InDet::SimpleIDNtupleTool::SimpleIDNtupleTool | ( | const std::string & | type, |
| const std::string & | name, | ||
| const IInterface * | parent ) |
Definition at line 38 of file SimpleIDNtupleTool.cxx.
|
virtual |
Definition at line 116 of file SimpleIDNtupleTool.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 |
fills track information to ntuple
Implements Trk::IFillNtupleTool.
Definition at line 198 of file SimpleIDNtupleTool.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
|
inlinevirtualinherited |
used for numerical derivatives to write chi2 vs.
chamber positions
Definition at line 59 of file IFillNtupleTool.h.
|
overridevirtual |
fills ntuple with hit information
Implements Trk::IFillNtupleTool.
Definition at line 590 of file SimpleIDNtupleTool.cxx.
| void InDet::SimpleIDNtupleTool::fillHits | ( | const Trk::AlignTrack * | alignTrack | ) |
fills hit information to ntuple
Definition at line 336 of file SimpleIDNtupleTool.cxx.
|
overridevirtual |
writes trees and histograms to ntuple
Implements Trk::IFillNtupleTool.
Definition at line 181 of file SimpleIDNtupleTool.cxx.
|
overridevirtual |
fills ntuple with event and track summary information
Implements Trk::IFillNtupleTool.
Definition at line 594 of file SimpleIDNtupleTool.cxx.
|
overridevirtual |
Implements Trk::IFillNtupleTool.
Definition at line 191 of file SimpleIDNtupleTool.cxx.
|
overridevirtual |
Implements Trk::IFillNtupleTool.
Definition at line 161 of file SimpleIDNtupleTool.cxx.
|
private |
Definition at line 602 of file SimpleIDNtupleTool.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 80 of file IFillNtupleTool.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.
|
inlinevirtualinherited |
returns pointer to TFile containing ntuple
sets the output stream for the logfile
Definition at line 67 of file IFillNtupleTool.h.
|
inlineoverridevirtual |
sets the output stream for the logfile
Implements Trk::IFillNtupleTool.
Definition at line 56 of file SimpleIDNtupleTool.h.
|
overridevirtual |
write statistics out to log file
Implements Trk::IFillNtupleTool.
Definition at line 598 of file SimpleIDNtupleTool.cxx.
|
overridevirtual |
stores hitmap for writing to ntuple
Implements Trk::IFillNtupleTool.
Definition at line 586 of file SimpleIDNtupleTool.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 |
Pointer to AlignmModuleTool.
Definition at line 63 of file SimpleIDNtupleTool.h.
|
private |
Chi2 of the track fit (chi2 in ntuple)
Definition at line 107 of file SimpleIDNtupleTool.h.
|
private |
Chi2 probability of the track fit (chi2prob in ntuple)
Definition at line 113 of file SimpleIDNtupleTool.h.
|
private |
d0 perigee parameter of reconstructed track (d0 in ntuple)
Definition at line 86 of file SimpleIDNtupleTool.h.
|
privateinherited |
Pointer to StoreGate (detector store by default)
Definition at line 393 of file AthCommonDataStore.h.
|
private |
eta of perigee of reconstructed track (eta in ntuple)
Definition at line 104 of file SimpleIDNtupleTool.h.
|
private |
Definition at line 72 of file SimpleIDNtupleTool.h.
|
privateinherited |
Pointer to StoreGate (event store by default)
Definition at line 390 of file AthCommonDataStore.h.
|
private |
Definition at line 67 of file SimpleIDNtupleTool.h.
|
private |
cot(theta) of hit (hit_cotth in ntuple)
Definition at line 157 of file SimpleIDNtupleTool.h.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
detector type for the hit
Definition at line 185 of file SimpleIDNtupleTool.h.
|
private |
drift distance to wire for hit (hit_drd in ntuple)
Definition at line 172 of file SimpleIDNtupleTool.h.
|
private |
eta angle of hit (hit_eta in ntuple)
Definition at line 160 of file SimpleIDNtupleTool.h.
|
private |
phi angle of hit (hit_phi in ntuple)
Definition at line 151 of file SimpleIDNtupleTool.h.
|
private |
X-residual of the hit.
Definition at line 177 of file SimpleIDNtupleTool.h.
|
private |
X-residual error of the hit.
Definition at line 178 of file SimpleIDNtupleTool.h.
|
private |
Y-residual of the hit.
Definition at line 179 of file SimpleIDNtupleTool.h.
|
private |
Y-residual error of the hit.
Definition at line 180 of file SimpleIDNtupleTool.h.
|
private |
radius of hit (hit_rho in ntuple)
Definition at line 148 of file SimpleIDNtupleTool.h.
|
private |
hit error (hit_sig in ntuple)
Definition at line 175 of file SimpleIDNtupleTool.h.
|
private |
track parameter locX
Definition at line 182 of file SimpleIDNtupleTool.h.
|
private |
track parameter locY
Definition at line 183 of file SimpleIDNtupleTool.h.
|
private |
hit type
Definition at line 186 of file SimpleIDNtupleTool.h.
|
private |
local x coord of hit (hit_xloc in ntuple)
Definition at line 163 of file SimpleIDNtupleTool.h.
|
private |
local y coord of hit (hit_yloc in ntuple)
Definition at line 166 of file SimpleIDNtupleTool.h.
|
private |
z coord of hit (hit_z in ntuple)
Definition at line 154 of file SimpleIDNtupleTool.h.
|
private |
local z coord of hit (hit_zloc in ntuple)
Definition at line 169 of file SimpleIDNtupleTool.h.
|
private |
Definition at line 65 of file SimpleIDNtupleTool.h.
|
protectedinherited |
logfile output stream
Definition at line 76 of file IFillNtupleTool.h.
|
private |
max number of hits on track stored in ntuple
Definition at line 207 of file SimpleIDNtupleTool.h.
|
private |
number of degrees of freedom of the track fit (ndof in ntuple)
Definition at line 110 of file SimpleIDNtupleTool.h.
|
private |
number of hits on track [including scattering centers] (nhits in ntuple)
Definition at line 118 of file SimpleIDNtupleTool.h.
|
private |
number of Pixel hits on track (ntrthits in ntuple)
Definition at line 127 of file SimpleIDNtupleTool.h.
|
private |
number of SCT hits on track (nscthits in ntuple)
Definition at line 124 of file SimpleIDNtupleTool.h.
|
private |
number of TRT hits on track (ntrthits in ntuple)
Definition at line 121 of file SimpleIDNtupleTool.h.
|
private |
number of holes on track (nholes in ntuple)
Definition at line 139 of file SimpleIDNtupleTool.h.
|
private |
number of Pixel holes on track (nhpix in ntuple)
Definition at line 145 of file SimpleIDNtupleTool.h.
|
private |
number of SCT holes on track (nhsct in ntuple)
Definition at line 142 of file SimpleIDNtupleTool.h.
|
private |
number of shared hits on track (nshared in ntuple)
Definition at line 130 of file SimpleIDNtupleTool.h.
|
private |
number of shared Pixel hits on track (nshpix in ntuple)
Definition at line 136 of file SimpleIDNtupleTool.h.
|
private |
number of shared SCT hits on track (nshsct in ntuple)
Definition at line 133 of file SimpleIDNtupleTool.h.
|
private |
Pointer to track particle creator tool.
Definition at line 62 of file SimpleIDNtupleTool.h.
|
private |
phi perigee parameter of reconstructed track (phi0 in ntuple)
Definition at line 92 of file SimpleIDNtupleTool.h.
|
private |
pt perigee parameter of reconstructed track (pt in ntuple)
Definition at line 101 of file SimpleIDNtupleTool.h.
|
private |
Q over p perigee parameter of reconstructed track (qoverp in ntuple)
Definition at line 98 of file SimpleIDNtupleTool.h.
|
private |
Definition at line 71 of file SimpleIDNtupleTool.h.
|
private |
Definition at line 209 of file SimpleIDNtupleTool.h.
|
private |
theta perigee parameter of reconstructed track (theta in ntuple)
Definition at line 95 of file SimpleIDNtupleTool.h.
|
private |
Definition at line 68 of file SimpleIDNtupleTool.h.
|
privateinherited |
Definition at line 399 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 398 of file AthCommonDataStore.h.
|
private |
x coord of track perigee (xvtx in ntuple)
Definition at line 77 of file SimpleIDNtupleTool.h.
|
private |
y coord of track perigee (yvtx in ntuple)
Definition at line 80 of file SimpleIDNtupleTool.h.
|
private |
z0 perigee parameter of reconstructed track (z0 in ntuple)
Definition at line 89 of file SimpleIDNtupleTool.h.
|
private |
z coord of track perigee (zvtx in ntuple)
Definition at line 83 of file SimpleIDNtupleTool.h.