JetMETCorrections
MCJet
plugins
CaloMCTruthTreeProducer.h
Go to the documentation of this file.
1
#ifndef CALO_MCTRUTH_TREE_PRODUCER_H
2
#define CALO_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/CaloJetCollection.h
"
8
#include "
DataFormats/JetReco/interface/GenJetCollection.h
"
9
#include "
SimDataFormats/GeneratorProducts/interface/GenEventInfoProduct.h
"
10
11
//namespace cms
12
//{
13
class
CaloMCTruthTreeProducer
:
public
edm::EDAnalyzer
{
14
public
:
15
explicit
CaloMCTruthTreeProducer
(
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
~CaloMCTruthTreeProducer
()
override
;
20
21
private
:
22
std::string
histogramFile_
;
23
edm::EDGetTokenT<reco::CaloJetCollection>
jets_
;
24
edm::EDGetTokenT<reco::GenJetCollection>
genjets_
;
25
edm::EDGetTokenT<GenEventInfoProduct>
gen_
;
26
TFile*
file_
;
27
TTree*
mcTruthTree_
;
28
float
ptJet_
,
emfJet_
,
ptGen_
,
ptHat_
,
dR_
,
etaJet_
,
etaGen_
,
phiJet_
,
phiGen_
;
29
int
rank_
;
30
};
31
//}
32
33
#endif
CaloJetCollection.h
GenJetCollection.h
CaloMCTruthTreeProducer::histogramFile_
std::string histogramFile_
Definition:
CaloMCTruthTreeProducer.h:22
CaloMCTruthTreeProducer::rank_
int rank_
Definition:
CaloMCTruthTreeProducer.h:29
CaloMCTruthTreeProducer::etaGen_
float etaGen_
Definition:
CaloMCTruthTreeProducer.h:28
CaloMCTruthTreeProducer::beginJob
void beginJob() override
Definition:
CaloMCTruthTreeProducer.cc:33
CaloMCTruthTreeProducer::ptHat_
float ptHat_
Definition:
CaloMCTruthTreeProducer.h:28
CaloMCTruthTreeProducer::phiJet_
float phiJet_
Definition:
CaloMCTruthTreeProducer.h:28
edm::EDGetTokenT< reco::CaloJetCollection >
CaloMCTruthTreeProducer::CaloMCTruthTreeProducer
CaloMCTruthTreeProducer(edm::ParameterSet const &cfg)
Definition:
CaloMCTruthTreeProducer.cc:26
EDAnalyzer.h
CaloMCTruthTreeProducer::ptGen_
float ptGen_
Definition:
CaloMCTruthTreeProducer.h:28
CaloMCTruthTreeProducer::genjets_
edm::EDGetTokenT< reco::GenJetCollection > genjets_
Definition:
CaloMCTruthTreeProducer.h:24
edm::EDAnalyzer
Definition:
EDAnalyzer.h:28
CaloMCTruthTreeProducer::gen_
edm::EDGetTokenT< GenEventInfoProduct > gen_
Definition:
CaloMCTruthTreeProducer.h:25
CaloMCTruthTreeProducer
Definition:
CaloMCTruthTreeProducer.h:13
CaloMCTruthTreeProducer::etaJet_
float etaJet_
Definition:
CaloMCTruthTreeProducer.h:28
CaloMCTruthTreeProducer::~CaloMCTruthTreeProducer
~CaloMCTruthTreeProducer() override
Definition:
CaloMCTruthTreeProducer.cc:94
CaloMCTruthTreeProducer::analyze
void analyze(edm::Event const &e, edm::EventSetup const &iSetup) override
Definition:
CaloMCTruthTreeProducer.cc:57
CaloMCTruthTreeProducer::ptJet_
float ptJet_
Definition:
CaloMCTruthTreeProducer.h:28
CaloMCTruthTreeProducer::jets_
edm::EDGetTokenT< reco::CaloJetCollection > jets_
Definition:
CaloMCTruthTreeProducer.h:23
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition:
ParameterSet.h:47
GenEventInfoProduct.h
CaloMCTruthTreeProducer::file_
TFile * file_
Definition:
CaloMCTruthTreeProducer.h:26
CaloMCTruthTreeProducer::emfJet_
float emfJet_
Definition:
CaloMCTruthTreeProducer.h:28
CaloMCTruthTreeProducer::dR_
float dR_
Definition:
CaloMCTruthTreeProducer.h:28
edm::EventSetup
Definition:
EventSetup.h:58
CaloMCTruthTreeProducer::phiGen_
float phiGen_
Definition:
CaloMCTruthTreeProducer.h:28
looper.cfg
cfg
Definition:
looper.py:297
CaloMCTruthTreeProducer::endJob
void endJob() override
Definition:
CaloMCTruthTreeProducer.cc:49
CaloMCTruthTreeProducer::mcTruthTree_
TTree * mcTruthTree_
Definition:
CaloMCTruthTreeProducer.h:27
edm::Event
Definition:
Event.h:73
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
Generated for CMSSW Reference Manual by
1.8.16