31 gSystem->Load(
"libFWCoreFWLite");
37 std::cout <<
"Usage : " <<
argv[0] <<
" [parameters.py]" << std::endl;
55 TH1F* emfAllJets_ = theDir.
make<TH1F>(
"emfAllJets",
"f_{emf}(All Jets)", 20, 0., 1.);
56 TH1F* emfCleanJets_ = theDir.
make<TH1F>(
"emfCleanJets",
"f_{emf}(Clean Jets)", 20, 0., 1.);
57 TH1F* emfOverlapJets_ = theDir.
make<TH1F>(
"emfOverlapJets",
"f_{emf}(Overlap Jets)", 20, 0., 1.);
58 TH1F* deltaRElecJet_ = theDir.
make<TH1F>(
"deltaRElecJet",
"#DeltaR (elec, jet)", 10, 0., 0.5);
59 TH1F* elecOverJet_ = theDir.
make<TH1F>(
"elecOverJet",
"E_{elec}/E_{jet}", 100, 0., 2.);
60 TH1F* nOverlaps_ = theDir.
make<TH1F>(
"nOverlaps",
"Number of overlaps", 5, 0., 5.);
63 TFile* inFile = TFile::Open(input_.c_str());
92 event.getByLabel(jets_,
jets);
95 for (std::vector<pat::Jet>::const_iterator
jet =
jets->begin();
jet !=
jets->end();
jet++) {
97 emfAllJets_->Fill(
jet->emEnergyFraction());
98 if (!
jet->hasOverlaps(overlaps_)) {
99 emfCleanJets_->Fill(
jet->emEnergyFraction());
104 emfOverlapJets_->Fill(
jet->emEnergyFraction());
109 deltaRElecJet_->Fill(
deltaR);
110 elecOverJet_->Fill((*overlap)->energy() /
jet->energy());