|
ATLAS Offline Software
|
Go to the documentation of this file.
49 float emscale_ptEM = 0.;
50 float emscale_ptHad = 0.;
54 ATH_MSG_DEBUG(
"retrieval of tau detail failed. stopping calculation of further variables");
55 return StatusCode::SUCCESS;
60 ATH_MSG_DEBUG(
"retrieval of tau detail failed. stopping calculation of further variables");
61 return StatusCode::SUCCESS;
70 if (!tauTracks.empty()) {
72 TLorentzVector sumOfTrackVector;
76 sumOfTrackVector += tauTrk->p4();
81 if (tauTracks.size()> 1 && pTau.
nTracks()>0) {
84 double sumWeightedDR = 0.;
85 double sumWeightedDR2 = 0.;
91 ptSum += tauTrk->pt();
92 sumWeightedDR +=
deltaR * tauTrk->pt();
96 double trkWidth2 = (ptSum!=0.) ? (sumWeightedDR2/ptSum -
std::pow(sumWeightedDR/ptSum, 2.)) : 0.;
102 if (!tauTracks.empty()) {
105 double innerPtSum = 0;
106 double sumWeightedDR = 0;
107 double innerSumWeightedDR = 0;
108 double sumWeightedDR2 = 0;
114 ptSum += tauTrk->pt();
115 sumWeightedDR +=
deltaR * tauTrk->pt();
120 innerPtSum += tauTrk->pt();
121 innerSumWeightedDR +=
deltaR * tauTrk->pt();
130 double trkRmsDist2 = sumWeightedDR2 / ptSum -
pow(sumWeightedDR/ptSum, 2.);
131 if (trkRmsDist2 > 0.) {
146 if (innerPtSum > 0.) {
156 return StatusCode::SUCCESS;
TauTrackFlag
Enum for tau track flags.
@ trkRmsDist
Get the RMS of track distance to calorimeter seed.
virtual FourMom_t p4() const
The full 4-momentum of the particle.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
size_t nTracks(TauJetParameters::TauTrackFlag flag=TauJetParameters::TauTrackFlag::classifiedCharged) const
@ etHadAtEMScale
Get Hadronic energy at EM scale.
::StatusCode StatusCode
StatusCode definition for legacy code.
@ trkAvgDist
Get calibrated EM transverse energy (DEPRECATED since r19)
Class describing a tau jet.
const TauTrack * track(size_t i, TauJetParameters::TauTrackFlag flag=TauJetParameters::TauTrackFlag::classifiedCharged, int *container_index=0) const
Get the pointer to a given tauTrack associated with this tau /*container index needed by trackNonCons...
bool detail(TauJetParameters::Detail detail, int &value) const
Set veto flag.
virtual double pt() const
The transverse momentum ( ) of the particle.
virtual StatusCode execute(xAOD::TauJet &pTau) const override
Execute - called for each tau candidate.
virtual FourMom_t p4() const
The full 4-momentum of the particle.
TauCommonCalcVars(const std::string &name="TauCommonCalcVars")
void setDetail(TauJetParameters::Detail detail, int value)
std::vector< const TauTrack * > tracks(TauJetParameters::TauTrackFlag flag=TauJetParameters::TauTrackFlag::classifiedCharged) const
Get the v<const pointer> to a given tauTrack collection associated with this tau.
@ etEMAtEMScale
Get EM energy at EM scale.