38 parser.stringValue (
"outputFile") =
"jetPt";
61 gROOT->SetStyle (
"Plain");
64 eventCont.
add(
new TH1F(
"jetPt",
"jetPt", 1000, 0, 1000) );
75 for (eventCont.
toBegin(); ! eventCont.
atEnd(); ++eventCont)
85 const vector< reco::CaloJet >::const_iterator kJetEnd = jetHandle->end();
86 for (vector< reco::CaloJet >::const_iterator jetIter = jetHandle->begin();
90 eventCont.
hist(
"jetPt")->Fill (jetIter->pt());
const EventContainer & toBegin() override
int main(int argc, char *argv[])
bool atEnd() const override
void add(TH1 *histPtr, const std::string &directory="")
bool getByLabel(const std::type_info &iInfo, const char *iModuleLabel, const char *iProductInstanceLabel, const char *iProcessLabel, void *oData) const override
TH1 * hist(const std::string &name)