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< pat::Jet >::const_iterator kJetEnd = jetHandle->end();
86 for (vector< pat::Jet >::const_iterator jetIter = jetHandle->begin();
90 eventCont.
hist(
"jetPt")->Fill (jetIter->pt());
int main(int argc, char *argv[])
const EventContainer & toBegin() override
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)