23 int main (
int argc,
char* argv[])
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());
std::string & stringValue(std::string key)
void parseArguments(int argc, char **argv, bool allowArgs=false)
int main(int argc, char **argv)
bool getByLabel(const std::type_info &iInfo, const char *iModuleLabel, const char *iProductInstanceLabel, const char *iProcessLabel, void *oData) const
void add(TH1 *histPtr, const std::string &directory="")
const EventContainer & toBegin()
TH1 * hist(const std::string &name)