CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
Rivet::CMS_2011_S8968497 Class Reference
Inheritance diagram for Rivet::CMS_2011_S8968497:

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.

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

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().

29  {
30  const double weight = event.weight();
31  const Jets& jets = applyProjection<JetAlg>(event, "ANTIKT").jetsByPt();
32  if (jets.size() < 2) vetoEvent;
33  FourMomentum j0(jets[0].momentum());
34  FourMomentum j1(jets[1].momentum());
35  double y0 = j0.rapidity();
36  double y1 = j1.rapidity();
37  if (fabs(y0+y1)/2. > 1.11) vetoEvent;
38  double mjj = FourMomentum(j0+j1).mass();
39  double chi = exp(fabs(y0-y1));
40  _h_chi_dijet.fill(mjj, chi, weight);
41 
42  }
BinnedHistogram< double > _h_chi_dijet
Exp< T >::type exp(const T &t)
Definition: Exp.h:22
tuple Jets
Definition: METSkim_cff.py:17
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
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.

44  {
45  foreach (AIDA::IHistogram1D* hist, _h_chi_dijet.getHistograms()) {
46  normalize(hist);
47  }
48  }
BinnedHistogram< double > _h_chi_dijet
void Rivet::CMS_2011_S8968497::init ( void  )
inline

Definition at line 14 of file CMS_2011_S8968497.cc.

References _h_chi_dijet.

14  {
15  FinalState fs;
16  FastJets antikt(fs, FastJets::ANTIKT, 0.5);
17  addProjection(antikt, "ANTIKT");
18  _h_chi_dijet.addHistogram(2200., 7000., bookHistogram1D(1, 1, 1));
19  _h_chi_dijet.addHistogram(1800., 2200., bookHistogram1D(2, 1, 1));
20  _h_chi_dijet.addHistogram(1400., 1800., bookHistogram1D(3, 1, 1));
21  _h_chi_dijet.addHistogram(1100., 1400., bookHistogram1D(4, 1, 1));
22  _h_chi_dijet.addHistogram(850., 1100., bookHistogram1D(5, 1, 1));
23  _h_chi_dijet.addHistogram(650., 850., bookHistogram1D(6, 1, 1));
24  _h_chi_dijet.addHistogram(500., 650., bookHistogram1D(7, 1, 1));
25  _h_chi_dijet.addHistogram(350., 500., bookHistogram1D(8, 1, 1));
26  _h_chi_dijet.addHistogram(250., 350., bookHistogram1D(9, 1, 1));
27  }
BinnedHistogram< double > _h_chi_dijet

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().