Definition at line 24 of file PFRecoTauMassPlugin.cc.
reco::tau::PFRecoTauMassPlugin::~PFRecoTauMassPlugin |
( |
| ) |
|
|
virtual |
void reco::tau::PFRecoTauMassPlugin::beginEvent |
( |
| ) |
|
|
virtual |
void reco::tau::PFRecoTauMassPlugin::endEvent |
( |
| ) |
|
|
virtual |
void reco::tau::PFRecoTauMassPlugin::operator() |
( |
PFTau & |
tau | ) |
const |
|
virtual |
Implements reco::tau::RecoTauModifierPlugin.
Definition at line 52 of file PFRecoTauMassPlugin.cc.
References gather_cfg::cout, reco::PFTau::decayMode(), reco::LeafCandidate::energy(), reco::LeafCandidate::eta(), reco::PFTau::kOneProng0PiZero, reco::LeafCandidate::mass(), reco::LeafCandidate::phi(), reco::LeafCandidate::pt(), reco::LeafCandidate::setP4(), reco::LeafCandidate::theta(), and verbosity_.
55 std::cout <<
"<PFRecoTauMassPlugin::operator()>:" << std::endl;
56 std::cout <<
"tau: Pt = " <<
tau.pt() <<
", eta = " <<
tau.eta() <<
", phi = " <<
tau.phi() <<
", mass = " <<
tau.mass() <<
" (decayMode = " <<
tau.decayMode() <<
")" << std::endl;
60 double tauEn =
tau.energy();
61 const double chargedPionMass = 0.13957;
62 if ( tauEn < chargedPionMass ) tauEn = chargedPionMass;
63 double tauP_modified = TMath::Sqrt(tauEn*tauEn - chargedPionMass*chargedPionMass);
64 double tauPx_modified = TMath::Cos(
tau.phi())*TMath::Sin(
tau.theta())*tauP_modified;
65 double tauPy_modified = TMath::Sin(
tau.phi())*TMath::Sin(
tau.theta())*tauP_modified;
66 double tauPz_modified = TMath::Cos(
tau.theta())*tauP_modified;
69 std::cout <<
"--> setting tauP4: Pt = " << tauP4_modified.pt() <<
", eta = " << tauP4_modified.eta() <<
", phi = " << tauP4_modified.phi() <<
", mass = " << tauP4_modified.mass() << std::endl;
71 tau.setP4(tauP4_modified);
math::XYZTLorentzVector LorentzVector
Lorentz vector.
int reco::tau::PFRecoTauMassPlugin::verbosity_ |
|
private |