rivet is hosted by Hepforge, IPPP Durham

Rivet analyses reference

MC_ZZINC

Monte Carlo validation observables for $Z[e^+ \, e^-]Z[\mu^+ \, \mu^-]$ production
Experiment: ()
Status: VALIDATED
Authors:
  • Frank Siegert
No references listed
Beams: * *
Beam energies: ANY
Run details:
  • $ZZ$ + jets analysis. Needs mass cut on lepton pairs to avoid photon singularity, e.g. a min range of $66 < m_{ee} < 116$ GeV

Monte Carlo validation observables for $Z[e^+ \, e^-]Z[\mu^+ \, \mu^-]$ production

Source code: MC_ZZINC.cc
  1// -*- C++ -*-
  2#include "Rivet/Analysis.hh"
  3#include "Rivet/Projections/DileptonFinder.hh"
  4#include "Rivet/Projections/VetoedFinalState.hh"
  5
  6namespace Rivet {
  7
  8
  9  /// @brief MC validation analysis for Z[ee]Z[mumu] events
 10  class MC_ZZINC : public Analysis {
 11  public:
 12
 13    /// Default constructor
 14    RIVET_DEFAULT_ANALYSIS_CTOR(MC_ZZINC);
 15
 16
 17    /// @name Analysis methods
 18    /// @{
 19
 20    /// Book histograms
 21    void init() {
 22      // set FS cuts from input options
 23      const double etaecut = getOption<double>("ABSETAEMAX", 3.5);
 24      const double ptecut = getOption<double>("PTEMIN", 25.);
 25      Cut cut_e = Cuts::abseta < etaecut && Cuts::pT > ptecut*GeV;
 26      DileptonFinder zeefinder(91.2*GeV, 0.2, cut_e && Cuts::abspid == PID::ELECTRON,
 27                               Cuts::massIn(65*GeV, 115*GeV));
 28      declare(zeefinder, "ZeeFinder");
 29
 30      VetoedFinalState zmminput;
 31      zmminput.addVetoOnThisFinalState(zeefinder);
 32
 33      // set FS cuts from input options
 34      const double etamucut = getOption<double>("ABSETAMUMAX", 3.5);
 35      const double ptmucut = getOption<double>("PTMUMIN", 25.);
 36      Cut cut_mu = Cuts::abseta < etamucut && Cuts::pT > ptmucut*GeV;
 37      DileptonFinder zmmfinder(PromptFinalState(zmminput), 91.2*GeV, 0.2, cut_mu &&
 38                               Cuts::abspid == PID::MUON, Cuts::massIn(65*GeV, 115*GeV));
 39      declare(zmmfinder, "ZmmFinder");
 40
 41      // Properties of the pair momentum
 42      double sqrts = sqrtS()>0. ? sqrtS() : 14000.;
 43      book(_h_ZZ_pT ,"ZZ_pT", logspace(100, 1.0, 0.5*sqrts/GeV));
 44      book(_h_ZZ_pT_peak ,"ZZ_pT_peak", 25, 0.0, 25.0);
 45      book(_h_ZZ_eta ,"ZZ_eta", 40, -7.0, 7.0);
 46      book(_h_ZZ_phi ,"ZZ_phi", 25, 0.0, TWOPI);
 47      book(_h_ZZ_m ,"ZZ_m", logspace(100, 150.0, 180.0 + 0.25*sqrts/GeV));
 48
 49      // Correlations between the ZZ
 50      book(_h_ZZ_dphi ,"ZZ_dphi", 25, 0.0, PI);  /// @todo non-linear?
 51      book(_h_ZZ_deta ,"ZZ_deta", 25, -7.0, 7.0);
 52      book(_h_ZZ_dR ,"ZZ_dR", 25, 0.5, 7.0);
 53      book(_h_ZZ_dpT ,"ZZ_dpT", logspace(100, 1.0, 0.5*sqrts/GeV));
 54      book(_h_ZZ_costheta_planes ,"ZZ_costheta_planes", 25, -1.0, 1.0);
 55
 56      // Properties of the Z bosons
 57      book(_h_Z_pT ,"Z_pT", logspace(100, 10.0, 0.25*sqrts/GeV));
 58      book(_h_Z_eta ,"Z_eta", 70, -7.0, 7.0);
 59
 60      // Properties of the leptons
 61      book(_h_Zl_pT ,"Zl_pT", logspace(100, 30.0, 0.1*sqrts/GeV));
 62      book(_h_Zl_eta ,"Zl_eta", 40, -3.5, 3.5);
 63
 64      // Correlations between the opposite charge leptons
 65      book(_h_ZeZm_dphi ,"ZeZm_dphi", 25, 0.0, PI);
 66      book(_h_ZeZm_deta ,"ZeZm_deta", 25, -5.0, 5.0);
 67      book(_h_ZeZm_dR ,"ZeZm_dR", 25, 0.5, 5.0);
 68      book(_h_ZeZm_m ,"ZeZm_m", 100, 0.0, 300.0);
 69
 70    }
 71
 72
 73
 74    /// Do the analysis
 75    void analyze(const Event& e) {
 76      const DileptonFinder& zeefinder = apply<DileptonFinder>(e, "ZeeFinder");
 77      if (zeefinder.bosons().size() != 1) vetoEvent;
 78      const DileptonFinder& zmmfinder = apply<DileptonFinder>(e, "ZmmFinder");
 79      if (zmmfinder.bosons().size() != 1) vetoEvent;
 80
 81      // Z momenta
 82      const FourMomentum& zee = zeefinder.bosons()[0].momentum();
 83      const FourMomentum& zmm = zmmfinder.bosons()[0].momentum();
 84      const FourMomentum zz = zee + zmm;
 85      // Lepton momenta
 86      const FourMomentum& ep = zeefinder.constituents()[0].momentum();
 87      const FourMomentum& em = zeefinder.constituents()[1].momentum();
 88      const FourMomentum& mp = zmmfinder.constituents()[0].momentum();
 89      const FourMomentum& mm = zmmfinder.constituents()[1].momentum();
 90
 91      _h_ZZ_pT->fill(zz.pT()/GeV);
 92      _h_ZZ_pT_peak->fill(zz.pT()/GeV);
 93      _h_ZZ_eta->fill(zz.eta());
 94      _h_ZZ_phi->fill(zz.phi());
 95      if (zz.mass2() > 0.0) ///< @todo Protection still needed?
 96        _h_ZZ_m->fill(zz.mass()/GeV);
 97
 98      _h_ZZ_dphi->fill(deltaPhi(zee, zmm));
 99      _h_ZZ_deta->fill(zee.eta()-zmm.eta());
100      _h_ZZ_dR->fill(deltaR(zee,zmm));
101      _h_ZZ_dpT->fill(fabs(zee.pT()-zmm.pT()));
102
103      const Vector3 crossZee = ep.p3().cross(em.p3());
104      const Vector3 crossZmm = mp.p3().cross(mm.p3());
105      const double costheta = crossZee.dot(crossZmm)/crossZee.mod()/crossZmm.mod();
106      _h_ZZ_costheta_planes->fill(costheta);
107
108      _h_Z_pT->fill(zee.pT()/GeV);
109      _h_Z_pT->fill(zmm.pT()/GeV);
110      _h_Z_eta->fill(zee.eta());
111      _h_Z_eta->fill(zmm.eta());
112
113      _h_Zl_pT->fill(ep.pT()/GeV);
114      _h_Zl_pT->fill(em.pT()/GeV);
115      _h_Zl_pT->fill(mp.pT()/GeV);
116      _h_Zl_pT->fill(mm.pT()/GeV);
117      _h_Zl_eta->fill(ep.eta());
118      _h_Zl_eta->fill(em.eta());
119      _h_Zl_eta->fill(mp.eta());
120      _h_Zl_eta->fill(mm.eta());
121
122      _h_ZeZm_dphi->fill(deltaPhi(ep, mm));
123      _h_ZeZm_deta->fill(ep.eta()-mm.eta());
124      _h_ZeZm_dR->fill(deltaR(ep, mm));
125      const FourMomentum epmm = ep + mm;
126      const double m_epmm = (epmm.mass2() > 0) ? epmm.mass() : 0; ///< @todo Protection still needed?
127      _h_ZeZm_m->fill(m_epmm/GeV);
128    }
129
130
131    /// Finalize
132    void finalize() {
133      const double s = crossSection()/picobarn/sumOfWeights();
134      scale(_h_ZZ_pT, s);
135      scale(_h_ZZ_pT_peak, s);
136      scale(_h_ZZ_eta, s);
137      scale(_h_ZZ_phi, s);
138      scale(_h_ZZ_m, s);
139      scale(_h_ZZ_dphi, s);
140      scale(_h_ZZ_deta, s);
141      scale(_h_ZZ_dR, s);
142      scale(_h_ZZ_dpT, s);
143      scale(_h_ZZ_costheta_planes, s);
144      scale(_h_Z_pT, s);
145      scale(_h_Z_eta, s);
146      scale(_h_Zl_pT, s);
147      scale(_h_Zl_eta, s);
148      scale(_h_ZeZm_dphi, s);
149      scale(_h_ZeZm_deta, s);
150      scale(_h_ZeZm_dR, s);
151      scale(_h_ZeZm_m, s);
152    }
153
154    /// @}
155
156
157  private:
158
159    /// @name Histograms
160    /// @{
161    Histo1DPtr _h_ZZ_pT;
162    Histo1DPtr _h_ZZ_pT_peak;
163    Histo1DPtr _h_ZZ_eta;
164    Histo1DPtr _h_ZZ_phi;
165    Histo1DPtr _h_ZZ_m;
166    Histo1DPtr _h_ZZ_dphi;
167    Histo1DPtr _h_ZZ_deta;
168    Histo1DPtr _h_ZZ_dR;
169    Histo1DPtr _h_ZZ_dpT;
170    Histo1DPtr _h_ZZ_costheta_planes;
171    Histo1DPtr _h_Z_pT;
172    Histo1DPtr _h_Z_eta;
173    Histo1DPtr _h_Zl_pT;
174    Histo1DPtr _h_Zl_eta;
175    Histo1DPtr _h_ZeZm_dphi;
176    Histo1DPtr _h_ZeZm_deta;
177    Histo1DPtr _h_ZeZm_dR;
178    Histo1DPtr _h_ZeZm_m;
179    /// @}
180
181  };
182
183
184
185  RIVET_DECLARE_PLUGIN(MC_ZZINC);
186
187}