void CoinHist(){ // set raw data file TArtEventStore *estore = new TArtEventStore(); estore->Open("ridf/1205_dayone/sdaq02/dayone0090.ridf");// 22C+C tirg=DSB(1/1) // define histogram TH1* hcoin = new TH1I("hcoin", "COIN", 16,0.5,16.5); // calibration class TArtCalibCoin *calibcoin = new TArtCalibCoin(); int neve = 0; while(estore->GetNextEvent() && neve<10000){ calibcoin->LoadData();// use LoadData instead of ReconstructData for (int id=1;id<16;id++) if (calibcoin->IsChTrue(id)) hcoin->Fill(id); /* Definition for the SAMURAI dayone expeirment id = 1 : DS-BEAM id = 2 : BEAM x NEBULA id = 3 : BEAM x DALI id = 4 : BEAM x HOD */ // calibcoin->ClearData();// do nothing estore->ClearData(); ++neve; } }