babymaker
8522a50888c6c2e6eb3059ef64397a0b29afe7a5
|
#include <bmaker_basic.hh>
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_tools * | lepTool |
jet_met_tools * | jetTool |
photon_tools * | photonTool |
event_tools * | eventTool |
mc_tools * | mcTool |
weight_tools * | weightTool |
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_ |
Definition at line 53 of file bmaker_basic.hh.
|
explicit |
Definition at line 1280 of file bmaker_basic.cc.
References baby, xsec::crossSection(), doSystematics, eventTool, isFastSim, jec_label, jetTool, lepTool, mcTool, outfile, outname, photonTool, startTime, baby_base::tree_, trig_name, and weightTool.
bmaker_basic::~bmaker_basic | ( | ) |
Definition at line 1412 of file bmaker_basic.cc.
References baby, sub_cond::cmssw, condor_subtime, execute(), send_change_filter::ifile, inputfiles, jec_label, jetTool, jsonfile, utilities::kSysJECDn, utilities::kSysJECUp, utilities::kSysJER, utilities::kSysLast, lepTool, mcTool, nevents, nevents_sample, outfile, outname, photonTool, roundNumber(), startTime, baby_base::tree_, trig_name, baby_basic::Type(), weightTool, and baby_base::Write().
|
overrideprivatevirtual |
MET
isolated tracks need to be after MET calculation and before jets cleaning
Jets
Definition at line 35 of file bmaker_basic.cc.
References bmaker_basic_cfg::doMetRebalancing, bmaker_basic_cfg::doSystematics, utilities::getMT(), utilities::getMT2(), bmaker_basic_cfg::isData, bmaker_basic_cfg::jets, utilities::kSysLast, crab_cfg_template::nevents, and send_split_scan::outname.
|
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.
|
overrideprivatevirtual |
Definition at line 1517 of file bmaker_basic.cc.
|
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 | ||
) |
Definition at line 668 of file bmaker_basic.cc.
References baby_base::elel_eta(), baby_base::elel_m(), baby_base::elel_phi(), baby_base::elel_pt(), baby_base::elel_pt1(), baby_base::elel_pt2(), baby_base::elel_w(), baby_base::elelv_eta(), baby_base::elelv_m(), baby_base::elelv_phi(), baby_base::elelv_pt(), baby_base::elelv_pt1(), baby_base::elelv_pt2(), baby_base::elelv_w(), baby_base::elmu_eta(), baby_base::elmu_m(), baby_base::elmu_phi(), baby_base::elmu_pt(), baby_base::elmu_pt1(), baby_base::elmu_pt2(), baby_base::elmu_w(), baby_base::els_inz(), baby_base::els_inzv(), baby_base::els_pt(), baby_base::mumu_eta(), baby_base::mumu_m(), baby_base::mumu_phi(), baby_base::mumu_pt(), baby_base::mumu_pt1(), baby_base::mumu_pt2(), baby_base::mumu_w(), baby_base::mumuv_eta(), baby_base::mumuv_m(), baby_base::mumuv_phi(), baby_base::mumuv_pt(), baby_base::mumuv_pt1(), baby_base::mumuv_pt2(), baby_base::mumuv_w(), baby_base::mus_inz(), baby_base::mus_inzv(), and baby_base::mus_pt().
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 | ||
) |
Definition at line 350 of file bmaker_basic.cc.
References bmaker_basic_cfg::addBTagWeights, bmaker_basic_cfg::doSystematics, bmaker_basic_cfg::isData, bmaker_basic_cfg::isFastSim, bmaker_basic_cfg::jets, utilities::kSysJECDn, utilities::kSysJECUp, utilities::kSysJER, and utilities::kSysLast.
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 | ||
) |
Definition at line 1201 of file bmaker_basic.cc.
References xsec::fractionNegWeights(), bmaker_basic_cfg::isData, bmaker_basic_cfg::isFastSim, weight_tools::muFdown, weight_tools::muFup, weight_tools::muRdown, weight_tools::muRdown_muFdown, weight_tools::muRup, weight_tools::muRup_muFup, and send_split_scan::outname.
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().
|
private |
Definition at line 155 of file bmaker_basic.hh.
|
private |
Definition at line 160 of file bmaker_basic.hh.
|
private |
Definition at line 175 of file bmaker_basic.hh.
|
private |
Definition at line 177 of file bmaker_basic.hh.
|
private |
Definition at line 166 of file bmaker_basic.hh.
|
private |
Definition at line 170 of file bmaker_basic.hh.
|
private |
Definition at line 169 of file bmaker_basic.hh.
|
private |
Definition at line 165 of file bmaker_basic.hh.
|
private |
Definition at line 167 of file bmaker_basic.hh.
|
private |
Definition at line 168 of file bmaker_basic.hh.
|
private |
Definition at line 159 of file bmaker_basic.hh.
|
private |
Definition at line 162 of file bmaker_basic.hh.
|
private |
Definition at line 157 of file bmaker_basic.hh.
|
private |
Definition at line 153 of file bmaker_basic.hh.
|
private |
Definition at line 163 of file bmaker_basic.hh.
|
private |
Definition at line 154 of file bmaker_basic.hh.
|
private |
Definition at line 174 of file bmaker_basic.hh.
|
private |
Definition at line 164 of file bmaker_basic.hh.
|
private |
Definition at line 161 of file bmaker_basic.hh.
|
private |
Definition at line 158 of file bmaker_basic.hh.
|
private |
Definition at line 173 of file bmaker_basic.hh.
|
private |
Definition at line 156 of file bmaker_basic.hh.
|
private |
Definition at line 176 of file bmaker_basic.hh.
|
private |
Definition at line 152 of file bmaker_basic.hh.
|
private |
Definition at line 172 of file bmaker_basic.hh.
|
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.