// simple macro to to read object with array of bools #include #include #include #include int readBoolArray() { gSystem->Load("boolArray_C.so"); TFile *f = TFile::Open("boolArray.root"); TTree *t = (TTree*)f->Get("boolTree"); Data *d = new Data(); t->SetBranchAddress("data",&d); t->GetEvent(0); for(int i=0; inBool; i++) cout<<"iArray["<iArray[i]<<"\tbArray["<bArray[i]<<"\n"; f->Close(); return 0; }