7 int main(
int argc,
char* argv[]){
10 cout <<
"usage: readEvtFile file.root" << endl;
14 TFile *
f1 = TFile::Open(argv[1]);
17 cerr <<
"File can't be open." << endl;
27 EvtTree->SetBranchAddress(
"Evt",&evt);
28 Long64_t nentries = EvtTree->GetEntries();
29 for (Long64_t i=0; i<nentries; i++) {
31 cout <<
"Event ID: " << evt->
id << endl;
const JPolynome f1(1.0, 2.0, 3.0)
Function.
int main(int argc, char *argv[])
static const char *const TTREE_OFFLINE_EVENT
ROOT TTree name.
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
void print(std::ostream &out=std::cout) const
Print event.
int id
offline event identifier