CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
JetPlotsExample.h
Go to the documentation of this file.
1 // Template class: JetPlotsExample
2 // Description: Example of simple EDAnalyzer for jets.
3 // Author: K. Kousouris
4 // Date: 25 - August - 2008
5 #ifndef JetPlotsExample_h
6 #define JetPlotsExample_h
7 #include <TH1.h>
8 #include <TFile.h>
9 #include "TNamed.h"
10 #include <vector>
11 #include <map>
13 
14 template<class Jet>
16  {
17  public:
19  private:
20  typedef std::vector<Jet> JetCollection;
21  void FillHist1D(const TString& histName, const Double_t& x);
22  void beginJob();
23  void analyze(edm::Event const& e, edm::EventSetup const& iSetup);
24  void endJob();
25  std::map<TString, TH1*> m_HistNames1D;
26  TFile* m_file;
29  std::string JetAlgorithm;
31  std::string HistoFileName;
33  int NJets;
34  };
35 #endif
void FillHist1D(const TString &histName, const Double_t &x)
std::string HistoFileName
void analyze(edm::Event const &e, edm::EventSetup const &iSetup)
std::string JetAlgorithm
JetPlotsExample(edm::ParameterSet const &cfg)
std::map< TString, TH1 * > m_HistNames1D
std::vector< Jet > JetCollection
x
Definition: VDTMath.h:216