|
ATLAS Offline Software
|
Algorithm creating xAOD::TrackParticles from TrackParticles.
More...
#include <TrackParticleCnvAlg.h>
|
| TrackParticleCnvAlg (const std::string &name, ISvcLocator *svcLoc) |
| Regular algorithm constructor. More...
|
|
virtual StatusCode | initialize () |
| Function initialising the algorithm. More...
|
|
virtual StatusCode | execute (const EventContext &ctx) const |
| Function executing the algorithm. More...
|
|
virtual StatusCode | sysInitialize () override |
| Override sysInitialize. More...
|
|
virtual bool | isClonable () const override |
| Specify if the algorithm is clonable. More...
|
|
virtual unsigned int | cardinality () const override |
| Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant. More...
|
|
virtual StatusCode | sysExecute (const EventContext &ctx) override |
| Execute an algorithm. More...
|
|
virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. More...
|
|
virtual bool | filterPassed (const EventContext &ctx) const |
|
virtual void | setFilterPassed (bool state, const EventContext &ctx) const |
|
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 | 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 |
|
|
template<typename CONT , typename TRUTHCONT , typename CONVTOOL > |
int | convert (const CONT &, const TRUTHCONT &, CONVTOOL &tool, SG::WriteHandle< xAOD::TrackParticleContainer > &, const xAODTruthParticleLinkVector *, const xAOD::Vertex *primaryVertex=nullptr, const ObservedTrackMap *obs_track_map=0) const |
|
xAOD::TrackParticle * | createParticle (xAOD::TrackParticleContainer &xaod, const Rec::TrackParticleContainer &container, const Rec::TrackParticle &tp) |
|
xAOD::TrackParticle * | createParticle (xAOD::TrackParticleContainer &xaod, const TrackCollection &container, const Trk::Track &tp, const EventContext &ctx) |
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &) |
| specialization for handling Gaudi::Property<SG::VarHandleBase> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &) |
| specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
|
|
|
Gaudi::Property< bool > | m_addTruthLink {this,"AddTruthLink", false } |
| toggle on adding truth links More...
|
|
ToolHandle< Trk::ITrackParticleCreatorTool > | m_particleCreator {this, "TrackParticleCreator", "Trk::TrackParticleCreatorTool/TrackParticleCreatorTool" } |
| The key for the input TrackParticleTruthCollection. More...
|
|
ToolHandle< IMCTruthClassifier > | m_truthClassifier |
| ToolHandle to truth classifier. More...
|
|
ToolHandle< xAODMaker::ITrackCollectionCnvTool > | m_TrackCollectionCnvTool {this, "TrackCollectionCnvTool", "xAODMaker::TrackCollectionCnvTool/TrackCollectionCnvTool"} |
|
ToolHandle< xAODMaker::IRecTrackParticleContainerCnvTool > | m_RecTrackParticleContainerCnvTool |
|
SG::ReadHandleKey< Rec::TrackParticleContainer > | m_aod {this, "AODContainerName", "TrackParticleCandidate"} |
|
SG::ReadHandleKey< TrackCollection > | m_tracks {this, "TrackContainerName", "Tracks"} |
|
SG::ReadHandleKey< xAOD::VertexContainer > | m_primaryVertexContainer { this, "PrimaryVerticesName", "", "Name of primary vertex container is case the parameters should be calculated with respect to the primary vertex"} |
|
SG::WriteHandleKey< xAOD::TrackParticleContainer > | m_xaodout {this, "xAODTrackParticlesFromTracksContainerName", "InDetTrackParticles"} |
|
SG::WriteHandleKey< xAOD::TrackParticleContainer > | m_xaodTrackParticlesout {this, "xAODContainerName", "ConvertedTrackParticleCandidate" } |
|
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > | m_xaodTruthOriginKey {this,"truthOriginKey", "" , "Key to declare that the alg will write truthOrigin. Will be overwritten during init"} |
|
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > | m_xaodTruthTypeKey {this, "truthTypeKey", "" , "Key to declare that the alg will write truthType. Will be overwritten during init" } |
|
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > | m_xaodTruthLinkKey {this, "truthLinkKey", "", "Key to declare that the alg will writhe the truthParticleLink. Will be overwritten during init."} |
|
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > | m_xaodTruthMatchProbKey {this, "truthMatchProbKey", "", "Key to declare that the alg will writhe the truthParticleLink. Will be overwritten during init."} |
|
SG::ReadHandleKey< xAODTruthParticleLinkVector > | m_truthParticleLinkVec {this, "xAODTruthLinkVector", "xAODTruthLinks"} |
|
SG::ReadHandleKey< TrackParticleTruthCollection > | m_aodTruth {this, "AODTruthContainerName" , ""} |
|
SG::ReadHandleKey< TrackTruthCollection > | m_trackTruth {this, "TrackTruthContainerName", ""} |
|
Gaudi::Property< bool > | m_doMonitoring {this, "DoMonitoring", false} |
|
ToolHandle< ITrackParticleMonitoring > | m_trackMonitoringTool { this, "TrkMonTool", "", "Tracking Monitoring tool" } |
|
ToolHandle< GenericMonitoringTool > | m_monTool { this, "MonTool", "", "Monitoring tool" } |
|
Gaudi::Property< bool > | m_augmentObservedTracks {this, "AugmentObservedTracks", false, "augment observed tracks"} |
|
SG::ReadHandleKey< ObservedTrackMap > | m_tracksMap {this, "TracksMapName", "" , "name of observed tracks map saved in store"} |
|
Gaudi::Property< bool > | m_convertAODTrackParticles {this, "ConvertTrackParticles", true} |
| toggle on converting AOD track particles to xAOD More...
|
|
Gaudi::Property< bool > | m_convertTracks {this, "ConvertTracks", false} |
| toggle on converting tracks to xAOD More...
|
|
DataObjIDColl | m_extendedExtraObjects |
| Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks. More...
|
|
StoreGateSvc_t | m_evtStore |
| Pointer to StoreGate (event store by default) More...
|
|
StoreGateSvc_t | m_detStore |
| Pointer to StoreGate (detector store by default) More...
|
|
std::vector< SG::VarHandleKeyArray * > | m_vhka |
|
bool | m_varHandleArraysDeclared |
|
Algorithm creating xAOD::TrackParticles from TrackParticles.
This algorithm can be used to translate the TrackParticles coming
from an AOD, and create xAOD::TrackParticle objects out of them
for an output xAOD.
- Author
- Edward Moyse Edwar.nosp@m.d.Mo.nosp@m.yse@c.nosp@m.ern..nosp@m.ch
-
Attila Krasznahorkay Attil.nosp@m.a.Kr.nosp@m.aszna.nosp@m.hork.nosp@m.ay@ce.nosp@m.rn.c.nosp@m.h
- Revision
- 297747
- Date
- 2013-10-28 16:14:24 +0100 (Mon, 28 Oct 2013)
Definition at line 54 of file TrackParticleCnvAlg.h.
◆ StoreGateSvc_t
◆ TrackParticleCnvAlg()
xAODMaker::TrackParticleCnvAlg::TrackParticleCnvAlg |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
svcLoc |
|
) |
| |
◆ cardinality()
unsigned int AthReentrantAlgorithm::cardinality |
( |
| ) |
const |
|
overridevirtualinherited |
Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.
Override this to return 0 for reentrant algorithms.
Override this to return 0 for reentrant algorithms.
Definition at line 55 of file AthReentrantAlgorithm.cxx.
◆ convert()
template<typename CONT , typename TRUTHCONT , typename CONVTOOL >
Definition at line 283 of file TrackParticleCnvAlg.cxx.
299 if (conv_tool->convertAndAugment(&container, xaod.
ptr(), obs_track_map, primaryVertex).isFailure()) {
301 << xaod.
name() <<
") with the converting tool");
306 if (conv_tool->convert(&container, xaod.
ptr(), primaryVertex).isFailure()) {
308 << xaod.
name() <<
") with the converting tool");
316 AssociationHelper<CONT> association_to_src(container, xaod.
ptr());
317 unsigned int trackCounter(0);
319 for (; itr_xaod != end_xaod; ++itr_xaod) {
336 int npix, nsct, ntrt, npixh, nscth, npixshim, npixsplit;
337 npix = nsct = ntrt = npixh = nscth = npixshim = npixsplit = -1;
349 msg() <<
MSG::DEBUG <<
"REGTEST: " << std::setw(5) << trackCounter
350 <<
" pT: " << std::setw(10) <<
particle->pt()
355 <<
"\t" << npix <<
"/" << nsct <<
"/" << ntrt <<
"/holes/" << npixh <<
"/" << nscth
369 float probability = -1.0;
373 association_to_src(*itr_xaod, itr_xaod - xaod->
begin()), container);
374 if (!tpLink.isValid()) {
375 ATH_MSG_WARNING(
"Failed to create ElementLink to Track/TrackParticle");
376 }
else if(truth->empty()){
380 auto result = truth->find(tpLink);
381 if (
result == truth->end()) {
383 "Failed find truth associated with Track/TrackParticle");
388 <<
result->second.particleLink().eventIndex());
389 probability =
result->second.probability();
390 link = truthLinkVec->
find(
result->second.particleLink());
394 <<
" eta " << (*link)->eta() <<
" phi "
397 if (
result->second.particleLink().cptr() &&
400 result->second.particleLink());
401 type = truthClass.first;
402 origin = truthClass.second;
405 <<
static_cast<int>(origin));
410 <<
result->second.particleLink());
417 theLink(
"truthParticleLink");
419 "truthMatchProbability");
421 theProbability(*
particle) = probability;
426 theOrigin(*
particle) =
static_cast<int>(origin);
432 <<
"] TrackParticles and stored in "
434 if (container.size() != xaod->
size()) {
437 <<
" is not equal to the number of items in its converted "
◆ createParticle() [1/2]
◆ createParticle() [2/2]
◆ 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);
◆ 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.
◆ 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.
◆ 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]
◆ execute()
StatusCode xAODMaker::TrackParticleCnvAlg::execute |
( |
const EventContext & |
ctx | ) |
const |
|
virtual |
Function executing the algorithm.
Definition at line 87 of file TrackParticleCnvAlg.cxx.
104 if (!rh_aod.isValid()) {
106 return StatusCode::FAILURE;
116 if (!rh_tracks.isValid()) {
118 return StatusCode::SUCCESS;
120 tracks = rh_tracks.cptr();
129 if (!rh_aodTruth.isValid()) {
132 return StatusCode::SUCCESS;
134 aodTruth = rh_aodTruth.cptr();
138 if (!rh_trackTruth.isValid()) {
141 return StatusCode::SUCCESS;
143 trackTruth = rh_trackTruth.cptr();
148 if (!rh_truthParticleLinkVec.isValid()) {
151 return StatusCode::SUCCESS;
153 truthLinks = rh_truthParticleLinkVec.cptr();
159 if (!vtx_container.isValid()) {
161 return StatusCode::SUCCESS;
164 for(
auto vtx : *vtx_container) {
178 ATH_MSG_INFO(
"No primary vertex found, will use dummy vertex at "<<dummyVertex->
x()<<
","<<dummyVertex->
y()<<
","<<dummyVertex->
z());
179 primaryVertex=dummyVertex;
183 ATH_MSG_WARNING(
"Neither primary nor dummy vertex found. Do Nothing.");
184 return StatusCode::SUCCESS;
192 wh_xaodout.record(std::make_unique<xAOD::TrackParticleContainer>(),
193 std::make_unique<xAOD::TrackParticleAuxContainer>()));
198 if (!rh_tracksMap.isValid()) {
200 return StatusCode::FAILURE;
203 tracksMap = rh_tracksMap.cptr();
222 ATH_CHECK(wh_xaodTrackParticlesout.record(
223 std::make_unique<xAOD::TrackParticleContainer>(),
224 std::make_unique<xAOD::TrackParticleAuxContainer>()));
228 wh_xaodTrackParticlesout,
235 return StatusCode::SUCCESS;
◆ 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
◆ extraOutputDeps()
const DataObjIDColl & AthReentrantAlgorithm::extraOutputDeps |
( |
| ) |
const |
|
overridevirtualinherited |
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 79 of file AthReentrantAlgorithm.cxx.
86 return Algorithm::extraOutputDeps();
◆ filterPassed()
virtual bool AthReentrantAlgorithm::filterPassed |
( |
const EventContext & |
ctx | ) |
const |
|
inlinevirtualinherited |
◆ initialize()
StatusCode xAODMaker::TrackParticleCnvAlg::initialize |
( |
| ) |
|
|
virtual |
Function initialising the algorithm.
Definition at line 31 of file TrackParticleCnvAlg.cxx.
44 DisableTool{ !m_convertAODTrackParticles }));
83 return StatusCode::SUCCESS;
◆ 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.
◆ isClonable()
bool AthReentrantAlgorithm::isClonable |
( |
| ) |
const |
|
overridevirtualinherited |
Specify if the algorithm is clonable.
Reentrant algorithms are clonable.
Reimplemented in Simulation::BeamEffectsAlg, InDet::SiTrackerSpacePointFinder, InDet::SCT_Clusterization, InDet::SiSPSeededTrackFinder, SCTRawDataProvider, InDet::GNNSeedingTrackMaker, SCT_PrepDataToxAOD, RoIBResultToxAOD, SCT_CablingCondAlgFromCoraCool, SCT_ReadCalibDataTestAlg, SCT_CablingCondAlgFromText, InDet::SiSPGNNTrackMaker, SCT_ReadCalibChipDataTestAlg, SCT_TestCablingAlg, SCT_ConfigurationConditionsTestAlg, ITkPixelCablingAlg, ITkStripCablingAlg, SCTEventFlagWriter, SCT_ConditionsSummaryTestAlg, SCT_ModuleVetoTestAlg, SCT_MonitorConditionsTestAlg, SCT_LinkMaskingTestAlg, SCT_MajorityConditionsTestAlg, SCT_RODVetoTestAlg, SCT_SensorsTestAlg, SCT_TdaqEnabledTestAlg, SCT_SiliconConditionsTestAlg, SCTSiLorentzAngleTestAlg, SCT_ByteStreamErrorsTestAlg, SCT_ConditionsParameterTestAlg, SCT_FlaggedConditionTestAlg, SCT_StripVetoTestAlg, SCT_RawDataToxAOD, and SCTSiPropertiesTestAlg.
Definition at line 44 of file AthReentrantAlgorithm.cxx.
◆ 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()
◆ setFilterPassed()
virtual void AthReentrantAlgorithm::setFilterPassed |
( |
bool |
state, |
|
|
const EventContext & |
ctx |
|
) |
| const |
|
inlinevirtualinherited |
◆ sysExecute()
StatusCode AthReentrantAlgorithm::sysExecute |
( |
const EventContext & |
ctx | ) |
|
|
overridevirtualinherited |
Execute an algorithm.
We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.
Definition at line 67 of file AthReentrantAlgorithm.cxx.
69 return Gaudi::Algorithm::sysExecute (ctx);
◆ sysInitialize()
StatusCode AthReentrantAlgorithm::sysInitialize |
( |
| ) |
|
|
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< Gaudi::Algorithm > >.
Reimplemented in InputMakerBase, and HypoBase.
Definition at line 96 of file AthReentrantAlgorithm.cxx.
107 if ( cs.retrieve().isFailure() ) {
109 return StatusCode::SUCCESS;
111 if (cs->regHandle(
this,*
h).isFailure()) {
112 sc = StatusCode::FAILURE;
113 ATH_MSG_ERROR(
"unable to register WriteCondHandle " <<
h->fullKey()
◆ 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_addTruthLink
Gaudi::Property<bool> xAODMaker::TrackParticleCnvAlg::m_addTruthLink {this,"AddTruthLink", false } |
|
private |
◆ m_aod
◆ m_aodTruth
◆ m_augmentObservedTracks
Gaudi::Property<bool> xAODMaker::TrackParticleCnvAlg::m_augmentObservedTracks {this, "AugmentObservedTracks", false, "augment observed tracks"} |
|
private |
◆ m_convertAODTrackParticles
Gaudi::Property<bool> xAODMaker::TrackParticleCnvAlg::m_convertAODTrackParticles {this, "ConvertTrackParticles", true} |
|
private |
◆ m_convertTracks
Gaudi::Property<bool> xAODMaker::TrackParticleCnvAlg::m_convertTracks {this, "ConvertTracks", false} |
|
private |
◆ m_detStore
◆ m_doMonitoring
Gaudi::Property<bool> xAODMaker::TrackParticleCnvAlg::m_doMonitoring {this, "DoMonitoring", false} |
|
private |
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthReentrantAlgorithm::m_extendedExtraObjects |
|
privateinherited |
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Empty if no symlinks were found.
Definition at line 153 of file AthReentrantAlgorithm.h.
◆ m_monTool
◆ m_particleCreator
◆ m_primaryVertexContainer
SG::ReadHandleKey<xAOD::VertexContainer> xAODMaker::TrackParticleCnvAlg::m_primaryVertexContainer { this, "PrimaryVerticesName", "", "Name of primary vertex container is case the parameters should be calculated with respect to the primary vertex"} |
|
private |
◆ m_RecTrackParticleContainerCnvTool
Initial value:{this, "RecTrackParticleContainerCnvTool", "xAODMaker::RecTrackParticleContainerCnvTool/"
"RecTrackParticleContainerCnvTool" }
Definition at line 85 of file TrackParticleCnvAlg.h.
◆ m_TrackCollectionCnvTool
◆ m_trackMonitoringTool
◆ m_tracks
◆ m_tracksMap
◆ m_trackTruth
◆ m_truthClassifier
Initial value:{
this,
"MCTruthClassifier",
"MCTruthClassifier/MCTruthClassifier",
" MCTruthClassifier Instance to use "
}
ToolHandle to truth classifier.
Definition at line 75 of file TrackParticleCnvAlg.h.
◆ m_truthParticleLinkVec
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ m_xaodout
◆ m_xaodTrackParticlesout
◆ m_xaodTruthLinkKey
◆ m_xaodTruthMatchProbKey
◆ m_xaodTruthOriginKey
◆ m_xaodTruthTypeKey
The documentation for this class was generated from the following files:
@ numberOfPixelHits
number of pixel layers on track with absence of hits
float x() const
Returns the x position.
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_xaodTruthLinkKey
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_xaodTruthOriginKey
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
ToolHandle< ITrackParticleMonitoring > m_trackMonitoringTool
Group
Properties of a chain group.
Helper class to provide type-safe access to aux data.
Gaudi::Property< bool > m_augmentObservedTracks
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
const std::string & name() const
Return the StoreGate ID for the referenced object.
ElementLink< xAOD::TruthParticleContainer > find(const HepMcParticleLink &hepMCLink) const
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)
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
bool msgLvl(const MSG::Level lvl) const
ToolHandle< IMCTruthClassifier > m_truthClassifier
ToolHandle to truth classifier.
#define ATH_MSG_VERBOSE(x)
const std::string & key() const
Return the StoreGate ID for the referenced object.
Gaudi::Property< bool > m_convertAODTrackParticles
toggle on converting AOD track particles to xAOD
@ numberOfSCTHoles
number of Holes in both sides of a SCT module
@ NoVtx
Dummy vertex. TrackParticle was not used in vertex fit.
SG::WriteHandleKey< xAOD::TrackParticleContainer > m_xaodTrackParticlesout
bool isValid() const
Test to see if the link can be dereferenced.
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_xaodTruthMatchProbKey
SG::ReadHandleKey< ObservedTrackMap > m_tracksMap
virtual void setOwner(IDataHandleHolder *o)=0
std::map< int, std::tuple< Trk::Track *, double, xAOD::RejectionStep, xAOD::RejectionReason, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, float, float, int, std::vector< xAOD::RejectionStep >, std::vector< xAOD::RejectionReason > > > ObservedTrackMap
SG::ReadHandleKey< Rec::TrackParticleContainer > m_aod
AthReentrantAlgorithm()
Default constructor:
SG::ReadHandleKey< TrackTruthCollection > m_trackTruth
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
(Non-const) Iterator class for DataVector/DataList.
::StatusCode StatusCode
StatusCode definition for legacy code.
@ numberOfSCTHits
number of SCT holes
pointer_type ptr()
Dereference the pointer.
Gaudi::Property< bool > m_addTruthLink
toggle on adding truth links
SG::ReadHandleKey< TrackParticleTruthCollection > m_aodTruth
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_xaodTruthTypeKey
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
float z() const
Returns the z position.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
ToolHandle< xAODMaker::ITrackCollectionCnvTool > m_TrackCollectionCnvTool
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
@ numberOfPixelHoles
number of pixels which have a ganged ambiguity.
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
ElementLink implementation for ROOT usage.
Gaudi::Property< bool > m_doMonitoring
@ numberOfTRTHits
number of TRT outliers
int convert(const CONT &, const TRUTHCONT &, CONVTOOL &tool, SG::WriteHandle< xAOD::TrackParticleContainer > &, const xAODTruthParticleLinkVector *, const xAOD::Vertex *primaryVertex=nullptr, const ObservedTrackMap *obs_track_map=0) const
A summary of the information contained by a track.
ToolHandle< GenericMonitoringTool > m_monTool
ToolHandle< xAODMaker::IRecTrackParticleContainerCnvTool > m_RecTrackParticleContainerCnvTool
virtual StatusCode sysInitialize() override
Override sysInitialize.
SG::ReadHandleKey< xAODTruthParticleLinkVector > m_truthParticleLinkVec
Gaudi::Property< bool > m_convertTracks
toggle on converting tracks to xAOD
SG::ReadHandleKey< TrackCollection > m_tracks
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Class describing a Vertex.
#define ATH_MSG_WARNING(x)
const Trk::TrackSummary * trackSummary() const
Returns a pointer to the const Trk::TrackSummary owned by this const track (could be nullptr)
float y() const
Returns the y position.
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
ToolHandle< Trk::ITrackParticleCreatorTool > m_particleCreator
The key for the input TrackParticleTruthCollection.
SG::ReadHandleKey< xAOD::VertexContainer > m_primaryVertexContainer
SG::WriteHandleKey< xAOD::TrackParticleContainer > m_xaodout
Class describing a TrackParticle.
size_type size() const noexcept
Returns the number of elements in the collection.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.