test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
JetAnaPythia.h
Go to the documentation of this file.
1 // Template class: JetAnaPythia
2 // Description: Example of simple analyzer for jets produced by Pythia
3 // Author: R. Harris
4 // Date: 28 - October - 2008
5 #ifndef JetAnaPythia_h
6 #define JetAnaPythia_h
7 #include <TTree.h>
8 #include <TH1.h>
9 #include <TFile.h>
10 #include "TNamed.h"
11 #include <vector>
12 #include <map>
14 
15 template<class Jet>
17  {
18  public:
20  private:
21  typedef std::vector<Jet> JetCollection;
22  void FillHist1D(const TString& histName, const Double_t& x, const Double_t& wt);
23  void beginJob();
24  void analyze(edm::Event const& e, edm::EventSetup const& iSetup);
25  void endJob();
26  std::map<TString, TH1*> m_HistNames1D;
28  TTree* mcTruthTree_;
29  float xsec;
30  float weight;
31  float pt_hat;
32  int nJets;
33  float etaJet1, etaJet2;
34  float ptJet1, ptJet2;
36  float ptPart1, ptPart2;
37  float diJetMass;
38  float diPartMass;
39  TFile* m_file;
46  int NJets;
48  bool debug;
50  int eventsGen;
60  std::vector<double> xsecGen;
61  std::vector<double> ptHatEdges;
62 
63  };
64 #endif
std::vector< double > xsecGen
Definition: JetAnaPythia.h:60
tuple cfg
Definition: looper.py:293
float diJetMass
Definition: JetAnaPythia.h:37
JetAnaPythia(edm::ParameterSet const &cfg)
Definition: JetAnaPythia.cc:27
void FillHist1D(const TString &histName, const Double_t &x, const Double_t &wt)
float etaPart2
Definition: JetAnaPythia.h:35
std::string JetAlgorithm
Definition: JetAnaPythia.h:42
void beginJob()
Definition: JetAnaPythia.cc:41
std::string HistoFileName
Definition: JetAnaPythia.h:44
std::vector< Jet > JetCollection
Definition: JetAnaPythia.h:21
void analyze(edm::Event const &e, edm::EventSetup const &iSetup)
float etaPart1
Definition: JetAnaPythia.h:35
std::map< TString, TH1 * > m_HistNames1D
Definition: JetAnaPythia.h:26
TFile * m_file
Definition: JetAnaPythia.h:39
float diPartMass
Definition: JetAnaPythia.h:38
TTree * mcTruthTree_
Definition: JetAnaPythia.h:28
std::vector< double > ptHatEdges
Definition: JetAnaPythia.h:61
std::string anaLevel
Definition: JetAnaPythia.h:56