33 float ptbins[14] = { 0,5,10,15,20,25,30,35, 40, 50, 60, 80, 120, 160};
36 for(
int i=0;
i<Type::Number;
i++){
37 N[
i] = iBooker.
book1D( (
Name[
i]+
"_N").c_str(), (
"L1 " +
Name[
i]+
" Number with BX=0").c_str(), 16, -0.5, 15.5);
39 Eff_Pt[
i] = iBooker.
book1D( (
Name[
i]+
"_Eff_Pt").c_str(), (
Name[
i]+
" Efficiency vs Pt; Gen p_{T} [GeV]; L1T Efficiency").c_str(), Nptbin, ptbins);
40 Eff_Pt_Denom[
i] = iBooker.
book1D( (
Name[
i]+
"_Eff_Pt_Denom").c_str(), (
Name[
i]+
" Efficiency vs Pt Denom; Gen p_{T} [GeV]; Entries").c_str(), Nptbin, ptbins);
41 Eff_Pt_Nomin[
i] = iBooker.
book1D( (
Name[
i]+
"_Eff_Pt_Nomin").c_str(), (
Name[
i]+
" Efficiency vs Pt Nomin; Gen p_{T} [GeV]; Entries").c_str(), Nptbin, ptbins);
42 Eff_Eta[
i] = iBooker.
book1D( (
Name[
i]+
"_Eff_Eta").c_str(), (
Name[
i]+
" Efficiency vs #eta (Gen p_{T} > 10GeV); Gen #eta; L1T Efficiency").c_str(), 80, -4, 4);
43 Eff_Eta_Denom[
i] = iBooker.
book1D( (
Name[
i]+
"_Eff_Eta_Denom").c_str(), (
Name[
i]+
" Efficiency vs #eta Denom; Gen #eta; Entries").c_str(), 80, -4, 4);
44 Eff_Eta_Nomin[
i] = iBooker.
book1D( (
Name[
i]+
"_Eff_Eta_Nomin").c_str(), (
Name[
i]+
" Efficiency vs #eta Nomin; Gen #eta; Entries").c_str(), 80, -4, 4);
45 TurnOn_15[
i] = iBooker.
book1D( (
Name[
i]+
"_TurnOn_15").c_str(), (
Name[
i]+
" Turn On (15 GeV); Gen p_{T} [GeV]; L1T Efficiency").c_str(), Nptbin, ptbins);
46 TurnOn_15_Denom[
i] = iBooker.
book1D( (
Name[
i]+
"_TurnOn_15_Denom").c_str(), (
Name[
i]+
" Turn On (15 GeV) Denom; Gen p_{T} [GeV]; Entries").c_str(), Nptbin, ptbins);
47 TurnOn_15_Nomin[
i] = iBooker.
book1D( (
Name[
i]+
"_TurnOn_15_Nomin").c_str(), (
Name[
i]+
" Turn On (15 GeV) Nomin; Gen p_{T} [GeV]; Entries").c_str(), Nptbin, ptbins);
48 TurnOn_30[
i] = iBooker.
book1D( (
Name[
i]+
"_TurnOn_30").c_str(), (
Name[
i]+
" Turn On (30 GeV); Gen p_{T} [GeV]; L1T Efficiency").c_str(), Nptbin, ptbins);
49 TurnOn_30_Denom[
i] = iBooker.
book1D( (
Name[
i]+
"_TurnOn_30_Denom").c_str(), (
Name[
i]+
" Turn On (30 GeV) Denom; Gen p_{T} [GeV]; Entries").c_str(), Nptbin, ptbins);
50 TurnOn_30_Nomin[
i] = iBooker.
book1D( (
Name[
i]+
"_TurnOn_30_Nomin").c_str(), (
Name[
i]+
" Turn On (30 GeV) Nomin; Gen p_{T} [GeV]; Entries").c_str(), Nptbin, ptbins);
51 dR[
i] = iBooker.
book1D( (
Name[
i]+
"_dR").c_str(), (
Name[
i]+
" #DeltaR; #DeltaR(L1 object, Gen object); Entries").c_str(), 40, 0, 1);
52 dR_vs_Pt[
i] = iBooker.
book2D( (
Name[
i]+
"_dR_vs_Pt").c_str(), (
Name[
i]+
" #DeltaR vs p_{T}; Gen p_{T} [GeV]; #DeltaR(L1 object, Gen object); Entries").c_str(), 12, 0, 120, 40, 0, 1);
53 dPt[
i] = iBooker.
book1D( (
Name[
i]+
"_dPt").c_str(), (
Name[
i]+
" #Deltap_{T}; (p_{T}^{L1}-p_{T}^{Gen})/p_{T}^{Gen}; Entries").c_str(), 100, -2, 2);
54 dPt_vs_Pt[
i] = iBooker.
book2D( (
Name[
i]+
"_dPt_vs_Pt").c_str(), (
Name[
i]+
" #Deltap_{T} vs p_{T}; Gen p_{T} [GeV]; (p_{T}^{L1}-p_{T}^{Gen})/p_{T}^{Gen}; Entries").c_str(), 12, 0, 120, 40, -2, 2);
60 double GenPartPt = GenPart->
pt();
62 if(GenPart->
pt()>=160.0) GenPartPt = 159.0;
91 for(
int i=0;
i<Type::Number;
i++){
void Fill(int, const reco::LeafCandidate *, const reco::LeafCandidate *)
MonitorElement * dR_vs_Pt[Type::Number]
double eta() const final
momentum pseudorapidity
MonitorElement * Eff_Eta[Type::Number]
MonitorElement * N[Type::Number]
MonitorElement * TurnOn_15[Type::Number]
MonitorElement * Eff_Pt_Denom[Type::Number]
MonitorElement * TurnOn_15_Denom[Type::Number]
double pt() const final
transverse momentum
MonitorElement * Eff_Eta_Nomin[Type::Number]
void FillNumber(int, int)
MonitorElement * TurnOn_15_Nomin[Type::Number]
MonitorElement * TurnOn_30_Denom[Type::Number]
MonitorElement * book1D(Args &&...args)
MonitorElement * dPt[Type::Number]
auto deltaR(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
MonitorElement * TurnOn_30[Type::Number]
MonitorElement * dR[Type::Number]
MonitorElement * TurnOn_30_Nomin[Type::Number]
MonitorElement * book2D(Args &&...args)
MonitorElement * dPt_vs_Pt[Type::Number]
MonitorElement * Eff_Pt_Nomin[Type::Number]
void Book(DQMStore::IBooker &)
TH2F * getTH2F(void) const
MonitorElement * Eff_Eta_Denom[Type::Number]
double phi() const final
momentum azimuthal angle
MonitorElement * Eff_Pt[Type::Number]