|
ATLAS Offline Software
|
Go to the documentation of this file.
22 return StatusCode::SUCCESS;
36 if (!indetTrackPC.isValid()) {
38 return StatusCode::FAILURE;
40 ATH_MSG_DEBUG(
"Number of InDet TrackParticles " << indetTrackPC->size());
45 std::vector<bool> keptInDetTrackParticles;
46 keptInDetTrackParticles.resize(indetTrackPC->size(),
true);
47 for (
const auto*
track : *indetTrackPC) {
49 keptInDetTrackParticles[
track->index()] =
false;
59 return StatusCode::FAILURE;
66 if (!link.isValid()) {
70 "Electons : Keeping InDet Track Particle with index : "
73 keptInDetTrackParticles
86 return StatusCode::FAILURE;
91 auto vertexLinks =
photon->vertexLinks();
92 for (
const auto& vxlink : vertexLinks) {
93 if (!vxlink.isValid()) {
102 if (!link.isValid()) {
106 "Photons : Keeping InDet Track Particle with index : "
109 keptInDetTrackParticles
122 return StatusCode::FAILURE;
129 if (!acc_passThinning(*tau)) {
136 keptInDetTrackParticles[
track->track()->index()] =
true;
147 return StatusCode::FAILURE;
154 if (!acc_passThinning(*elerm_tau)) {
159 if (!erm_track->flag(
161 keptInDetTrackParticles[erm_track->track()->index()] =
true;
171 return StatusCode::FAILURE;
175 muon->trackParticle(xAOD::Muon::InnerDetectorTrackParticle);
177 if (
muon->muonType() != xAOD::Muon::SiliconAssociatedForwardMuon && trk)
178 keptInDetTrackParticles[trk->
index()] =
true;
183 indetTrackPC.keep(keptInDetTrackParticles);
185 return StatusCode::SUCCESS;
Gaudi::Property< bool > m_doTau
Thin tau tracks.
Handle for requesting thinning for a data object.
SG::ReadHandleKey< xAOD::ElectronContainer > m_InputElectronContainerKey
electron collection input name
const TrackParticleLinks_t & trackParticleLinks() const
Get all the particles associated with the vertex.
Gaudi::Property< bool > m_doElectron
Thin electron tracks.
SG::ThinningHandleKey< xAOD::TrackParticleContainer > m_InDetTrackParticlesKey
Track Particle container to thin.
Gaudi::Property< bool > m_doTauEleRM
Thin electron removal tau tracks.
Helper class to provide constant type-safe access to aux data.
const std::string & key() const
Return the StoreGate ID for the referenced object.
StatusCode initialize() override final
initialize method
Gaudi::Property< bool > m_doPhoton
Thin photon tracks.
Handle for requesting thinning for a data object.
SG::ReadHandleKey< xAOD::MuonContainer > m_inputMuonContainerKey
Muon collection input name.
StringProperty m_streamName
Name of the stream being thinned.
::StatusCode StatusCode
StatusCode definition for legacy code.
Class describing a tau jet.
SG::ReadHandleKey< xAOD::PhotonContainer > m_InputPhotonContainerKey
photon collection input name
std::vector< ElementLink< xAOD::TrackParticleContainer > > trackParticleLinks(const xAOD::TauJet *tau, xAOD::TauJetParameters::TauTrackFlag flag=xAOD::TauJetParameters::TauTrackFlag::classifiedCharged)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
SG::ReadHandleKey< xAOD::TauJetContainer > m_InputTauJetContainerKey
TauJets collection input name.
size_t index() const
Return the index of this element within its container.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
Gaudi::Property< bool > m_doMuon
const xAOD::TrackParticle * getOriginalTrackParticleFromGSF(const xAOD::TrackParticle *trkPar)
Helper function for getting the "Original" Track Particle (i.e before GSF) via the GSF Track Particle...
StatusCode execute(const EventContext &ctx) const override final
execute method
@ TRTStandalone
TRT Standalone.
Class describing a Vertex.
SG::ReadHandleKey< xAOD::TauJetContainer > m_InputTauJet_EleRMContainerKey
TauJets_EleRM collection input name.
Class describing a TrackParticle.