![]() |
ATLAS Offline Software
|
#include <TrackParticleCreatorTool.h>
Public Member Functions | |
| TrackParticleCreatorTool (const std::string &, const std::string &, const IInterface *) | |
| virtual | ~TrackParticleCreatorTool ()=default |
| virtual StatusCode | initialize () override |
| virtual xAOD::TrackParticle * | createParticle (const EventContext &ctx, const Rec::TrackParticle &trackParticle, xAOD::TrackParticleContainer *container) const override final |
| Method to construct a xAOD::TrackParticle from a Rec::TrackParticle. | |
| virtual xAOD::TrackParticle * | createParticle (const EventContext &ctx, const Trk::Track &track, xAOD::TrackParticleContainer *container, const xAOD::Vertex *vxCandidate, xAOD::ParticleHypothesis prtOrigin) const override final |
| Method to construct a xAOD::TrackParticle from a passed Track. | |
| virtual xAOD::TrackParticle * | createParticle (const EventContext &ctx, const ElementLink< TrackCollection > &trackLink, xAOD::TrackParticleContainer *container, const xAOD::Vertex *vxCandidate, xAOD::ParticleHypothesis prtOrigin) const override final |
| Method to construct a TrackParticle from a passed Track. | |
| virtual xAOD::TrackParticle * | createParticle (const EventContext &ctx, const Perigee *perigee, const FitQuality *fq, const TrackInfo *trackInfo, const TrackSummary *summary, const std::vector< const Trk::TrackParameters * > ¶meters, const std::vector< xAOD::ParameterPosition > &positions, xAOD::ParticleHypothesis prtOrigin, xAOD::TrackParticleContainer *container) const override final |
| create a xAOD::TrackParticle out of constituents | |
| virtual const InDet::BeamSpotData * | CacheBeamSpotData (const EventContext &ctx) const override final |
| void | setFitQuality (xAOD::TrackParticle &tp, const FitQuality &fq) const |
| Method to set FitQuality of a xAOD::TrackParticle. | |
| void | setTrackInfo (xAOD::TrackParticle &tp, const TrackInfo &trackInfo, xAOD::ParticleHypothesis prtOrigin) const |
| Method to set TrackInfo of a xAOD::TrackParticle. | |
| void | setTrackSummary (xAOD::TrackParticle &tp, const TrackSummary &summary) const |
| Method to set TrackSummary of a xAOD::TrackParticle. | |
| void | addPIDInformation (const EventContext &ctx, const Track *track, xAOD::TrackParticle &tp) const |
| Add Pixel and TRT PID information to the track particle. | |
| void | addDetailedHitInformation (const Trk::TrackStates *trackStates, xAOD::TrackParticle &tp) const |
| Add extra detailed hit summary info not computed in Trk::TrkSummary. | |
| void | addExpectedHitInformation (const Perigee *perigee, xAOD::TrackParticle &tp) const |
| Add expected hit info for innermost pixel layers not computed in Trk::TrkSummary. | |
| void | addOutlierHitInformation (const Trk::TrackStates *trackStates, xAOD::TrackParticle &tp) const |
| Add outlier hit info not computed in Trk::TrkSummary anymore. | |
| void | addSharedHitInformation (const Track *track, xAOD::TrackParticle &tp) const |
| Add shared hit info not computed in Trk::TrkSummary anymore. | |
| void | setDefiningParameters (xAOD::TrackParticle &tp, const Perigee &perigee) const |
| Method to set Defining parameters of a xAOD::TrackParticle. | |
| void | setParameters (const EventContext &ctx, xAOD::TrackParticle &tp, const std::vector< const Trk::TrackParameters * > ¶meters, const std::vector< xAOD::ParameterPosition > &positions) const |
| Method to set parameters of a xAOD::TrackParticle. | |
Static Public Member Functions | |
| static void | addDummyEndcapSharedHitInformation (xAOD::TrackParticle &tp) |
| Add dummy endcap shared hit info as AuxDyn variable in case nominal shared hit info not computed (for ITk fast tracking) | |
| static void | setTilt (xAOD::TrackParticle &tp, float tiltx, float tilty) |
| static void | setHitPattern (xAOD::TrackParticle &tp, unsigned long hitpattern) |
| static void | setNumberOfUsedHits (xAOD::TrackParticle &tp, int hits) |
| static void | setNumberOfOverflowHits (xAOD::TrackParticle &tp, int overflows) |
| static const std::string & | trtdEdxUsedHitsAuxName () |
| Get the name used for the decoration of the track particle with the number of used hits for TRT dE/dx computation. | |
Protected Member Functions | |
| xAOD::TrackParticle * | createParticle (const EventContext &ctx, const Perigee *perigee, const FitQuality *fq, const TrackInfo *trackInfo, const TrackSummary *summary, const std::vector< const Trk::TrackParameters * > ¶meters, const std::vector< xAOD::ParameterPosition > &positions, xAOD::ParticleHypothesis prtOrigin, xAOD::TrackParticleContainer *container, const Trk::Track *track) const |
| create a xAOD::TrackParticle out of constituents | |
Private Member Functions | |
| void | compare (const Rec::TrackParticle &tp, const xAOD::TrackParticle &tpx) const |
| void | compare (const TrackParameters &tp1, const TrackParameters &tp2) const |
| const Trk::ClusterSplitProbabilityContainer::ProbabilityInfo & | getClusterSplittingProbability (const InDet::PixelCluster *pix) const |
Private Attributes | |
| const AtlasDetectorID * | m_detID |
| atlas id helper | |
| const PixelID * | m_pixelID |
| const SCT_ID * | m_sctID |
| const TRT_ID * | m_trtID |
| PublicToolHandle< IExtendedTrackSummaryTool > | m_trackSummaryTool |
| ToolHandle< Reco::ITrackToVertex > | m_trackToVertex |
| ToolHandle< Muon::IMuonHitSummaryTool > | m_hitSummaryTool |
| ServiceHandle< IIBLParameterSvc > | m_IBLParameterSvc |
| ServiceHandle< ITrackingVolumesSvc > | m_trackingVolumesSvc {this,"TrackingVolumesSvc","Trk::TrackingVolumesSvc/TrackingVolumesSvc"} |
| SG::ReadCondHandleKey< AtlasFieldCacheCondObj > | m_fieldCacheCondObjInputKey |
| ToolHandle< ITRT_ElectronPidTool > | m_eProbabilityTool |
| tool to calculate electron probabilities | |
| ToolHandle< IPixelToTPIDTool > | m_dedxtool { this, "PixelToTPIDTool", "", "" } |
| tool to calculate dE/dx using pixel clusters | |
| ToolHandle< InDet::IInDetTestPixelLayerTool > | m_testPixelLayerTool |
| tool to calculate expected hit information in innermost layers | |
| StringArrayProperty | m_copyExtraSummaryName |
| Configurable to set the eProbabilities and extra track summary types which are to be copied from the track summary. | |
| std::vector< Trk::eProbabilityType > | m_copyEProbabilities |
| Enums of an eProbability which are set in the xAOD::TrackSummary. | |
| std::vector< std::pair< SG::AuxElement::Accessor< float >, Trk::eProbabilityType > > | m_decorateEProbabilities |
| The pairs if enums of an eProbability which is added as a decoration to the track particle and the name of the decoration. | |
| std::vector< std::pair< SG::AuxElement::Accessor< uint8_t >, Trk::SummaryType > > | m_decorateSummaryTypes |
| bool | m_doIBL |
| BooleanProperty | m_doITk {this, "DoITk", false} |
| if the track contains a summary, the shared, expected hit, and PID information will be recomputed. | |
| BooleanProperty | m_computeAdditionalInfo {this, "ComputeAdditionalInfo", false} |
| BooleanProperty | m_doSharedSiHits {this, "DoSharedSiHits", false} |
| BooleanProperty | m_doSharedTRTHits {this, "DoSharedTRTHits", false} |
| BooleanProperty | m_runningTIDE_Ambi {this, "RunningTIDE_Ambi", false} |
| BooleanProperty | m_updateTrackSummary {this, "UpdateTrackSummary", false} |
| BooleanProperty | m_keepParameters {this, "KeepParameters", false} |
| the following keep options are mutually exclusive | |
| BooleanProperty | m_keepFirstParameters {this, "KeepFirstParameters", false} |
| BooleanProperty | m_keepAllPerigee {this, "KeepAllPerigee", false} |
| keep all MeasuredPerigee parameters (e.g. | |
| IntegerProperty | m_badclusterID {this, "BadClusterID", 0} |
| StringProperty | m_perigeeExpression {this, "PerigeeExpression", "BeamLine"} |
| std::vector< std::string > | m_perigeeOptions |
| BooleanProperty | m_checkConversion {this, "CheckConversion", true} |
| IntegerProperty | m_minSiHits {this, "MinSiHitsForCaloExtrap", 4} |
| DoubleProperty | m_minPt {this, "MinPtForCaloExtrap", 1000.} |
| SG::ReadCondHandleKey< InDet::BeamSpotData > | m_beamSpotKey { this, "BeamSpotKey", "BeamSpotData", "SG key for beam spot" } |
| SG::ReadHandleKey< Trk::ClusterSplitProbabilityContainer > | m_clusterSplitProbContainer { this, "ClusterSplitProbabilityName", "", "" } |
| SG::ReadHandleKey< Trk::PRDtoTrackMap > | m_assoMapContainer { this, "AssociationMapName", ""} |
Static Private Attributes | |
| static const std::string | s_trtdEdxUsedHitsDecorationName { "TRTdEdxUsedHits" } |
| Name used for the decoration of the track particle with TRT dE/dx . | |
| static const SG::AuxElement::Accessor< uint8_t > | s_trtdEdxUsedHitsDecoration |
Definition at line 71 of file TrackParticleCreatorTool.h.
| Trk::TrackParticleCreatorTool::TrackParticleCreatorTool | ( | const std::string & | t, |
| const std::string & | n, | ||
| const IInterface * | p ) |
Definition at line 110 of file TrackParticleCreatorTool.cxx.
|
virtualdefault |
| void Trk::TrackParticleCreatorTool::addDetailedHitInformation | ( | const Trk::TrackStates * | trackStates, |
| xAOD::TrackParticle & | tp ) const |
Add extra detailed hit summary info not computed in Trk::TrkSummary.
Definition at line 993 of file TrackParticleCreatorTool.cxx.
|
static |
Add dummy endcap shared hit info as AuxDyn variable in case nominal shared hit info not computed (for ITk fast tracking)
Definition at line 1283 of file TrackParticleCreatorTool.cxx.
| void Trk::TrackParticleCreatorTool::addExpectedHitInformation | ( | const Perigee * | perigee, |
| xAOD::TrackParticle & | tp ) const |
Add expected hit info for innermost pixel layers not computed in Trk::TrkSummary.
Definition at line 1050 of file TrackParticleCreatorTool.cxx.
| void Trk::TrackParticleCreatorTool::addOutlierHitInformation | ( | const Trk::TrackStates * | trackStates, |
| xAOD::TrackParticle & | tp ) const |
Add outlier hit info not computed in Trk::TrkSummary anymore.
Definition at line 1099 of file TrackParticleCreatorTool.cxx.
| void Trk::TrackParticleCreatorTool::addPIDInformation | ( | const EventContext & | ctx, |
| const Track * | track, | ||
| xAOD::TrackParticle & | tp ) const |
Add Pixel and TRT PID information to the track particle.
| ctx | the current event context |
| track | a valid track or nullptr to set all PID values to the default value. |
| tp | the trackparticle in which the PID values are set. |
Definition at line 944 of file TrackParticleCreatorTool.cxx.
| void Trk::TrackParticleCreatorTool::addSharedHitInformation | ( | const Track * | track, |
| xAOD::TrackParticle & | tp ) const |
Add shared hit info not computed in Trk::TrkSummary anymore.
Definition at line 1162 of file TrackParticleCreatorTool.cxx.
|
finaloverridevirtual |
Definition at line 1314 of file TrackParticleCreatorTool.cxx.
|
private |
Definition at line 764 of file TrackParticleCreatorTool.cxx.
|
private |
Definition at line 745 of file TrackParticleCreatorTool.cxx.
|
finaloverridevirtual |
Method to construct a TrackParticle from a passed Track.
Will keep parameters based on m_keepParameters,m_keepFirstParameters, m_keepAllPerigee. It will use the exising summary or redo it based on m_useTrackSummaryTool
| track | element link to a valid track (i.e. do not pass a zero!). |
| TrackParticleContainer | needed to have an AuxStore, if provided particle will be added to store which takes ownership |
| xAOD::Vertex | Pointer to a valid vxCandidate (i.e. do not pass a zero!). Ownership is not taken (i.e. it will not be deleted) |
| prtOrigin |
Definition at line 642 of file TrackParticleCreatorTool.cxx.
|
inlinefinaloverridevirtual |
create a xAOD::TrackParticle out of constituents
Definition at line 662 of file TrackParticleCreatorTool.cxx.
|
protected |
create a xAOD::TrackParticle out of constituents
Definition at line 676 of file TrackParticleCreatorTool.cxx.
|
finaloverridevirtual |
Method to construct a xAOD::TrackParticle from a Rec::TrackParticle.
| track | particle |
| TrackParticleContainer | needed to have an AuxStore, if provided particle will be added to store which takes ownership |
Definition at line 593 of file TrackParticleCreatorTool.cxx.
|
finaloverridevirtual |
Method to construct a xAOD::TrackParticle from a passed Track.
Will keep parameters based on m_keepParameters,m_keepFirstParameters, m_keepAllPerigee. It will use the exising summary or redo it based on m_useTrackSummaryTool
| track | Pointer to a valid track (i.e. do not pass a zero!). Ownership is not taken (i.e. it will not be deleted) |
| TrackParticleContainer | needed to have an AuxStore, if provided particle will be added to store which takes ownership |
| xAOD::Vertex | Pointer to a valid vxCandidate (i.e. do not pass a zero!). Ownership is not taken (i.e. it will not be deleted) |
| prtOrigin | Particle type |
Definition at line 259 of file TrackParticleCreatorTool.cxx.
|
private |
Definition at line 1298 of file TrackParticleCreatorTool.cxx.
|
overridevirtual |
Definition at line 126 of file TrackParticleCreatorTool.cxx.
| void Trk::TrackParticleCreatorTool::setDefiningParameters | ( | xAOD::TrackParticle & | tp, |
| const Perigee & | perigee ) const |
Method to set Defining parameters of a xAOD::TrackParticle.
| void Trk::TrackParticleCreatorTool::setFitQuality | ( | xAOD::TrackParticle & | tp, |
| const FitQuality & | fq ) const |
Method to set FitQuality of a xAOD::TrackParticle.
|
static |
Definition at line 864 of file TrackParticleCreatorTool.cxx.
|
static |
Definition at line 876 of file TrackParticleCreatorTool.cxx.
|
static |
Definition at line 870 of file TrackParticleCreatorTool.cxx.
| void Trk::TrackParticleCreatorTool::setParameters | ( | const EventContext & | ctx, |
| xAOD::TrackParticle & | tp, | ||
| const std::vector< const Trk::TrackParameters * > & | parameters, | ||
| const std::vector< xAOD::ParameterPosition > & | positions ) const |
Method to set parameters of a xAOD::TrackParticle.
Definition at line 778 of file TrackParticleCreatorTool.cxx.
|
static |
Definition at line 857 of file TrackParticleCreatorTool.cxx.
| void Trk::TrackParticleCreatorTool::setTrackInfo | ( | xAOD::TrackParticle & | tp, |
| const TrackInfo & | trackInfo, | ||
| xAOD::ParticleHypothesis | prtOrigin ) const |
Method to set TrackInfo of a xAOD::TrackParticle.
| void Trk::TrackParticleCreatorTool::setTrackSummary | ( | xAOD::TrackParticle & | tp, |
| const TrackSummary & | summary ) const |
Method to set TrackSummary of a xAOD::TrackParticle.
Definition at line 882 of file TrackParticleCreatorTool.cxx.
|
inlinestatic |
Get the name used for the decoration of the track particle with the number of used hits for TRT dE/dx computation.
Definition at line 201 of file TrackParticleCreatorTool.h.
|
private |
Definition at line 333 of file TrackParticleCreatorTool.h.
|
private |
Definition at line 319 of file TrackParticleCreatorTool.h.
|
private |
Definition at line 331 of file TrackParticleCreatorTool.h.
|
private |
Definition at line 327 of file TrackParticleCreatorTool.h.
|
private |
Definition at line 332 of file TrackParticleCreatorTool.h.
|
private |
Definition at line 302 of file TrackParticleCreatorTool.h.
|
private |
Enums of an eProbability which are set in the xAOD::TrackSummary.
Definition at line 285 of file TrackParticleCreatorTool.h.
|
private |
Configurable to set the eProbabilities and extra track summary types which are to be copied from the track summary.
Definition at line 280 of file TrackParticleCreatorTool.h.
|
private |
The pairs if enums of an eProbability which is added as a decoration to the track particle and the name of the decoration.
Definition at line 290 of file TrackParticleCreatorTool.h.
|
private |
Definition at line 292 of file TrackParticleCreatorTool.h.
|
private |
tool to calculate dE/dx using pixel clusters
Definition at line 270 of file TrackParticleCreatorTool.h.
|
private |
atlas id helper
Definition at line 225 of file TrackParticleCreatorTool.h.
|
private |
Definition at line 298 of file TrackParticleCreatorTool.h.
|
private |
if the track contains a summary, the shared, expected hit, and PID information will be recomputed.
The summary of the track is not updated.
Definition at line 299 of file TrackParticleCreatorTool.h.
|
private |
Definition at line 303 of file TrackParticleCreatorTool.h.
|
private |
Definition at line 304 of file TrackParticleCreatorTool.h.
|
private |
tool to calculate electron probabilities
Definition at line 265 of file TrackParticleCreatorTool.h.
|
private |
Definition at line 257 of file TrackParticleCreatorTool.h.
|
private |
Definition at line 242 of file TrackParticleCreatorTool.h.
|
private |
Definition at line 248 of file TrackParticleCreatorTool.h.
|
private |
keep all MeasuredPerigee parameters (e.g.
adding those that may exist at Volume boundaries)
Definition at line 315 of file TrackParticleCreatorTool.h.
|
private |
Definition at line 312 of file TrackParticleCreatorTool.h.
|
private |
the following keep options are mutually exclusive
keep all TrackParameters keep the first parameters when creating track particles.
Definition at line 310 of file TrackParticleCreatorTool.h.
|
private |
Definition at line 329 of file TrackParticleCreatorTool.h.
|
private |
Definition at line 328 of file TrackParticleCreatorTool.h.
|
private |
Definition at line 321 of file TrackParticleCreatorTool.h.
|
private |
Definition at line 322 of file TrackParticleCreatorTool.h.
|
private |
Definition at line 226 of file TrackParticleCreatorTool.h.
|
private |
Definition at line 305 of file TrackParticleCreatorTool.h.
|
private |
Definition at line 227 of file TrackParticleCreatorTool.h.
|
private |
tool to calculate expected hit information in innermost layers
Definition at line 273 of file TrackParticleCreatorTool.h.
|
private |
Definition at line 254 of file TrackParticleCreatorTool.h.
|
private |
Definition at line 231 of file TrackParticleCreatorTool.h.
|
private |
Definition at line 237 of file TrackParticleCreatorTool.h.
|
private |
Definition at line 228 of file TrackParticleCreatorTool.h.
|
private |
Definition at line 306 of file TrackParticleCreatorTool.h.
|
staticprivate |
Definition at line 296 of file TrackParticleCreatorTool.h.
|
staticprivate |
Name used for the decoration of the track particle with TRT dE/dx .
Definition at line 295 of file TrackParticleCreatorTool.h.