 |
ATLAS Offline Software
|
Go to the documentation of this file.
12 return getLink<xAOD::TruthParticle>(
particle,
"truthParticleLink",
debug);
23 std::vector< ElementLink< xAOD::TrackParticleContainer > >
links;
24 std::vector< const xAOD::TauTrack* > allTracks = tau->
allTracks();
26 if(trk->trackLinks().empty())
continue;
27 if(trk->flagWithMask(
mask))
28 links.push_back(trk->trackLinks()[0]);
35 std::vector<xAOD::TauTrack*>
v;
37 if(link.isValid() && (*link)->flagWithMask(
mask) &&
dynamic_cast<const xAOD::TauTrackContainer*
> (link.getStorableObjectPointer()) == trackCont)
v.push_back( trackCont->
at(link.index()));
50 std::vector<const xAOD::IParticle*>
54 std::vector<const xAOD::IParticle*> clusterList;
55 for (
const auto& vertexedCluster : vertexedClusterList) {
57 clusterList.push_back(&cluster);
65 std::vector<xAOD::CaloVertexedTopoCluster>
67 TLorentzVector tauAxis;
77 std::vector<xAOD::CaloVertexedTopoCluster> selectedList;
78 for (
const auto& vertexedCluster : vertexedClusterList) {
79 TLorentzVector clusterP4 = vertexedCluster.p4();
81 double dR = clusterP4.DeltaR(tauAxis);
82 if (dR > dRMax)
continue;
84 selectedList.push_back(vertexedCluster);
TauTrackFlag
Enum for tau track flags.
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
std::vector< ElementLink< xAOD::TrackParticleContainer > > trackParticleLinksWithMask(const xAOD::TauJet *tau, xAOD::TauTrack::TrackFlagType mask)
std::vector< const xAOD::IParticle * > clusters(const xAOD::TauJet &tau, double dRMax)
Class providing the definition of the 4-vector interface.
bool isValid() const
Test to see if the link can be dereferenced.
std::vector< xAOD::TauTrack * > allTauTracksNonConst(const xAOD::TauJet *tau, xAOD::TauTrackContainer *trackCont)
Description of a calorimeter cluster.
const xAOD::TruthParticle * getTruthParticle(const xAOD::IParticle *, bool debug=false)
return the truthParticle associated to the given IParticle (if any)
const TauTrackLinks_t & allTauTrackLinks() const
ElementLink< xAOD::TruthParticleContainer > TruthLink_t
Class describing a truth particle in the MC record.
Class describing a tau jet.
std::vector< ElementLink< xAOD::TrackParticleContainer > > trackParticleLinks(const xAOD::TauJet *tau, xAOD::TauJetParameters::TauTrackFlag flag=xAOD::TauJetParameters::TauTrackFlag::classifiedCharged)
ElementLink implementation for ROOT usage.
std::vector< xAOD::CaloVertexedTopoCluster > vertexedClusters() const
std::vector< xAOD::TauTrack * > tauTracksNonConstWithMask(const xAOD::TauJet *tau, xAOD::TauTrackContainer *trackCont, xAOD::TauTrack::TrackFlagType mask)
virtual FourMom_t p4() const
The full 4-momentum of the particle.
const T * at(size_type n) const
Access an element, as an rvalue.
std::vector< const TauTrack * > allTracks() const
Get the v<const pointer> to all tracks associated with this tau, regardless of classification.
const VertexLink_t & vertexLink() const
std::vector< xAOD::CaloVertexedTopoCluster > vertexedClusters(const xAOD::TauJet &tau, double dRMax)