|
ATLAS Offline Software
|
Go to the documentation of this file.
19 #include "GaudiKernel/SystemOfUnits.h"
27 const std::string&
name,
62 return StatusCode::FAILURE;
65 return StatusCode::SUCCESS;
87 NInputTaus, passedCuts,
88 PtAccepted, NTracksAccepted, NIsoTracksAccepted,
89 massTrkSysAccepted, massTrkSysKaonAccepted, massTrkSysKaonPiAccepted,
90 leadTrkPtAccepted, dRAccepted, etOverPtLeadTrkAccepted, EMOverTrkSysPAccepted);
98 ATH_MSG_DEBUG(
"AcceptAll property is set: taking all events");
105 NInputTaus = TauContainer->
size();
115 float pT =
Tau->pt();
126 int numTrack =
Tau->nTracks();
127 int numIsoTrack =
Tau->nTracksIsolation();
136 NTracksAccepted = numTrack;
137 NIsoTracksAccepted = numIsoTrack;
160 TLorentzVector my_kaons;
161 std::vector<TLorentzVector> my_trks;
162 for(
unsigned int i = 0;
i <
Tau->nTracks(); ++
i) {
164 TLorentzVector tmpKaon;;
167 trk =
Tau->track(
i)->track();
173 tmpKaon.SetPtEtaPhiM(trk->
pt(), trk->
eta(), trk->
phi(), 493.677);
174 my_trks.push_back(trk->
p4());
177 my_kaons = my_kaons + tmpKaon;
180 float massTrkSysKaon = my_kaons.M();
184 float finalKPiMass = 0;
185 if(my_trks.size() == 2) {
186 TLorentzVector tmpKaon;
188 tmpKaon.SetPtEtaPhiM(my_trks.at(0).Pt(), my_trks.at(0).Eta(), my_trks.at(0).Phi(), 493.677);
189 TLorentzVector tmpPion = my_trks.at(1);
190 float kPiMass1 = (tmpKaon+tmpPion).M();
192 tmpKaon.SetPtEtaPhiM(my_trks.at(1).Pt(), my_trks.at(1).Eta(), my_trks.at(1).Phi(), 493.677);
193 tmpPion = my_trks.at(0);
194 float kPiMass2 = (tmpKaon+tmpPion).M();
197 finalKPiMass = kPiMass1;
199 finalKPiMass = kPiMass2;
202 float massTrkSysKaonPi = finalKPiMass;
273 return StatusCode::SUCCESS;
virtual double pt() const override final
The transverse momentum ( ) of the particle.
Group
Properties of a chain group.
bool passed(DecisionID id, const DecisionIDContainer &idSet)
checks if required decision ID is in the set of IDs in the container
TrigCompositeUtils::DecisionID numeric() const
numeric ID
virtual double eta() const override final
The pseudorapidity ( ) of the particle.
void addDecisionID(DecisionID id, Decision *d)
Appends the decision (given as ID) to the decision object.
@ dRmax
Get maximal dR of tracks associated to calo-seeded tau.
virtual FourMom_t p4() const override final
The full 4-momentum of the particle.
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
::StatusCode StatusCode
StatusCode definition for legacy code.
Class describing a tau jet.
Header file to be included by clients of the Monitored infrastructure.
#define ATH_MSG_WARNING(x)
Class describing a TrackParticle.
Declare a monitored scalar variable.
size_type size() const noexcept
Returns the number of elements in the collection.
virtual double phi() const override final
The azimuthal angle ( ) of the particle (has range to .)