|
ATLAS Offline Software
|
#include <TrackInformationNtupleTool.h>
|
| TrackInformationNtupleTool (const std::string &, const std::string &, const IInterface *) |
|
| ~TrackInformationNtupleTool () |
|
StatusCode | initialize () |
|
StatusCode | 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) More...
|
|
virtual StatusCode | fillTrackData (const Trk::Track &, const int iterationIndex, const unsigned int fitStatCode) |
| fill ntuple data of a given track without writing the record. More...
|
|
virtual StatusCode | fillTrackParticleData (const Trk::TrackParticleBase &) |
| fill ntuple data of a given TrackParticle without writing the record. More...
|
|
virtual StatusCode | fillTrackTruthData (const TrackParameters *&, const TrackTruth &, const int) |
| fill data about the truth match (score, parameter-pulls etc) More...
|
|
virtual void | resetVariables () |
| reset the variables after writing the record to disk ntuple More...
|
|
ServiceHandle< StoreGateSvc > & | evtStore () |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
virtual StatusCode | sysInitialize () override |
| Perform system initialization for an algorithm. More...
|
|
virtual StatusCode | sysStart () override |
| Handle START transition. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. More...
|
|
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| Declare a new Gaudi property. More...
|
|
void | updateVHKA (Gaudi::Details::PropertyBase &) |
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
◆ StoreGateSvc_t
◆ TrackInformationNtupleTool()
Trk::TrackInformationNtupleTool::TrackInformationNtupleTool |
( |
const std::string & |
t, |
|
|
const std::string & |
n, |
|
|
const IInterface * |
p |
|
) |
| |
◆ ~TrackInformationNtupleTool()
Trk::TrackInformationNtupleTool::~TrackInformationNtupleTool |
( |
| ) |
|
|
default |
◆ addNtupleItems()
StatusCode Trk::TrackInformationNtupleTool::addNtupleItems |
( |
TTree * |
tree | ) |
|
|
virtual |
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
338 return PBASE::declareProperty(
name, property,
doc);
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ extraDeps_update_handler()
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
◆ fillTrackData()
StatusCode Trk::TrackInformationNtupleTool::fillTrackData |
( |
const Trk::Track & |
track, |
|
|
const int |
iterationIndex, |
|
|
const unsigned int |
fitStatCode |
|
) |
| |
|
virtual |
fill ntuple data of a given track without writing the record.
fill track data into variables without actually writing the record
- if this method is called twice without writing the ntuple inbetween the first data will be lost!
Implements Trk::ITrackValidationNtupleTool.
Definition at line 95 of file TrackInformationNtupleTool.cxx.
105 msg(MSG::WARNING) <<
"Could not retrieve event info" <<
endmsg;
130 if (
track.fitQuality() !=
nullptr) {
138 ATH_MSG_VERBOSE (
"counts # of track states with measurement or outlier");
142 if (trackStates !=
nullptr) {
144 for (
const auto *trackState : *trackStates) {
147 msg(MSG::WARNING) <<
"TrackStateOnSurface == Null" <<
endmsg;
155 msg(MSG::WARNING) <<
"measurementOnTrack == Null for a TrackStateOnSurface "
156 <<
"of type Measurement or Outlier" <<
endmsg;
157 return StatusCode::FAILURE;
163 return StatusCode::SUCCESS;
◆ fillTrackParticleData()
fill ntuple data of a given TrackParticle without writing the record.
fill trackparticle data into variables without actually writing the record
- if this method is called twice without writing the ntuple inbetween the first data will be lost!
Implements Trk::ITrackValidationNtupleTool.
Definition at line 169 of file TrackInformationNtupleTool.cxx.
177 msg(MSG::WARNING) <<
"Could not retrieve event info" <<
endmsg;
197 if (
particle.fitQuality() !=
nullptr) {
220 return StatusCode::SUCCESS;
◆ fillTrackTruthData()
◆ finalize()
StatusCode Trk::TrackInformationNtupleTool::finalize |
( |
| ) |
|
◆ getSeed()
◆ initialize()
StatusCode Trk::TrackInformationNtupleTool::initialize |
( |
| ) |
|
◆ inputHandles()
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.
◆ interfaceID()
const InterfaceID & Trk::ITrackValidationNtupleTool::interfaceID |
( |
| ) |
|
|
inlinestaticinherited |
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ outputHandles()
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.
◆ renounce()
◆ renounceArray()
◆ resetVariables()
void Trk::TrackInformationNtupleTool::resetVariables |
( |
| ) |
|
|
virtual |
◆ sysInitialize()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ m_detStore
◆ m_eventNumber
int Trk::TrackInformationNtupleTool::m_eventNumber |
|
private |
◆ m_evt
◆ m_evtStore
◆ m_fitStatusCode
int Trk::TrackInformationNtupleTool::m_fitStatusCode |
|
private |
◆ m_iterIndex
int Trk::TrackInformationNtupleTool::m_iterIndex |
|
private |
◆ m_lastEventNumber
unsigned int Trk::TrackInformationNtupleTool::m_lastEventNumber |
|
private |
◆ m_ndof
int Trk::TrackInformationNtupleTool::m_ndof |
|
private |
◆ m_nHits
int Trk::TrackInformationNtupleTool::m_nHits |
|
private |
◆ m_particleHypothesis
int Trk::TrackInformationNtupleTool::m_particleHypothesis |
|
private |
◆ m_Rec_chi2overNdof
float Trk::TrackInformationNtupleTool::m_Rec_chi2overNdof |
|
private |
◆ m_runNumber
int Trk::TrackInformationNtupleTool::m_runNumber |
|
private |
◆ m_trackFitAuthor
int Trk::TrackInformationNtupleTool::m_trackFitAuthor |
|
private |
◆ m_TrackID
int Trk::TrackInformationNtupleTool::m_TrackID |
|
private |
◆ m_TrackIDcounter
int Trk::TrackInformationNtupleTool::m_TrackIDcounter |
|
private |
◆ m_trackSeedAuthor
int Trk::TrackInformationNtupleTool::m_trackSeedAuthor |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
@ numberOfPixelHits
number of pixel layers on track with absence of hits
@ MuidCombined
MuidCombined.
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
@ TrigTRTxK
TrigInDetTracks produced by TrigTRTxK, running at trigger LVL2.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
@ MuidStandAlone
MuidStandalone.
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
@ Muonboy
Tracks from MuonBoy.
@ SimpleAmbiguityProcessorTool
Added because of compilation problems.
#define ATH_MSG_VERBOSE(x)
@ InDetAmbiTrackSelectionTool
Added because of compilation problems.
@ TRTSeededSingleSpTrackFinder
TRTSeededSingleSpTrackFinder.
virtual void setOwner(IDataHandleHolder *o)=0
@ Outlier
This TSoS contains an outlier, that is, it contains a MeasurementBase/RIO_OnTrack which was not used ...
@ SiSpacePointsSeedMaker_LowMomentum
@ MuGirlUnrefitted
Tracks from MuGirl not refitted with iPat.
@ numberOfSCTHits
number of SCT holes
@ MuidVertexAssociator
MuidVertexAssociator.
@ MuGirlLowBeta
MuGirlLowBeta.
@ SiSpacePointsSeedMaker_Cosmic
Entries allowing to distinguish different seed makers.
@ SiSpacePointsSeedMaker_BeamGas
@ STACO
Tracks produced by STACO.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
@ FatrasSimulation
Fatras Simulation.
@ InDetAmbiguitySolver
Tracks with InDetAmbiguitySolver used.
@ TrigTRTLUT
TrigInDetTracks produced by TrigTRTLUT, running at trigger LVL2.
@ SiSpacePointsSeedMaker_HeavyIon
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
@ numberOfTRTHits
number of TRT outliers
A summary of the information contained by a track.
@ TrigIDSCAN
TrigInDetTracks produced by TrigIDSCAN, running at trigger LVL2.
@ TRTSeededTrackFinder
Tracks from TRT Seeded Track finder.
@ SiSPSeededFinder
Tracks from SiSPSeedFinder.
@ SiCTBTracking
Tracks from SiCTBTracking.
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
@ MuTag
Tracks produced by MuTag.
@ Fatras
Track from FATRAS.
@ TrigSiTrack
TrigInDetTracks produced by TrigSiTrack, running at trigger LVL2.
@ xKalmanLegacyCnv
Added because of compilation problems.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
@ Measurement
This is a measurement, and will at least contain a Trk::MeasurementBase.
@ numberOfMdtHits
number of mdt hits
@ TRTStandalone
TRT Standalone.