31 gSystem->Load(
"libFWCoreFWLite");
37 std::cout <<
"Usage : " <<
argv[0] <<
" [parameters.py]" << std::endl;
54 TH1F* jetPt_ = theDir.
make<TH1F>(
"jetPt",
"pt", 100, 0., 300.);
55 TH1F* jetEta_ = theDir.
make<TH1F>(
"jetEta",
"eta", 100, -3., 3.);
56 TH1F* jetPhi_ = theDir.
make<TH1F>(
"jetPhi",
"phi", 100, -5., 5.);
57 TH1F* disc_ = theDir.
make<TH1F>(
"disc",
"Discriminant", 100, 0.0, 10.0);
58 TH1F* constituentPt_ = theDir.
make<TH1F>(
"constituentPt",
"Constituent pT", 100, 0, 300.0);
61 TFile* inFile = TFile::Open(input_.c_str());
91 event.getByLabel(jets_,
jets);
94 for (
unsigned i = 0;
i <
jets->size(); ++
i) {
103 disc_->Fill(
svTagInfos->flightDistance(0).value());
107 std::vector<reco::PFCandidatePtr>
const& pfConstituents = (*jets)[
i].getPFConstituents();
108 for (std::vector<reco::PFCandidatePtr>::const_iterator ibegin = pfConstituents.begin(),
109 iend = pfConstituents.end(),
110 iconstituent = ibegin;
111 iconstituent != iend;
113 constituentPt_->Fill((*iconstituent)->pt());