/* 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 . * */ #ifndef __MDPARTEVENTV775_H #define __MDPARTEVENTV775_H #include "MDdataContainer.h" #include "MDdataWordV775.h" #include #include #include #include #include using namespace std; #define V775_HEADER_WORDS 1 #define V775_EOB_WORDS 1 #define V775_WORD_SIZE 4 class MDpartEventV775 : public MDdataContainer { public: MDpartEventV775( void *d = 0 ); virtual ~MDpartEventV775(){} virtual void SetDataPtr( void *d ); void Init(); void SetEvtCount(int ev) {_evtCount = ev;} int GetEvtCount(); unsigned int GetGeo(); unsigned int GetChannelCount(); int GetHitChannel(unsigned int i); int GetHitMeasurement(unsigned int i); bool EOB() {return _eob_record;} private: int _evtCount; bool _eob_record; }; ostream &operator<<(ostream &s,MDpartEventV775 &dw); #endif