#include <PFMCTruthTreeProducer.h>
|
virtual void | analyze (edm::Event const &e, edm::EventSetup const &iSetup) |
|
virtual void | beginJob () |
|
virtual void | endJob () |
|
| PFMCTruthTreeProducer (edm::ParameterSet const &cfg) |
|
| ~PFMCTruthTreeProducer () |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzer () |
|
ModuleDescription const & | moduleDescription () const |
|
std::string | workerType () const |
|
virtual | ~EDAnalyzer () |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
| EDConsumerBase () |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
Definition at line 13 of file PFMCTruthTreeProducer.h.
PFMCTruthTreeProducer::~PFMCTruthTreeProducer |
( |
| ) |
|
Implements edm::EDAnalyzer.
Definition at line 66 of file PFMCTruthTreeProducer.cc.
References GenEventInfoProduct::binningValues(), fwrapper::jets, njet, TCMET_cfi::radius, and findQualityFiles::rr.
71 PFJetCollection::const_iterator i_jet,i_matched;
72 GenJetCollection::const_iterator i_genjet;
74 event.getByToken (
jets_,jets);
75 event.getByToken(
gen_,hEventInfo);
79 if (jets->size()>0 && genjets->size()>0)
81 for (i_genjet = genjets->begin(); i_genjet != genjets->end(); i_genjet++)
84 for(i_jet = jets->begin();i_jet != jets->end(); i_jet++)
99 chfJet_ = i_matched->chargedHadronEnergyFraction();
100 nhfJet_ = i_matched->neutralHadronEnergyFraction();
101 cemfJet_ = i_matched->chargedEmEnergyFraction();
102 nemfJet_ = i_matched->neutralEmEnergyFraction();
103 cmultiJet_ = i_matched->chargedMultiplicity();
104 nmultiJet_ = i_matched->neutralMultiplicity();
const std::vector< double > & binningValues() const
edm::EDGetTokenT< reco::GenJetCollection > genjets_
edm::EDGetTokenT< GenEventInfoProduct > gen_
edm::EDGetTokenT< reco::PFJetCollection > jets_
void PFMCTruthTreeProducer::beginJob |
( |
void |
| ) |
|
|
virtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 34 of file PFMCTruthTreeProducer.cc.
39 mcTruthTree_->Branch(
"ptJet", &
ptJet_,
"ptJet_/F");
40 mcTruthTree_->Branch(
"ptGen", &
ptGen_,
"ptGen_/F");
41 mcTruthTree_->Branch(
"ptHat", &
ptHat_,
"ptHat_/F");
42 mcTruthTree_->Branch(
"chfJet", &
chfJet_,
"chfJet_/F");
43 mcTruthTree_->Branch(
"nhfJet", &
nhfJet_,
"nhfJet_/F");
44 mcTruthTree_->Branch(
"cemfJet", &
cemfJet_,
"cemfJet_/F");
45 mcTruthTree_->Branch(
"nemfJet", &
nemfJet_,
"nemfJet_/F");
46 mcTruthTree_->Branch(
"cmultiJet", &
cmultiJet_,
"cmultiJet_/I");
47 mcTruthTree_->Branch(
"nmultiJet", &
nmultiJet_,
"nmultiJet_/I");
48 mcTruthTree_->Branch(
"etaJet", &
etaJet_,
"etaJet_/F");
49 mcTruthTree_->Branch(
"etaGen", &
etaGen_,
"etaGen_/F");
50 mcTruthTree_->Branch(
"phiJet", &
phiJet_,
"phiJet_/F");
51 mcTruthTree_->Branch(
"phiGen", &
phiGen_,
"phiGen_/F");
52 mcTruthTree_->Branch(
"dR", &
dR_,
"dR_/F");
53 mcTruthTree_->Branch(
"rank", &
rank_,
"rank_/I");
std::string histogramFile_
void PFMCTruthTreeProducer::endJob |
( |
void |
| ) |
|
|
virtual |
float PFMCTruthTreeProducer::cemfJet_ |
|
private |
float PFMCTruthTreeProducer::chfJet_ |
|
private |
int PFMCTruthTreeProducer::cmultiJet_ |
|
private |
float PFMCTruthTreeProducer::dR_ |
|
private |
float PFMCTruthTreeProducer::etaGen_ |
|
private |
float PFMCTruthTreeProducer::etaJet_ |
|
private |
TFile* PFMCTruthTreeProducer::file_ |
|
private |
std::string PFMCTruthTreeProducer::histogramFile_ |
|
private |
TTree* PFMCTruthTreeProducer::mcTruthTree_ |
|
private |
float PFMCTruthTreeProducer::nemfJet_ |
|
private |
float PFMCTruthTreeProducer::nhfJet_ |
|
private |
int PFMCTruthTreeProducer::nmultiJet_ |
|
private |
float PFMCTruthTreeProducer::phiGen_ |
|
private |
float PFMCTruthTreeProducer::phiJet_ |
|
private |
float PFMCTruthTreeProducer::ptGen_ |
|
private |
float PFMCTruthTreeProducer::ptHat_ |
|
private |
float PFMCTruthTreeProducer::ptJet_ |
|
private |
int PFMCTruthTreeProducer::rank_ |
|
private |