8#include "TLorentzVector.h"
39 float pt = acc_ptvis(truthtau);
40 if(pt>0.) ptratio = tau.
pt()/pt;
41 float eta = acc_etavis(truthtau);
42 float phi = acc_phivis(truthtau);
43 float m = acc_mvis(truthtau);
46 TLorentzVector LV_TauJet(0,0,0,0);
47 TLorentzVector LV_TruthTau(0,0,0,0);
48 LV_TauJet.SetPtEtaPhiM(tau.
pt(), tau.
eta(), tau.
phi(), tau.
m());
49 LV_TruthTau.SetPtEtaPhiM(pt,
eta,
phi, m);
52 int pdgID = acc_pdgID(truthtau);
53 float truth_charge = 0.;
54 if(pdgID > 0) truth_charge = -1.;
55 else if(pdgID < 0) truth_charge = 1.;
56 float charge_diff = tau.
charge() - truth_charge;
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
Helper class to provide constant type-safe access to aux data.
TH1D * Book1D(const std::string &name, const std::string &labels, int nBins, float start, float end, bool prependDir=true)
Book a TH1D histogram.
PlotBase(PlotBase *parent, const std::string &sDir)
Helper class to provide constant type-safe access to aux data.
virtual ~ResolutionPlots()
void fill(const xAOD::TauJet &tau, const xAOD::TruthParticle &, float weight)
ResolutionPlots(PlotBase *pParent, const std::string &sDir, std::string sTauJetContainerName)
std::string m_sTauJetContainerName
virtual double phi() const
The azimuthal angle ( ) of the particle.
virtual double pt() const
The transverse momentum ( ) of the particle.
virtual double m() const
The invariant mass of the particle.
virtual double eta() const
The pseudorapidity ( ) of the particle.
TauJet_v3 TauJet
Definition of the current "tau version".
TruthParticle_v1 TruthParticle
Typedef to implementation.