#include "MMcTrig.hxx" #include //========== // MMcTrig // // This class handles and contains the MonteCarlo information // with which the events have been generated // This information exists for each event. ClassImp(MMcTrig); MMcTrig::MMcTrig() { // // default constructor // set all values to zero fName = "MMcTrig"; fTitle = "Trigger info from Monte Carlo"; Int_t i,j; fNumFirstLevel = 0 ; for(i=0;iTOTAL_TRIGGER_TIME/LEVEL1_DEAD_TIME+1 || i<1) { cout << "fNumFirstLevel out of range. Time will be -99" << endl; return; } fTimeFirst[i-1]=t; } void MMcTrig::Clear(Option_t *opt) { // // // reset all values to zero Int_t i,j; fNumFirstLevel = 0 ; for(i=0;i1 if the pixel npix was fired when the nfirstlevel // first level trigger happened, 0 if not. // Byte_t ret=0; Byte_t reminder; Int_t body; body=npix/8; reminder=(Byte_t)(pow(2,npix%8)); ret=reminder&fPixelsFirst[body][nfirstlevel]; return(ret); }