18 #include "TStopwatch.h"
33 gSystem->Load(
"libFWCoreFWLite");
39 TH1F* jetPt_ = theDir.
make<TH1F>(
"jetPt",
"pt", 100, 0., 300.);
40 TH1F* jetEta_ = theDir.
make<TH1F>(
"jetEta",
"eta", 100, -3., 3.);
41 TH1F* jetPhi_ = theDir.
make<TH1F>(
"jetPhi",
"phi", 100, -5., 5.);
42 TH1F* disc_ = theDir.
make<TH1F>(
"disc",
"Discriminant", 100, 0.0, 10.0);
43 TH1F* constituentPt_ = theDir.
make<TH1F>(
"constituentPt",
"Constituent pT", 100, 0, 300.0);
46 TFile* inFile = TFile::Open(
argv[1]);
63 unsigned int nEventsAnalyzed = 0;
73 for (
unsigned i = 0;
i <
jets->size(); ++
i) {
80 disc_->Fill(
svTagInfos->flightDistance(0).value());
82 std::vector<CaloTowerPtr>
const& caloConstituents = (*jets)[
i].getCaloConstituents();
83 for (std::vector<CaloTowerPtr>::const_iterator ibegin = caloConstituents.begin(),
84 iend = caloConstituents.end(),
85 iconstituent = ibegin;
88 constituentPt_->Fill((*iconstituent)->pt());
99 Double_t rtime = timer.RealTime();
100 Double_t ctime = timer.CpuTime();
101 printf(
"Analyzed events: %d \n", nEventsAnalyzed);
102 printf(
"RealTime=%f seconds, CpuTime=%f seconds\n", rtime, ctime);
103 printf(
"%4.2f events / RealTime second .\n", (
double)nEventsAnalyzed / rtime);
104 printf(
"%4.2f events / CpuTime second .\n", (
double)nEventsAnalyzed / ctime);