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
GenJetCollection.h
PFMCTruthTreeProducer::dR_
float dR_
Definition:
PFMCTruthTreeProducer.h:28
PFMCTruthTreeProducer::chfJet_
float chfJet_
Definition:
PFMCTruthTreeProducer.h:28
edm::EDGetTokenT< reco::PFJetCollection >
PFJetCollection.h
PFMCTruthTreeProducer::nhfJet_
float nhfJet_
Definition:
PFMCTruthTreeProducer.h:28
PFMCTruthTreeProducer::phiGen_
float phiGen_
Definition:
PFMCTruthTreeProducer.h:28
PFMCTruthTreeProducer::genjets_
edm::EDGetTokenT< reco::GenJetCollection > genjets_
Definition:
PFMCTruthTreeProducer.h:24
PFMCTruthTreeProducer::mcTruthTree_
TTree * mcTruthTree_
Definition:
PFMCTruthTreeProducer.h:27
PFMCTruthTreeProducer::gen_
edm::EDGetTokenT< GenEventInfoProduct > gen_
Definition:
PFMCTruthTreeProducer.h:25
PFMCTruthTreeProducer::cmultiJet_
int cmultiJet_
Definition:
PFMCTruthTreeProducer.h:29
PFMCTruthTreeProducer::phiJet_
float phiJet_
Definition:
PFMCTruthTreeProducer.h:28
EDAnalyzer.h
PFMCTruthTreeProducer::rank_
int rank_
Definition:
PFMCTruthTreeProducer.h:29
PFMCTruthTreeProducer::nmultiJet_
int nmultiJet_
Definition:
PFMCTruthTreeProducer.h:29
PFMCTruthTreeProducer::file_
TFile * file_
Definition:
PFMCTruthTreeProducer.h:26
edm::EDAnalyzer
Definition:
EDAnalyzer.h:28
PFMCTruthTreeProducer::cemfJet_
float cemfJet_
Definition:
PFMCTruthTreeProducer.h:28
PFMCTruthTreeProducer::~PFMCTruthTreeProducer
~PFMCTruthTreeProducer() override
Definition:
PFMCTruthTreeProducer.cc:104
PFMCTruthTreeProducer::etaJet_
float etaJet_
Definition:
PFMCTruthTreeProducer.h:28
PFMCTruthTreeProducer::histogramFile_
std::string histogramFile_
Definition:
PFMCTruthTreeProducer.h:22
PFMCTruthTreeProducer::ptJet_
float ptJet_
Definition:
PFMCTruthTreeProducer.h:28
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
PFMCTruthTreeProducer::beginJob
void beginJob() override
Definition:
PFMCTruthTreeProducer.cc:33
PFMCTruthTreeProducer
Definition:
PFMCTruthTreeProducer.h:13
PFMCTruthTreeProducer::PFMCTruthTreeProducer
PFMCTruthTreeProducer(edm::ParameterSet const &cfg)
Definition:
PFMCTruthTreeProducer.cc:26
PFMCTruthTreeProducer::etaGen_
float etaGen_
Definition:
PFMCTruthTreeProducer.h:28
edm::ParameterSet
Definition:
ParameterSet.h:47
PFMCTruthTreeProducer::ptGen_
float ptGen_
Definition:
PFMCTruthTreeProducer.h:28
GenEventInfoProduct.h
edm::EventSetup
Definition:
EventSetup.h:57
PFMCTruthTreeProducer::ptHat_
float ptHat_
Definition:
PFMCTruthTreeProducer.h:28
looper.cfg
cfg
Definition:
looper.py:297
PFMCTruthTreeProducer::analyze
void analyze(edm::Event const &e, edm::EventSetup const &iSetup) override
Definition:
PFMCTruthTreeProducer.cc:62
PFMCTruthTreeProducer::jets_
edm::EDGetTokenT< reco::PFJetCollection > jets_
Definition:
PFMCTruthTreeProducer.h:23
PFMCTruthTreeProducer::nemfJet_
float nemfJet_
Definition:
PFMCTruthTreeProducer.h:28
PFMCTruthTreeProducer::endJob
void endJob() override
Definition:
PFMCTruthTreeProducer.cc:54
edm::Event
Definition:
Event.h:73
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
Generated for CMSSW Reference Manual by
1.8.16