babymaker  8522a50888c6c2e6eb3059ef64397a0b29afe7a5
Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
bmaker_basic Class Reference

#include <bmaker_basic.hh>

Inheritance diagram for bmaker_basic:

Public Member Functions

 bmaker_basic (const edm::ParameterSet &)
 
 ~bmaker_basic ()
 
void writeMET (edm::Handle< pat::METCollection > mets, edm::Handle< pat::METCollection > mets_nohf)
 
void writeJets (edm::Handle< pat::JetCollection > alljets, edm::Handle< edm::View< reco::GenJet > > genjets, vCands &sig_leps, vCands &veto_leps, vCands &photons, vCands &tks, std::vector< LVector > &jets, std::vector< std::vector< LVector > > &sysjets)
 
void writeFatJets (std::vector< LVector > &jets)
 
vCands writeMuons (edm::Handle< pat::MuonCollection > muons, edm::Handle< pat::PackedCandidateCollection > pfcands, edm::Handle< reco::VertexCollection > vtx, vCands &veto_mus, vCands &all_mus, double rhoEventCentral)
 
vCands writeElectrons (edm::Handle< pat::ElectronCollection > electrons, edm::Handle< pat::PackedCandidateCollection > pfcands, edm::Handle< reco::VertexCollection > vtx, vCands &veto_els, vCands &all_els, double rhoEventCentral)
 
void writeDiLep (vCands &sig_mus, vCands &sig_els, vCands &veto_mus, vCands &veto_els)
 
void setDiLepMass (vCands leptons, baby_float ll_m, baby_float ll_pt1, baby_float ll_pt2, baby_float ll_pt, baby_float ll_eta, baby_float ll_phi, baby_vfloat l_pt, baby_vbool l_inz, baby_float ll_w)
 
void setElMuMass (vCands leptons1, vCands leptons2, baby_float ll_m, baby_float ll_pt1, baby_float ll_pt2, baby_float ll_pt, baby_float ll_eta, baby_float ll_phi, baby_float ll_w)
 
void writeLeptons (vCands &leptons)
 
vCands writePhotons (edm::Handle< pat::PhotonCollection > allphotons, edm::Handle< std::vector< pat::Electron > > &electrons, edm::Handle< reco::ConversionCollection > &conversions, edm::Handle< reco::BeamSpot > &beamspot, double rho)
 
bool writeTriggers (const edm::TriggerNames &names, edm::Handle< edm::TriggerResults > triggerBits, edm::Handle< pat::PackedTriggerPrescales > triggerPrescales)
 
void writeHLTObjects (const edm::TriggerNames &names, edm::Handle< pat::TriggerObjectStandAloneCollection > triggerObjects, vCands &all_mus, vCands &all_els, vCands &photons)
 
void writeFilters (const edm::TriggerNames &fnames, edm::Handle< edm::TriggerResults > filterBits, edm::Handle< reco::VertexCollection > vtx)
 
void writeVertices (edm::Handle< reco::VertexCollection > vtx, edm::Handle< std::vector< PileupSummaryInfo > > pu_info)
 
void writeGenInfo (edm::Handle< LHEEventProduct > lhe_info)
 
void writeMC (edm::Handle< reco::GenParticleCollection > genParticles, vCands &all_mus, vCands &all_els, vCands &photons)
 
void reportTime (const edm::Event &iEvent)
 
void rebalancedMET (double &MET, double &METPhi)
 
double calculateRescalingFactor (unsigned int jetIdx)
 
double calculateRebalancedMET (unsigned int jetIdx, double mu, double &METPhi)
 
void writeWeights (const vCands &sig_leps, edm::Handle< GenEventInfoProduct > &gen_event_info, edm::Handle< LHEEventProduct > &lhe_info)
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 

Public Attributes

TFile * outfile
 
baby_basic baby
 
bool isData
 
time_t startTime
 
lepton_toolslepTool
 
jet_met_toolsjetTool
 
photon_toolsphotonTool
 
event_toolseventTool
 
mc_toolsmcTool
 
weight_toolsweightTool
 
std::vector< TString > trig_name
 
TString outname
 
std::vector< std::string > inputfiles
 
TString jsonfile
 
TString condor_subtime
 
TString jec_label
 
std::string btag_label_BC
 
std::string btag_label_UDSG
 
edm::InputTag met_label
 
edm::InputTag met_nohf_label
 
edm::InputTag jets_label
 
unsigned int nevents_sample
 
unsigned int nevents
 
bool doMetRebalancing
 
float xsec
 
bool addBTagWeights
 
bool isFastSim
 
bool doSystematics
 
bool debug
 

Private Member Functions

virtual void beginJob () override
 
virtual void analyze (const edm::Event &, const edm::EventSetup &) override
 
virtual void endJob () override
 

Private Attributes

edm::EDGetTokenT< edm::TriggerResults > tok_trigResults_hlt_
 
edm::EDGetTokenT< pat::PackedTriggerPrescales > tok_patTrig_
 
edm::EDGetTokenT< reco::VertexCollection > tok_primVertex_
 
edm::EDGetTokenT< std::vector< PileupSummaryInfo > > tok_addPileup_
 
edm::EDGetTokenT< std::vector< PileupSummaryInfo > > tok_slimAddPileup_
 
edm::EDGetTokenT< pat::PackedCandidateCollection > tok_packPFCands_
 
edm::EDGetTokenT< double > tok_rhoFastJet_centralNeutral_
 
edm::EDGetTokenT< pat::MuonCollection > tok_muons_
 
edm::EDGetTokenT< pat::ElectronCollection > tok_electrons_
 
edm::EDGetTokenT< double > tok_rhoFastJet_all_
 
edm::EDGetTokenT< reco::BeamSpot > tok_offBeamSpot_
 
edm::EDGetTokenT< pat::PhotonCollection > tok_photons_
 
edm::EDGetTokenT< std::vector< reco::Conversion > > tok_reducedEgamma_conver_
 
edm::EDGetTokenT< pat::JetCollection > tok_jets_
 
edm::EDGetTokenT< edm::View< reco::GenJet > > tok_genJets_
 
edm::EDGetTokenT< pat::METCollection > tok_met_
 
edm::EDGetTokenT< pat::METCollection > tok_met_noHF_
 
edm::EDGetTokenT< bool > tok_HBHENoiseFilter_
 
edm::EDGetTokenT< bool > tok_HBHEIsoNoiseFilter_
 
edm::EDGetTokenT< edm::TriggerResults > tok_trigResults_reco_
 
edm::EDGetTokenT< edm::TriggerResults > tok_trigResults_pat_
 
edm::EDGetTokenT< pat::TriggerObjectStandAloneCollection > tok_selectedPatTrig_
 
edm::EDGetTokenT< reco::GenParticleCollection > tok_pruneGenPart_
 
edm::EDGetTokenT< LHEEventProduct > tok_extLHEProducer_
 
edm::EDGetTokenT< LHEEventProduct > tok_source_
 
edm::EDGetTokenT< GenEventInfoProduct > tok_generator_
 

Detailed Description

Definition at line 53 of file bmaker_basic.hh.

Constructor & Destructor Documentation

bmaker_basic::bmaker_basic ( const edm::ParameterSet &  iConfig)
explicit
bmaker_basic::~bmaker_basic ( )

Member Function Documentation

void bmaker_basic::analyze ( const edm::Event &  iEvent,
const edm::EventSetup &  iSetup 
)
overrideprivatevirtual
void bmaker_basic::beginJob ( )
overrideprivatevirtual

Definition at line 1513 of file bmaker_basic.cc.

double bmaker_basic::calculateRebalancedMET ( unsigned int  jetIdx,
double  mu,
double &  METPhi 
)

Definition at line 1187 of file bmaker_basic.cc.

double bmaker_basic::calculateRescalingFactor ( unsigned int  jetIdx)

Definition at line 1164 of file bmaker_basic.cc.

void bmaker_basic::endJob ( )
overrideprivatevirtual

Definition at line 1517 of file bmaker_basic.cc.

void bmaker_basic::fillDescriptions ( edm::ConfigurationDescriptions &  descriptions)
static

Definition at line 1554 of file bmaker_basic.cc.

References DEFINE_FWK_MODULE().

void bmaker_basic::rebalancedMET ( double &  MET,
double &  METPhi 
)

Definition at line 1149 of file bmaker_basic.cc.

void bmaker_basic::reportTime ( const edm::Event &  iEvent)

Definition at line 1490 of file bmaker_basic.cc.

References debug, nevents, roundNumber(), and startTime.

void bmaker_basic::setDiLepMass ( vCands  leptons,
baby_float  ll_m,
baby_float  ll_pt1,
baby_float  ll_pt2,
baby_float  ll_pt,
baby_float  ll_eta,
baby_float  ll_phi,
baby_vfloat  l_pt,
baby_vbool  l_inz,
baby_float  ll_w 
)

Definition at line 688 of file bmaker_basic.cc.

References lepton_tools::getScaleFactor().

void bmaker_basic::setElMuMass ( vCands  leptons1,
vCands  leptons2,
baby_float  ll_m,
baby_float  ll_pt1,
baby_float  ll_pt2,
baby_float  ll_pt,
baby_float  ll_eta,
baby_float  ll_phi,
baby_float  ll_w 
)

Definition at line 714 of file bmaker_basic.cc.

References lepton_tools::getScaleFactor().

void bmaker_basic::writeDiLep ( vCands sig_mus,
vCands sig_els,
vCands veto_mus,
vCands veto_els 
)
vCands bmaker_basic::writeElectrons ( edm::Handle< pat::ElectronCollection >  electrons,
edm::Handle< pat::PackedCandidateCollection >  pfcands,
edm::Handle< reco::VertexCollection >  vtx,
vCands veto_els,
vCands all_els,
double  rhoEventCentral 
)

Definition at line 605 of file bmaker_basic.cc.

void bmaker_basic::writeFatJets ( std::vector< LVector > &  jets)

Definition at line 537 of file bmaker_basic.cc.

References bmaker_basic_cfg::jets.

void bmaker_basic::writeFilters ( const edm::TriggerNames &  fnames,
edm::Handle< edm::TriggerResults >  filterBits,
edm::Handle< reco::VertexCollection >  vtx 
)

Definition at line 890 of file bmaker_basic.cc.

References bmaker_basic_cfg::doSystematics, and utilities::kSysLast.

void bmaker_basic::writeGenInfo ( edm::Handle< LHEEventProduct >  lhe_info)

Definition at line 935 of file bmaker_basic.cc.

References send_split_scan::outname.

void bmaker_basic::writeHLTObjects ( const edm::TriggerNames &  names,
edm::Handle< pat::TriggerObjectStandAloneCollection >  triggerObjects,
vCands all_mus,
vCands all_els,
vCands photons 
)

Definition at line 782 of file bmaker_basic.cc.

References resubmit::ind.

void bmaker_basic::writeJets ( edm::Handle< pat::JetCollection >  alljets,
edm::Handle< edm::View< reco::GenJet > >  genjets,
vCands sig_leps,
vCands veto_leps,
vCands photons,
vCands tks,
std::vector< LVector > &  jets,
std::vector< std::vector< LVector > > &  sysjets 
)
void bmaker_basic::writeLeptons ( vCands leptons)

Definition at line 656 of file bmaker_basic.cc.

References utilities::greaterPt(), and resubmit::ind.

void bmaker_basic::writeMC ( edm::Handle< reco::GenParticleCollection >  genParticles,
vCands all_mus,
vCands all_els,
vCands photons 
)

Definition at line 973 of file bmaker_basic.cc.

References utilities::getMT(), resubmit::ind, and send_split_scan::outname.

void bmaker_basic::writeMET ( edm::Handle< pat::METCollection >  mets,
edm::Handle< pat::METCollection >  mets_nohf 
)

Definition at line 328 of file bmaker_basic.cc.

References bmaker_basic_cfg::isData, and utilities::kSysLast.

vCands bmaker_basic::writeMuons ( edm::Handle< pat::MuonCollection >  muons,
edm::Handle< pat::PackedCandidateCollection >  pfcands,
edm::Handle< reco::VertexCollection >  vtx,
vCands veto_mus,
vCands all_mus,
double  rhoEventCentral 
)

Definition at line 555 of file bmaker_basic.cc.

vCands bmaker_basic::writePhotons ( edm::Handle< pat::PhotonCollection >  allphotons,
edm::Handle< std::vector< pat::Electron > > &  electrons,
edm::Handle< reco::ConversionCollection > &  conversions,
edm::Handle< reco::BeamSpot > &  beamspot,
double  rho 
)

Definition at line 737 of file bmaker_basic.cc.

References resubmit::ind.

bool bmaker_basic::writeTriggers ( const edm::TriggerNames &  names,
edm::Handle< edm::TriggerResults >  triggerBits,
edm::Handle< pat::PackedTriggerPrescales >  triggerPrescales 
)

Definition at line 763 of file bmaker_basic.cc.

void bmaker_basic::writeVertices ( edm::Handle< reco::VertexCollection >  vtx,
edm::Handle< std::vector< PileupSummaryInfo > >  pu_info 
)

Definition at line 921 of file bmaker_basic.cc.

void bmaker_basic::writeWeights ( const vCands sig_leps,
edm::Handle< GenEventInfoProduct > &  gen_event_info,
edm::Handle< LHEEventProduct > &  lhe_info 
)

Member Data Documentation

bool bmaker_basic::addBTagWeights

Definition at line 143 of file bmaker_basic.hh.

baby_basic bmaker_basic::baby

Definition at line 59 of file bmaker_basic.hh.

Referenced by bmaker_basic(), and ~bmaker_basic().

std::string bmaker_basic::btag_label_BC

Definition at line 133 of file bmaker_basic.hh.

std::string bmaker_basic::btag_label_UDSG

Definition at line 134 of file bmaker_basic.hh.

TString bmaker_basic::condor_subtime

Definition at line 131 of file bmaker_basic.hh.

Referenced by ~bmaker_basic().

bool bmaker_basic::debug

Definition at line 146 of file bmaker_basic.hh.

Referenced by reportTime().

bool bmaker_basic::doMetRebalancing

Definition at line 140 of file bmaker_basic.hh.

bool bmaker_basic::doSystematics

Definition at line 145 of file bmaker_basic.hh.

Referenced by bmaker_basic().

event_tools* bmaker_basic::eventTool

Definition at line 67 of file bmaker_basic.hh.

Referenced by bmaker_basic().

std::vector<std::string> bmaker_basic::inputfiles

Definition at line 129 of file bmaker_basic.hh.

Referenced by ~bmaker_basic().

bool bmaker_basic::isData

Definition at line 60 of file bmaker_basic.hh.

bool bmaker_basic::isFastSim

Definition at line 144 of file bmaker_basic.hh.

Referenced by bmaker_basic().

TString bmaker_basic::jec_label

Definition at line 132 of file bmaker_basic.hh.

Referenced by bmaker_basic(), and ~bmaker_basic().

edm::InputTag bmaker_basic::jets_label

Definition at line 137 of file bmaker_basic.hh.

jet_met_tools* bmaker_basic::jetTool

Definition at line 65 of file bmaker_basic.hh.

Referenced by bmaker_basic(), and ~bmaker_basic().

TString bmaker_basic::jsonfile

Definition at line 130 of file bmaker_basic.hh.

Referenced by ~bmaker_basic().

lepton_tools* bmaker_basic::lepTool

Definition at line 64 of file bmaker_basic.hh.

Referenced by bmaker_basic(), and ~bmaker_basic().

mc_tools* bmaker_basic::mcTool

Definition at line 68 of file bmaker_basic.hh.

Referenced by bmaker_basic(), and ~bmaker_basic().

edm::InputTag bmaker_basic::met_label

Definition at line 135 of file bmaker_basic.hh.

edm::InputTag bmaker_basic::met_nohf_label

Definition at line 136 of file bmaker_basic.hh.

unsigned int bmaker_basic::nevents

Definition at line 139 of file bmaker_basic.hh.

Referenced by reportTime(), and ~bmaker_basic().

unsigned int bmaker_basic::nevents_sample

Definition at line 138 of file bmaker_basic.hh.

Referenced by ~bmaker_basic().

TFile* bmaker_basic::outfile

Definition at line 58 of file bmaker_basic.hh.

Referenced by bmaker_basic(), and ~bmaker_basic().

TString bmaker_basic::outname

Definition at line 128 of file bmaker_basic.hh.

Referenced by bmaker_basic(), and ~bmaker_basic().

photon_tools* bmaker_basic::photonTool

Definition at line 66 of file bmaker_basic.hh.

Referenced by bmaker_basic(), and ~bmaker_basic().

time_t bmaker_basic::startTime

Definition at line 61 of file bmaker_basic.hh.

Referenced by bmaker_basic(), reportTime(), and ~bmaker_basic().

edm::EDGetTokenT<std::vector< PileupSummaryInfo > > bmaker_basic::tok_addPileup_
private

Definition at line 155 of file bmaker_basic.hh.

edm::EDGetTokenT<pat::ElectronCollection> bmaker_basic::tok_electrons_
private

Definition at line 160 of file bmaker_basic.hh.

edm::EDGetTokenT<LHEEventProduct> bmaker_basic::tok_extLHEProducer_
private

Definition at line 175 of file bmaker_basic.hh.

edm::EDGetTokenT<GenEventInfoProduct> bmaker_basic::tok_generator_
private

Definition at line 177 of file bmaker_basic.hh.

edm::EDGetTokenT<edm::View<reco::GenJet> > bmaker_basic::tok_genJets_
private

Definition at line 166 of file bmaker_basic.hh.

edm::EDGetTokenT<bool> bmaker_basic::tok_HBHEIsoNoiseFilter_
private

Definition at line 170 of file bmaker_basic.hh.

edm::EDGetTokenT<bool> bmaker_basic::tok_HBHENoiseFilter_
private

Definition at line 169 of file bmaker_basic.hh.

edm::EDGetTokenT<pat::JetCollection> bmaker_basic::tok_jets_
private

Definition at line 165 of file bmaker_basic.hh.

edm::EDGetTokenT<pat::METCollection> bmaker_basic::tok_met_
private

Definition at line 167 of file bmaker_basic.hh.

edm::EDGetTokenT<pat::METCollection> bmaker_basic::tok_met_noHF_
private

Definition at line 168 of file bmaker_basic.hh.

edm::EDGetTokenT<pat::MuonCollection> bmaker_basic::tok_muons_
private

Definition at line 159 of file bmaker_basic.hh.

edm::EDGetTokenT<reco::BeamSpot> bmaker_basic::tok_offBeamSpot_
private

Definition at line 162 of file bmaker_basic.hh.

edm::EDGetTokenT<pat::PackedCandidateCollection> bmaker_basic::tok_packPFCands_
private

Definition at line 157 of file bmaker_basic.hh.

edm::EDGetTokenT<pat::PackedTriggerPrescales> bmaker_basic::tok_patTrig_
private

Definition at line 153 of file bmaker_basic.hh.

edm::EDGetTokenT<pat::PhotonCollection> bmaker_basic::tok_photons_
private

Definition at line 163 of file bmaker_basic.hh.

edm::EDGetTokenT<reco::VertexCollection> bmaker_basic::tok_primVertex_
private

Definition at line 154 of file bmaker_basic.hh.

edm::EDGetTokenT<reco::GenParticleCollection> bmaker_basic::tok_pruneGenPart_
private

Definition at line 174 of file bmaker_basic.hh.

edm::EDGetTokenT<std::vector<reco::Conversion> > bmaker_basic::tok_reducedEgamma_conver_
private

Definition at line 164 of file bmaker_basic.hh.

edm::EDGetTokenT<double> bmaker_basic::tok_rhoFastJet_all_
private

Definition at line 161 of file bmaker_basic.hh.

edm::EDGetTokenT<double> bmaker_basic::tok_rhoFastJet_centralNeutral_
private

Definition at line 158 of file bmaker_basic.hh.

edm::EDGetTokenT<pat::TriggerObjectStandAloneCollection> bmaker_basic::tok_selectedPatTrig_
private

Definition at line 173 of file bmaker_basic.hh.

edm::EDGetTokenT<std::vector< PileupSummaryInfo > > bmaker_basic::tok_slimAddPileup_
private

Definition at line 156 of file bmaker_basic.hh.

edm::EDGetTokenT<LHEEventProduct> bmaker_basic::tok_source_
private

Definition at line 176 of file bmaker_basic.hh.

edm::EDGetTokenT<edm::TriggerResults> bmaker_basic::tok_trigResults_hlt_
private

Definition at line 152 of file bmaker_basic.hh.

edm::EDGetTokenT<edm::TriggerResults> bmaker_basic::tok_trigResults_pat_
private

Definition at line 172 of file bmaker_basic.hh.

edm::EDGetTokenT<edm::TriggerResults> bmaker_basic::tok_trigResults_reco_
private

Definition at line 171 of file bmaker_basic.hh.

std::vector<TString> bmaker_basic::trig_name

Definition at line 125 of file bmaker_basic.hh.

Referenced by bmaker_basic(), and ~bmaker_basic().

weight_tools* bmaker_basic::weightTool

Definition at line 69 of file bmaker_basic.hh.

Referenced by bmaker_basic(), and ~bmaker_basic().

float bmaker_basic::xsec

Definition at line 141 of file bmaker_basic.hh.


The documentation for this class was generated from the following files: