#include "TROOT.h"
#include "TFile.h"
#include "TSystem.h"
#include "TKey.h"
#include "include/ExP01TrackerHit.hh"
Go to the source code of this file.
◆ hits()
Definition at line 15 of file readHits.C.
17 TFile fo(
"hits.root");
19 std::vector<ExP01TrackerHit*>*
hits;
20 fo.GetListOfKeys()->Print();
22 TIter next(fo.GetListOfKeys());
25 while ((key=(TKey*)next()))
27 fo.GetObject(key->GetName(),
hits);
30 cout <<
"Collection: " << key->GetName() << endl;
31 cout <<
"Number of hits: " << hits->size() << endl;
32 for (
int i=0;i!=hits->size();i++)