#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 () |
|
| EDConsumerBase () |
|
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
|
std::vector
< ProductHolderIndexAndSkipBit >
const & | itemsToGetFromEvent () const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
|
virtual | ~EDConsumerBase () |
|
Definition at line 10 of file PFMCTruthTreeProducer.h.
PFMCTruthTreeProducer::~PFMCTruthTreeProducer |
( |
| ) |
|
Implements edm::EDAnalyzer.
Definition at line 68 of file PFMCTruthTreeProducer.cc.
References fwrapper::jets, njet, CosmicsPD_Skims::radius, and findQualityFiles::rr.
73 PFJetCollection::const_iterator i_jet,i_matched;
74 GenJetCollection::const_iterator i_genjet;
76 event.getByLabel (
jets_,jets);
77 event.getByLabel(
"generator",hEventInfo);
78 ptHat_ = hEventInfo->binningValues()[0];
81 if (jets->size()>0 && genjets->size()>0)
83 for (i_genjet = genjets->begin(); i_genjet != genjets->end(); i_genjet++)
86 for(i_jet = jets->begin();i_jet != jets->end(); i_jet++)
101 chfJet_ = i_matched->chargedHadronEnergyFraction();
102 nhfJet_ = i_matched->neutralHadronEnergyFraction();
103 cemfJet_ = i_matched->chargedEmEnergyFraction();
104 nemfJet_ = i_matched->neutralEmEnergyFraction();
105 cmultiJet_ = i_matched->chargedMultiplicity();
106 nmultiJet_ = i_matched->neutralMultiplicity();
void PFMCTruthTreeProducer::beginJob |
( |
void |
| ) |
|
|
virtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 36 of file PFMCTruthTreeProducer.cc.
41 mcTruthTree_->Branch(
"ptJet", &
ptJet_,
"ptJet_/F");
42 mcTruthTree_->Branch(
"ptGen", &
ptGen_,
"ptGen_/F");
43 mcTruthTree_->Branch(
"ptHat", &
ptHat_,
"ptHat_/F");
44 mcTruthTree_->Branch(
"chfJet", &
chfJet_,
"chfJet_/F");
45 mcTruthTree_->Branch(
"nhfJet", &
nhfJet_,
"nhfJet_/F");
46 mcTruthTree_->Branch(
"cemfJet", &
cemfJet_,
"cemfJet_/F");
47 mcTruthTree_->Branch(
"nemfJet", &
nemfJet_,
"nemfJet_/F");
48 mcTruthTree_->Branch(
"cmultiJet", &
cmultiJet_,
"cmultiJet_/I");
49 mcTruthTree_->Branch(
"nmultiJet", &
nmultiJet_,
"nmultiJet_/I");
50 mcTruthTree_->Branch(
"etaJet", &
etaJet_,
"etaJet_/F");
51 mcTruthTree_->Branch(
"etaGen", &
etaGen_,
"etaGen_/F");
52 mcTruthTree_->Branch(
"phiJet", &
phiJet_,
"phiJet_/F");
53 mcTruthTree_->Branch(
"phiGen", &
phiGen_,
"phiGen_/F");
54 mcTruthTree_->Branch(
"dR", &
dR_,
"dR_/F");
55 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::genjets_ |
|
private |
std::string PFMCTruthTreeProducer::histogramFile_ |
|
private |
std::string PFMCTruthTreeProducer::jets_ |
|
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 |