31 gSystem->Load(
"libFWCoreFWLite" );
35 TFile* inFile = TFile::Open(
"file:jpsi.root" );
52 if( iEvent==1000 )
break;
55 if(iEvent>0 && iEvent%1==0){
56 std::cout <<
" processing event: " << iEvent << std::endl;
64 for(
unsigned i=0;
i<jpsis->size(); ++
i){
65 cout <<
"jpsi " <<
i <<
", mass = " << jpsis->at(
i).mass() <<
", dR = " << jpsis->at(
i).userFloat(
"dR") << endl;
Event const & toBegin() override
Go to the very first Event.
static void enable()
enable automatic library loading
bool atEnd() const override
void getByLabel(const P &iP, const char *iModuleLabel, const char *iProductInstanceLabel=nullptr, const char *iProcessLabel=nullptr)