 |
ATLAS Offline Software
|
Go to the documentation of this file.
19 #include "GaudiKernel/SystemOfUnits.h"
28 const std::string&
name,
63 return StatusCode::FAILURE;
66 return StatusCode::SUCCESS;
88 NInputTaus, passedCuts,
89 PtAccepted, NTracksAccepted, NIsoTracksAccepted,
90 massTrkSysAccepted, massTrkSysKaonAccepted, massTrkSysKaonPiAccepted,
91 leadTrkPtAccepted, dRAccepted, etOverPtLeadTrkAccepted, EMOverTrkSysPAccepted);
99 ATH_MSG_DEBUG(
"AcceptAll property is set: taking all events");
106 NInputTaus = TauContainer->
size();
116 float pT =
Tau->pt();
127 int numTrack =
Tau->nTracks();
128 int numIsoTrack =
Tau->nTracksIsolation();
137 NTracksAccepted = numTrack;
138 NIsoTracksAccepted = numIsoTrack;
161 TLorentzVector my_kaons;
162 std::vector<TLorentzVector> my_trks;
163 for(
unsigned int i = 0;
i <
Tau->nTracks(); ++
i) {
165 TLorentzVector tmpKaon;;
168 trk =
Tau->track(
i)->track();
175 my_trks.push_back(trk->
p4());
178 my_kaons = my_kaons + tmpKaon;
181 float massTrkSysKaon = my_kaons.M();
185 float finalKPiMass = 0;
186 if(my_trks.size() == 2) {
187 TLorentzVector tmpKaon;
190 TLorentzVector tmpPion = my_trks.at(1);
191 float kPiMass1 = (tmpKaon+tmpPion).M();
194 tmpPion = my_trks.at(0);
195 float kPiMass2 = (tmpKaon+tmpPion).M();
198 finalKPiMass = kPiMass1;
200 finalKPiMass = kPiMass2;
203 float massTrkSysKaonPi = finalKPiMass;
274 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.
constexpr double chargedKaonMassInMeV
the mass of the charged kaon (in MeV)
@ 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 .)