#define tempostrip_cxx #include "tempostrip.h" #include #include #include #include void tempostrip::Loop(Long64_t HowMany) { if (fChain == 0) return; TFile *p = new TFile("tempostrip.root","RECREATE"); //.............. TEMPOSTRIP Display .................... int mynentries=100; int counter_good=0; TH1D *timerise[mynentries]; // std::string NomeEvt[100]; for(int ich=0; ichGetEntriesFast(); if(HowMany==0){ nentries = fChain->GetEntriesFast(); } else { nentries= HowMany; } Long64_t nbytes = 0, nb = 0; for (Long64_t jentry=0; jentryGetEntry(jentry); nbytes += nb; vector > > charge; vector chamber; vector apvq; apvq.clear(); charge.clear(); chamber.clear(); // for(int i=0;i<5;i++) { vector > maxq; maxq.clear(); charge.push_back(maxq); } // Int_t nstrip = mm_strip->size(); for(int i=0;iat(i); for(Int_t j=0; j<27; j++) { Float_t q = apvq.at(j); if(ContaLeStrip<100) timerise[ContaLeStrip]->Fill(j,q); } hist[k]->Write(); ContaLeStrip++; } } p->Write(); p->Close(); }