/* This file is part of MAUS: http://micewww.pp.rl.ac.uk:8080/projects/maus * * MAUS is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * MAUS is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with MAUS. If not, see . * */ #include "MDfragmentV1724.h" MDfragmentV1724::MDfragmentV1724(void *d):MDfragment(d){ // A fragment should be created only once inside the map // cout << " Creating a MDfragmentV1724 ..." << endl; // cout << hex << d << dec << endl; // both should be equal to 0 _partEventPtr = new MDpartEventV1724(0); Init(); } void MDfragmentV1724::SetDataPtr( void *d, uint32_t aSize ) { MDfragment::SetDataPtr(d, aSize); } void MDfragmentV1724::Init(){ // cout << " Executing MDfragmentV1724::Init() ..." << endl; UnValidate(); _madeOfParticles = true; uint32_t * ptr = Get32bWordPtr(0); MDdataWordV1724 dw(ptr); if (this->GetSize() == 0) return; if ( dw.IsValid() ) { // TODO : Basic checks on the data consistency Validate(); // } else { // cout << " Error in MDfragmentV1724::Init() : first data word not valid " << endl; // if (ptr) cout << showbase << hex << ptr[0] << dec << endl; } // cout << " ... Done with MDfragmentV1724" << endl; } ////////////////////////////////////////////////////////////////////////