#include "MDfragmentVLSBMaster.h" #include "MDdataWordVLSBMaster.h" MDfragmentVLSBMaster::MDfragmentVLSBMaster(void *d):MDfragment(d){ // cout << " Creating a MDfragmentVLSBMaster ..." << endl; _partEventPtr = new MDpartEventVLSB(0); Init(); } void MDfragmentVLSBMaster::SetDataPtr( void *d, uint32_t aSize ) { MDfragment::SetDataPtr(d,aSize); // The dynamically correct Init() is called by MDfragment::SetDataPtr(d,aSize) } void MDfragmentVLSBMaster::Init(){ // cout << "MDfragmentVLSBMaster::Init()" << endl; uint32_t * ptr = Get32bWordPtr(0); MDdataWordVLSBMaster dw(ptr); UnValidate(); _madeOfParticles = false; // Checking the first word to start with if ( dw.IsValid() ) { Validate(); // There is nothing else we can do here. } } uint32_t MDfragmentVLSBMaster::InitPartEventVector() { uint32_t * ptr = Get32bWordPtr(0); MDdataWordVLSBMaster dw(ptr); if(!dw.IsValid()) return 0; return dw.GetNTriggers(); } ////////////////////////////////////////////////////////////////////////