Main Page
Namespaces
Classes
Package Documentation
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
public
:
15
explicit
PFMCTruthTreeProducer
(
edm::ParameterSet
const
&
cfg
);
16
void
beginJob
()
override
;
17
void
analyze
(
edm::Event
const
&
e
,
edm::EventSetup
const
& iSetup)
override
;
18
void
endJob
()
override
;
19
~PFMCTruthTreeProducer
()
override
;
20
21
private
:
22
std::string
histogramFile_
;
23
edm::EDGetTokenT<reco::PFJetCollection>
jets_
;
24
edm::EDGetTokenT<reco::GenJetCollection>
genjets_
;
25
edm::EDGetTokenT<GenEventInfoProduct>
gen_
;
26
TFile*
file_
;
27
TTree*
mcTruthTree_
;
28
float
ptJet_
,
chfJet_
,
nhfJet_
,
cemfJet_
,
nemfJet_
,
ptGen_
,
ptHat_
,
dR_
,
etaJet_
,
etaGen_
,
phiJet_
,
phiGen_
;
29
int
rank_
,
cmultiJet_
,
nmultiJet_
;
30
};
31
//}
32
33
#endif
PFMCTruthTreeProducer::analyze
void analyze(edm::Event const &e, edm::EventSetup const &iSetup) override
Definition:
PFMCTruthTreeProducer.cc:62
PFJetCollection.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
PFMCTruthTreeProducer::nhfJet_
float nhfJet_
Definition:
PFMCTruthTreeProducer.h:28
PFMCTruthTreeProducer::ptHat_
float ptHat_
Definition:
PFMCTruthTreeProducer.h:28
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
PFMCTruthTreeProducer::genjets_
edm::EDGetTokenT< reco::GenJetCollection > genjets_
Definition:
PFMCTruthTreeProducer.h:24
edm::EDGetTokenT< reco::PFJetCollection >
PFMCTruthTreeProducer::nemfJet_
float nemfJet_
Definition:
PFMCTruthTreeProducer.h:28
PFMCTruthTreeProducer::mcTruthTree_
TTree * mcTruthTree_
Definition:
PFMCTruthTreeProducer.h:27
PFMCTruthTreeProducer::beginJob
void beginJob() override
Definition:
PFMCTruthTreeProducer.cc:33
PFMCTruthTreeProducer::etaJet_
float etaJet_
Definition:
PFMCTruthTreeProducer.h:28
PFMCTruthTreeProducer::etaGen_
float etaGen_
Definition:
PFMCTruthTreeProducer.h:28
PFMCTruthTreeProducer::phiGen_
float phiGen_
Definition:
PFMCTruthTreeProducer.h:28
PFMCTruthTreeProducer::file_
TFile * file_
Definition:
PFMCTruthTreeProducer.h:26
PFMCTruthTreeProducer
Definition:
PFMCTruthTreeProducer.h:13
GenJetCollection.h
PFMCTruthTreeProducer::nmultiJet_
int nmultiJet_
Definition:
PFMCTruthTreeProducer.h:29
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:28
PFMCTruthTreeProducer::phiJet_
float phiJet_
Definition:
PFMCTruthTreeProducer.h:28
PFMCTruthTreeProducer::cmultiJet_
int cmultiJet_
Definition:
PFMCTruthTreeProducer.h:29
PFMCTruthTreeProducer::histogramFile_
std::string histogramFile_
Definition:
PFMCTruthTreeProducer.h:22
PFMCTruthTreeProducer::gen_
edm::EDGetTokenT< GenEventInfoProduct > gen_
Definition:
PFMCTruthTreeProducer.h:25
PFMCTruthTreeProducer::cemfJet_
float cemfJet_
Definition:
PFMCTruthTreeProducer.h:28
PFMCTruthTreeProducer::~PFMCTruthTreeProducer
~PFMCTruthTreeProducer() override
Definition:
PFMCTruthTreeProducer.cc:104
PFMCTruthTreeProducer::ptJet_
float ptJet_
Definition:
PFMCTruthTreeProducer.h:28
PFMCTruthTreeProducer::jets_
edm::EDGetTokenT< reco::PFJetCollection > jets_
Definition:
PFMCTruthTreeProducer.h:23
edm::ParameterSet
Definition:
ParameterSet.h:36
PFMCTruthTreeProducer::dR_
float dR_
Definition:
PFMCTruthTreeProducer.h:28
GenEventInfoProduct.h
PFMCTruthTreeProducer::rank_
int rank_
Definition:
PFMCTruthTreeProducer.h:29
edm::Event
Definition:
Event.h:72
PFMCTruthTreeProducer::PFMCTruthTreeProducer
PFMCTruthTreeProducer(edm::ParameterSet const &cfg)
Definition:
PFMCTruthTreeProducer.cc:26
PFMCTruthTreeProducer::ptGen_
float ptGen_
Definition:
PFMCTruthTreeProducer.h:28
PFMCTruthTreeProducer::endJob
void endJob() override
Definition:
PFMCTruthTreeProducer.cc:54
Generated for CMSSW Reference Manual by
1.8.11