RecoJets
JetAnalyzers
interface
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>
12
#include "
FWCore/Framework/interface/EDAnalyzer.h
"
13
14
template
<
class
Jet>
15
class
JetPlotsExample
:
public
edm::EDAnalyzer
{
16
public
:
17
JetPlotsExample
(
edm::ParameterSet
const
&
cfg
);
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
;
29
std::string
JetAlgorithm
;
31
std::string
HistoFileName
;
33
int
NJets
;
34
};
35
#endif
JetPlotsExample
Definition:
JetPlotsExample.h:15
JetPlotsExample::JetPlotsExample
JetPlotsExample(edm::ParameterSet const &cfg)
Definition:
JetPlotsExample.cc:24
JetPlotsExample::m_file
TFile * m_file
Definition:
JetPlotsExample.h:26
EDAnalyzer.h
DDAxes::x
edm::EDAnalyzer
Definition:
EDAnalyzer.h:29
JetPlotsExample::JetAlgorithm
std::string JetAlgorithm
Definition:
JetPlotsExample.h:29
JetPlotsExample::analyze
void analyze(edm::Event const &e, edm::EventSetup const &iSetup) override
Definition:
JetPlotsExample.cc:46
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
JetPlotsExample::FillHist1D
void FillHist1D(const TString &histName, const Double_t &x)
Definition:
JetPlotsExample.cc:81
JetPlotsExample::JetCollection
std::vector< Jet > JetCollection
Definition:
JetPlotsExample.h:20
edm::ParameterSet
Definition:
ParameterSet.h:36
JetPlotsExample::HistoFileName
std::string HistoFileName
Definition:
JetPlotsExample.h:31
JetPlotsExample::endJob
void endJob() override
Definition:
JetPlotsExample.cc:69
edm::EventSetup
Definition:
EventSetup.h:57
looper.cfg
cfg
Definition:
looper.py:297
JetPlotsExample::NJets
int NJets
Definition:
JetPlotsExample.h:33
JetPlotsExample::beginJob
void beginJob() override
Definition:
JetPlotsExample.cc:31
edm::Event
Definition:
Event.h:73
JetPlotsExample::m_HistNames1D
std::map< TString, TH1 * > m_HistNames1D
Definition:
JetPlotsExample.h:25
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
Generated for CMSSW Reference Manual by
1.8.16