JeffersonLab / analyzer

HallA C++ Analyzer
BSD 3-Clause "New" or "Revised" License
7 stars 54 forks source link

Per request of Steve Wood, add a GetRawDataBuffer() method to ThaEvD… #136

Closed rwmichaels closed 7 years ago

rwmichaels commented 7 years ago

…ata to return a pointer to a full event

Code to illustrate how to use the new method // Test ability to extract buffer const UInt_t *evbuff;

  evbuff = evdata->GetRawDataBuffer();

  Int_t len=evbuff[0]+1;
  for (Int_t j=0; j<len; j++) {
    cout << "evbuffer["<<dec<<j<<"] =  0x"<<hex<<evbuff[j]<<"   = "<<dec<<evbuff[j]<<endl;
  }