CMS 3D CMS Logo

Public Member Functions | Private Attributes

Rivet::CMS_2011_S8968497 Class Reference

List of all members.

Public Member Functions

void analyze (const Event &event)
 CMS_2011_S8968497 ()
void finalize ()
void init ()

Private Attributes

BinnedHistogram< double > _h_chi_dijet

Detailed Description

Definition at line 8 of file CMS_2011_S8968497.cc.


Constructor & Destructor Documentation

Rivet::CMS_2011_S8968497::CMS_2011_S8968497 ( ) [inline]

Definition at line 10 of file CMS_2011_S8968497.cc.

                        : Analysis("CMS_2011_S8968497") {
       setBeams(PROTON, PROTON);
    }

Member Function Documentation

void Rivet::CMS_2011_S8968497::analyze ( const Event event) [inline]

Definition at line 29 of file CMS_2011_S8968497.cc.

References _h_chi_dijet, event(), funct::exp(), analyzePatCleaning_cfg::jets, METSkim_cff::Jets, and CommonMethods::weight().

                                     {
      const double weight = event.weight();
      const Jets& jets = applyProjection<JetAlg>(event, "ANTIKT").jetsByPt();
      if (jets.size() < 2) vetoEvent;
      FourMomentum j0(jets[0].momentum());
      FourMomentum j1(jets[1].momentum());
      double y0 = j0.rapidity();
      double y1 = j1.rapidity();
      if (fabs(y0+y1)/2. > 1.11) vetoEvent;
      double mjj = FourMomentum(j0+j1).mass();
      double chi = exp(fabs(y0-y1));
      _h_chi_dijet.fill(mjj, chi, weight);

    }
void Rivet::CMS_2011_S8968497::finalize ( void  ) [inline]

Definition at line 44 of file CMS_2011_S8968497.cc.

References _h_chi_dijet, and estimatePileup::hist.

                    {
      foreach (AIDA::IHistogram1D* hist, _h_chi_dijet.getHistograms()) {
        normalize(hist);
      }
    }
void Rivet::CMS_2011_S8968497::init ( void  ) [inline]

Definition at line 14 of file CMS_2011_S8968497.cc.

References _h_chi_dijet.

                {
      FinalState fs;
      FastJets antikt(fs, FastJets::ANTIKT, 0.5);
      addProjection(antikt, "ANTIKT");
      _h_chi_dijet.addHistogram(2200., 7000., bookHistogram1D(1, 1, 1));
      _h_chi_dijet.addHistogram(1800., 2200., bookHistogram1D(2, 1, 1));
      _h_chi_dijet.addHistogram(1400., 1800., bookHistogram1D(3, 1, 1));
      _h_chi_dijet.addHistogram(1100., 1400., bookHistogram1D(4, 1, 1));
      _h_chi_dijet.addHistogram(850., 1100., bookHistogram1D(5, 1, 1));
      _h_chi_dijet.addHistogram(650., 850., bookHistogram1D(6, 1, 1));
      _h_chi_dijet.addHistogram(500., 650., bookHistogram1D(7, 1, 1));
      _h_chi_dijet.addHistogram(350., 500., bookHistogram1D(8, 1, 1));
      _h_chi_dijet.addHistogram(250., 350., bookHistogram1D(9, 1, 1));
    }

Member Data Documentation

BinnedHistogram<double> Rivet::CMS_2011_S8968497::_h_chi_dijet [private]

Definition at line 51 of file CMS_2011_S8968497.cc.

Referenced by analyze(), finalize(), and init().