#include <CaloMCTruthTreeProducer.h>
|
virtual void | analyze (edm::Event const &e, edm::EventSetup const &iSetup) |
|
virtual void | beginJob () |
|
| CaloMCTruthTreeProducer (edm::ParameterSet const &cfg) |
|
virtual void | endJob () |
|
| ~CaloMCTruthTreeProducer () |
|
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 |
|
void | modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const |
|
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
|
virtual | ~EDConsumerBase () |
|
Definition at line 13 of file CaloMCTruthTreeProducer.h.
CaloMCTruthTreeProducer::~CaloMCTruthTreeProducer |
( |
| ) |
|
Implements edm::EDAnalyzer.
Definition at line 61 of file CaloMCTruthTreeProducer.cc.
References fwrapper::jets, njet, CosmicsPD_Skims::radius, and findQualityFiles::rr.
66 CaloJetCollection::const_iterator i_jet,i_matched;
67 GenJetCollection::const_iterator i_genjet;
69 event.getByToken (
jets_,jets);
70 event.getByToken(
gen_,hEventInfo);
71 ptHat_ = hEventInfo->binningValues()[0];
74 if (jets->size()>0 && genjets->size()>0)
76 for (i_genjet = genjets->begin(); i_genjet != genjets->end(); i_genjet++)
79 for(i_jet = jets->begin();i_jet != jets->end(); i_jet++)
94 emfJet_ = i_matched->emEnergyFraction();
edm::EDGetTokenT< GenEventInfoProduct > gen_
edm::EDGetTokenT< reco::GenJetCollection > genjets_
edm::EDGetTokenT< reco::CaloJetCollection > jets_
void CaloMCTruthTreeProducer::beginJob |
( |
void |
| ) |
|
|
virtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 34 of file CaloMCTruthTreeProducer.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(
"emfJet", &
emfJet_,
"emfJet_/F");
43 mcTruthTree_->Branch(
"etaJet", &
etaJet_,
"etaJet_/F");
44 mcTruthTree_->Branch(
"etaGen", &
etaGen_,
"etaGen_/F");
45 mcTruthTree_->Branch(
"phiJet", &
phiJet_,
"phiJet_/F");
46 mcTruthTree_->Branch(
"phiGen", &
phiGen_,
"phiGen_/F");
47 mcTruthTree_->Branch(
"dR", &
dR_,
"dR_/F");
48 mcTruthTree_->Branch(
"rank", &
rank_,
"rank_/I");
std::string histogramFile_
void CaloMCTruthTreeProducer::endJob |
( |
void |
| ) |
|
|
virtual |
float CaloMCTruthTreeProducer::dR_ |
|
private |
float CaloMCTruthTreeProducer::emfJet_ |
|
private |
float CaloMCTruthTreeProducer::etaGen_ |
|
private |
float CaloMCTruthTreeProducer::etaJet_ |
|
private |
TFile* CaloMCTruthTreeProducer::file_ |
|
private |
std::string CaloMCTruthTreeProducer::histogramFile_ |
|
private |
TTree* CaloMCTruthTreeProducer::mcTruthTree_ |
|
private |
float CaloMCTruthTreeProducer::phiGen_ |
|
private |
float CaloMCTruthTreeProducer::phiJet_ |
|
private |
float CaloMCTruthTreeProducer::ptGen_ |
|
private |
float CaloMCTruthTreeProducer::ptHat_ |
|
private |
float CaloMCTruthTreeProducer::ptJet_ |
|
private |
int CaloMCTruthTreeProducer::rank_ |
|
private |