CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
JetCorExample.h
Go to the documentation of this file.
1 // Template class: JetCorExample
2 // Description: Example of simple EDAnalyzer correcting jets "on the fly".
3 // Author: K. Kousouris
4 // Date: 25 - August - 2008
5 #ifndef JetCorExample_h
6 #define JetCorExample_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:
18  JetCorExample(edm::ParameterSet const& cfg);
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  std::string JetCorrectionService;
34  };
35 #endif
std::string JetCorrectionService
Definition: JetCorExample.h:33
JetCorExample(edm::ParameterSet const &cfg)
void analyze(edm::Event const &e, edm::EventSetup const &iSetup)
std::vector< Jet > JetCollection
Definition: JetCorExample.h:20
std::map< TString, TH1 * > m_HistNames1D
Definition: JetCorExample.h:25
std::string JetAlgorithm
Definition: JetCorExample.h:29
TFile * m_file
Definition: JetCorExample.h:26
x
Definition: VDTMath.h:216
void FillHist1D(const TString &histName, const Double_t &x)
std::string HistoFileName
Definition: JetCorExample.h:31