Main Page
Namespaces
Classes
Package Documentation
src
JetMETCorrections
MCJet
plugins
PFMCTruthTreeProducer.h
Go to the documentation of this file.
1
#ifndef PF_MCTRUTH_TREE_PRODUCER_H
2
#define PF_MCTRUTH_TREE_PRODUCER_H
3
4
#include "TTree.h"
5
#include "TFile.h"
6
#include "
FWCore/Framework/interface/EDAnalyzer.h
"
7
#include "
DataFormats/JetReco/interface/PFJetCollection.h
"
8
#include "
DataFormats/JetReco/interface/GenJetCollection.h
"
9
#include "
SimDataFormats/GeneratorProducts/interface/GenEventInfoProduct.h
"
10
11
//namespace cms
12
//{
13
class
PFMCTruthTreeProducer
:
public
edm::EDAnalyzer
14
{
15
public
:
16
explicit
PFMCTruthTreeProducer
(
edm::ParameterSet
const
&
cfg
);
17
void
beginJob
()
override
;
18
void
analyze
(
edm::Event
const
&
e
,
edm::EventSetup
const
& iSetup)
override
;
19
void
endJob
()
override
;
20
~PFMCTruthTreeProducer
()
override
;
21
22
private
:
23
std::string
histogramFile_
;
24
edm::EDGetTokenT<reco::PFJetCollection>
jets_
;
25
edm::EDGetTokenT<reco::GenJetCollection>
genjets_
;
26
edm::EDGetTokenT<GenEventInfoProduct>
gen_
;
27
TFile*
file_
;
28
TTree*
mcTruthTree_
;
29
float
ptJet_
,
chfJet_
,
nhfJet_
,
cemfJet_
,
nemfJet_
,
ptGen_
,
ptHat_
,
dR_
,
etaJet_
,
etaGen_
,
phiJet_
,
phiGen_
;
30
int
rank_
,
cmultiJet_
,
nmultiJet_
;
31
};
32
//}
33
34
#endif
PFMCTruthTreeProducer::analyze
void analyze(edm::Event const &e, edm::EventSetup const &iSetup) override
Definition:
PFMCTruthTreeProducer.cc:66
PFJetCollection.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
PFMCTruthTreeProducer::nhfJet_
float nhfJet_
Definition:
PFMCTruthTreeProducer.h:29
PFMCTruthTreeProducer::ptHat_
float ptHat_
Definition:
PFMCTruthTreeProducer.h:29
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
PFMCTruthTreeProducer::genjets_
edm::EDGetTokenT< reco::GenJetCollection > genjets_
Definition:
PFMCTruthTreeProducer.h:25
edm::EDGetTokenT< reco::PFJetCollection >
PFMCTruthTreeProducer::nemfJet_
float nemfJet_
Definition:
PFMCTruthTreeProducer.h:29
PFMCTruthTreeProducer::mcTruthTree_
TTree * mcTruthTree_
Definition:
PFMCTruthTreeProducer.h:28
PFMCTruthTreeProducer::beginJob
void beginJob() override
Definition:
PFMCTruthTreeProducer.cc:34
PFMCTruthTreeProducer::etaJet_
float etaJet_
Definition:
PFMCTruthTreeProducer.h:29
PFMCTruthTreeProducer::etaGen_
float etaGen_
Definition:
PFMCTruthTreeProducer.h:29
PFMCTruthTreeProducer::phiGen_
float phiGen_
Definition:
PFMCTruthTreeProducer.h:29
PFMCTruthTreeProducer::file_
TFile * file_
Definition:
PFMCTruthTreeProducer.h:27
PFMCTruthTreeProducer
Definition:
PFMCTruthTreeProducer.h:13
GenJetCollection.h
PFMCTruthTreeProducer::nmultiJet_
int nmultiJet_
Definition:
PFMCTruthTreeProducer.h:30
edm::EventSetup
Definition:
EventSetup.h:57
looper.cfg
cfg
Definition:
looper.py:297
edm::EDAnalyzer
Definition:
EDAnalyzer.h:29
EDAnalyzer.h
PFMCTruthTreeProducer::chfJet_
float chfJet_
Definition:
PFMCTruthTreeProducer.h:29
PFMCTruthTreeProducer::phiJet_
float phiJet_
Definition:
PFMCTruthTreeProducer.h:29
PFMCTruthTreeProducer::cmultiJet_
int cmultiJet_
Definition:
PFMCTruthTreeProducer.h:30
PFMCTruthTreeProducer::histogramFile_
std::string histogramFile_
Definition:
PFMCTruthTreeProducer.h:23
PFMCTruthTreeProducer::gen_
edm::EDGetTokenT< GenEventInfoProduct > gen_
Definition:
PFMCTruthTreeProducer.h:26
PFMCTruthTreeProducer::cemfJet_
float cemfJet_
Definition:
PFMCTruthTreeProducer.h:29
PFMCTruthTreeProducer::~PFMCTruthTreeProducer
~PFMCTruthTreeProducer() override
Definition:
PFMCTruthTreeProducer.cc:113
PFMCTruthTreeProducer::ptJet_
float ptJet_
Definition:
PFMCTruthTreeProducer.h:29
PFMCTruthTreeProducer::jets_
edm::EDGetTokenT< reco::PFJetCollection > jets_
Definition:
PFMCTruthTreeProducer.h:24
edm::ParameterSet
Definition:
ParameterSet.h:36
PFMCTruthTreeProducer::dR_
float dR_
Definition:
PFMCTruthTreeProducer.h:29
GenEventInfoProduct.h
PFMCTruthTreeProducer::rank_
int rank_
Definition:
PFMCTruthTreeProducer.h:30
edm::Event
Definition:
Event.h:71
PFMCTruthTreeProducer::PFMCTruthTreeProducer
PFMCTruthTreeProducer(edm::ParameterSet const &cfg)
Definition:
PFMCTruthTreeProducer.cc:26
PFMCTruthTreeProducer::ptGen_
float ptGen_
Definition:
PFMCTruthTreeProducer.h:29
PFMCTruthTreeProducer::endJob
void endJob() override
Definition:
PFMCTruthTreeProducer.cc:56
Generated for CMSSW Reference Manual by
1.8.11