// File: hldevt.cc // Modified bt D.Bertini 19/03/99 //_HADES_CLASS_DESCRIPTION ////////////////////////////////////////////////////// //HldEvent // // Class used for reading LMD events from file // ///////////////////////////////////////////////////// using namespace std; #include #include #include #include "hldevt.h" #include "hldsubevt.h" #include "htrb3unpacker.h" Bool_t HldEvt::scanHdr(void) { //Checks event header. Returns kTRUE if correct. Bool_t r=kTRUE; if (getId()==0 || getSize()>100000) { r=kFALSE; printf("Event Corrupted\n"); dumpHdr(); } return r; } UInt_t HldEvt::getSubEventForIds(vector& ids,vector& subevts) { subevts.clear(); for(UInt_t i=0;i& ids = p->getSubEvtIds(); for(UInt_t i=0;igetPaddedSize()); // set size + init with NULL data.assign((const Char_t*)this->getHeader(),this->getHdrSize()); data.append((const Char_t*)this->getData() ,this->getDataSize()); return; } //ClassImp(HldEvt)