CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 public:
18 
19 private:
20  typedef std::vector<Jet> JetCollection;
21  void FillHist1D(const TString& histName, const Double_t& x);
22  void beginJob() override;
23  void analyze(edm::Event const& e, edm::EventSetup const& iSetup) override;
24  void endJob() override;
25  std::map<TString, TH1*> m_HistNames1D;
26  TFile* m_file;
33  int NJets;
34 };
35 #endif
void FillHist1D(const TString &histName, const Double_t &x)
tuple cfg
Definition: looper.py:296
std::string HistoFileName
std::string JetAlgorithm
JetPlotsExample(edm::ParameterSet const &cfg)
std::map< TString, TH1 * > m_HistNames1D
std::vector< Jet > JetCollection
void analyze(edm::Event const &e, edm::EventSetup const &iSetup) override
void beginJob() override
void endJob() override