Rivet  3.1.4
MC_JetAnalysis.hh
1 // -*- C++ -*-
2 #ifndef RIVET_MC_JetAnalysis_HH
3 #define RIVET_MC_JetAnalysis_HH
4 
5 #include "Rivet/Analysis.hh"
6 #include "Rivet/Projections/FinalState.hh"
7 
8 namespace Rivet {
9 
10 
14  class MC_JetAnalysis : public Analysis {
15  public:
16 
18  MC_JetAnalysis(const string& name,
19  size_t njet,
20  const string& jetpro_name,
21  double jetptcut=20*GeV);
22 
23 
25 
26  virtual void init();
27  virtual void analyze(const Event& event);
28  virtual void finalize();
30 
31 
32  protected:
33 
35  size_t _njet;
36 
39  const std::string _jetpro_name;
40 
42  double _jetptcut;
43 
45 
47 
48  std::vector<Histo1DPtr> _h_pT_jet;
49  std::vector<Histo1DPtr> _h_eta_jet;
50  std::vector<Histo1DPtr> _h_eta_jet_plus, _h_eta_jet_minus;
51  std::vector<Histo1DPtr> _h_rap_jet;
52  std::vector<Histo1DPtr> _h_rap_jet_plus, _h_rap_jet_minus;
53  std::vector<Histo1DPtr> _h_mass_jet;
54  std::vector<Scatter2DPtr> tmpeta, tmprap;
55  std::map<std::pair<size_t, size_t>, Histo1DPtr> _h_deta_jets;
56  std::map<std::pair<size_t, size_t>, Histo1DPtr> _h_dphi_jets;
57  std::map<std::pair<size_t, size_t>, Histo1DPtr> _h_dR_jets;
58  Histo1DPtr _h_jet_multi_exclusive;
59  Histo1DPtr _h_jet_multi_inclusive;
60  Scatter2DPtr _h_jet_multi_ratio;
61  Histo1DPtr _h_jet_HT, _h_mjj_jets;
63 
64  };
65 
66 }
67 
68 #endif
Definition: MC_Cent_pPb.hh:10
virtual void init()
MC_JetAnalysis(const string &name, size_t njet, const string &jetpro_name, double jetptcut=20 *GeV)
Default constructor.
This is the base class of all analysis classes in Rivet.
Definition: Analysis.hh:64
Representation of a HepMC event, and enabler of Projection caching.
Definition: Event.hh:22
Base class providing common functionality for MC jet validation analyses.
Definition: MC_JetAnalysis.hh:14
virtual void finalize()
virtual std::string name() const
Get the name of the analysis.
Definition: Analysis.hh:127
virtual void analyze(const Event &event)