RecoJets
JetAnalyzers
interface
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>
13
#include "
FWCore/Framework/interface/EDAnalyzer.h
"
14
15
template
<
class
Jet>
16
class
JetAnaPythia
:
public
edm::EDAnalyzer
{
17
public
:
18
JetAnaPythia
(
edm::ParameterSet
const
&
cfg
);
19
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
()
override
;
24
void
analyze
(
edm::Event
const
&
e
,
edm::EventSetup
const
& iSetup)
override
;
25
void
endJob
()
override
;
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
;
35
float
etaPart1
,
etaPart2
;
36
float
ptPart1
,
ptPart2
;
37
float
diJetMass
;
38
float
diPartMass
;
39
TFile*
m_file
;
42
std::string
JetAlgorithm
;
44
std::string
HistoFileName
;
46
int
NJets
;
48
bool
debug
;
50
int
eventsGen
;
56
std::string
anaLevel
;
60
std::vector<double>
xsecGen
;
61
std::vector<double>
ptHatEdges
;
62
};
63
#endif
JetAnaPythia::m_file
TFile * m_file
Definition:
JetAnaPythia.h:39
JetAnaPythia
Definition:
JetAnaPythia.h:16
JetAnaPythia::anaLevel
std::string anaLevel
Definition:
JetAnaPythia.h:56
JetAnaPythia::etaJet1
float etaJet1
Definition:
JetAnaPythia.h:33
EDAnalyzer.h
DDAxes::x
edm::EDAnalyzer
Definition:
EDAnalyzer.h:29
JetAnaPythia::NJets
int NJets
Definition:
JetAnaPythia.h:46
JetAnaPythia::JetCollection
std::vector< Jet > JetCollection
Definition:
JetAnaPythia.h:21
JetAnaPythia::etaPart1
float etaPart1
Definition:
JetAnaPythia.h:35
JetAnaPythia::xsec
float xsec
Definition:
JetAnaPythia.h:29
JetAnaPythia::m_HistNames1D
std::map< TString, TH1 * > m_HistNames1D
Definition:
JetAnaPythia.h:26
JetAnaPythia::nJets
int nJets
Definition:
JetAnaPythia.h:32
JetAnaPythia::ptHatEdges
std::vector< double > ptHatEdges
Definition:
JetAnaPythia.h:61
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
JetAnaPythia::diJetMass
float diJetMass
Definition:
JetAnaPythia.h:37
JetAnaPythia::beginJob
void beginJob() override
Definition:
JetAnaPythia.cc:39
JetAnaPythia::weight
float weight
Definition:
JetAnaPythia.h:30
edm::ParameterSet
Definition:
ParameterSet.h:36
JetAnaPythia::JetAnaPythia
JetAnaPythia(edm::ParameterSet const &cfg)
Definition:
JetAnaPythia.cc:27
JetAnaPythia::analyze
void analyze(edm::Event const &e, edm::EventSetup const &iSetup) override
Definition:
JetAnaPythia.cc:142
JetAnaPythia::eventsGen
int eventsGen
Definition:
JetAnaPythia.h:50
edm::EventSetup
Definition:
EventSetup.h:57
JetAnaPythia::xsecGen
std::vector< double > xsecGen
Definition:
JetAnaPythia.h:60
JetAnaPythia::ptJet2
float ptJet2
Definition:
JetAnaPythia.h:34
looper.cfg
cfg
Definition:
looper.py:297
JetAnaPythia::mcTruthTree_
TTree * mcTruthTree_
Definition:
JetAnaPythia.h:28
JetAnaPythia::HistoFileName
std::string HistoFileName
Definition:
JetAnaPythia.h:44
JetAnaPythia::JetAlgorithm
std::string JetAlgorithm
Definition:
JetAnaPythia.h:42
JetAnaPythia::etaPart2
float etaPart2
Definition:
JetAnaPythia.h:35
JetAnaPythia::ptPart2
float ptPart2
Definition:
JetAnaPythia.h:36
JetAnaPythia::etaJet2
float etaJet2
Definition:
JetAnaPythia.h:33
JetAnaPythia::ptJet1
float ptJet1
Definition:
JetAnaPythia.h:34
JetAnaPythia::pt_hat
float pt_hat
Definition:
JetAnaPythia.h:31
JetAnaPythia::diPartMass
float diPartMass
Definition:
JetAnaPythia.h:38
JetAnaPythia::debug
bool debug
Definition:
JetAnaPythia.h:48
JetAnaPythia::ptPart1
float ptPart1
Definition:
JetAnaPythia.h:36
edm::Event
Definition:
Event.h:73
JetAnaPythia::FillHist1D
void FillHist1D(const TString &histName, const Double_t &x, const Double_t &wt)
Definition:
JetAnaPythia.cc:346
JetAnaPythia::endJob
void endJob() override
Definition:
JetAnaPythia.cc:333
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
Generated for CMSSW Reference Manual by
1.8.16