18 matchCandBench_(mode),
20 matchCharge_(matchCharge) {
22 setRange( 0.0, 10e10, -10.0, 10.0, -3.14, 3.14);
63 float ptmin,
float ptmax,
float etamin,
float etamax,
70 setRange( ptmin, ptmax, etamin, etamax, phimin, phimax );
85 "#DeltaFraction_Vs_Fraction(muon)", 100, 0.0, 1.0, 100, -1.0, 1.0);
87 "#DeltaFraction_Vs_Fraction(photon)", 100, 0.0, 1.0, 100, -1.0, 1.0);
89 "#DeltaFraction_Vs_Fraction(electron)", 100, 0.0, 1.0, 100, -1.0, 1.0);
91 "#DeltaFraction_Vs_Fraction(charged hadron)", 100, 0.0, 1.0, 100, -1.0, 1.0);
93 "#DeltaFraction_Vs_Fraction(neutral hadron)", 100, 0.0, 1.0, 100, -1.0, 1.0);
108 "#DeltaFraction_Vs_Fraction(muon)", 100, 0.0, 1.0, 100, -1.0, 1.0);
110 "#DeltaFraction_Vs_Fraction(photon)", 100, 0.0, 1.0, 100, -1.0, 1.0);
112 "#DeltaFraction_Vs_Fraction(electron)", 100, 0.0, 1.0, 100, -1.0, 1.0);
114 "#DeltaFraction_Vs_Fraction(charged hadron)", 100, 0.0, 1.0, 100, -1.0, 1.0);
116 "#DeltaFraction_Vs_Fraction(neutral hadron)", 100, 0.0, 1.0, 100, -1.0, 1.0);
140 float del_frac_muon = -99.9;
141 float del_frac_elec = -99.9;
142 float del_frac_phot = -99.9;
143 float del_frac_ch_had = -99.9;
144 float del_frac_neu_had = -99.9;
152 if (mult_muon > 0) del_frac_muon = (pfJet->
muonMultiplicity() - mult_muon)*1.0/mult_muon;
154 if (mult_phot > 0) del_frac_phot = (pfJet->
photonMultiplicity() - mult_phot)*1.0/mult_phot;
T getParameter(std::string const &) const
int photonMultiplicity() const
photonMultiplicity
CandidateBenchmark candBench_
void setDirectory(TDirectory *dir)
set directory (to use in ROOT)
void setup()
book histograms
Base class for all types of Jets.
void setup()
book histograms
virtual void setDirectory(TDirectory *dir)
bool createPFractionHistos_
TH2F * delta_frac_VS_frac_muon_
MatchCandidateBenchmark matchCandBench_
Jets made from PFObjects.
TH2F * delta_frac_VS_frac_neutral_hadron_
TH2F * book2D(const char *histname, const char *title, int nbinsx, float xmin, float xmax, int nbinsy, float ymin, float ymax)
book a 2D histogram, either with DQM or plain root.
void setup()
book histograms
void setParameters(float dRMax, bool matchCharge, Benchmark::Mode mode, float ptmin, float ptmax, float etamin, float etamax, float phimin, float phimax, bool fracHistoFlag=true)
set the parameters locally
int neutralHadronMultiplicity() const
neutralHadronMultiplicity
void setParameters(Mode mode)
PFJetMonitor(float dRMax=0.3, bool matchCharge=true, Benchmark::Mode mode=Benchmark::DEFAULT)
void fillOne(const reco::Jet &jet, const reco::Jet &matchedJet)
TH2F * delta_frac_VS_frac_photon_
TH2F * delta_frac_VS_frac_electron_
void setRange(float ptMin, float ptMax, float etaMin, float etaMax, float phiMin, float phiMax)
int chargedHadronMultiplicity() const
chargedHadronMultiplicity
int muonMultiplicity() const
muonMultiplicity
TH2F * delta_frac_VS_frac_charged_hadron_
int electronMultiplicity() const
electronMultiplicity