#ifndef __SOFIE_DETECTOR_SAMPLE_12_16_2005__ #define __SOFIE_DETECTOR_SAMPLE_12_16_2005__ /** @file DetectorSample.h @author Brian Magill @datecreated 12/23/2005 $Date: 2006/04/06 18:25:15 $ $Revision: 1.2 $ @copyright (©) Copyright 2006 by GATS Inc. 11864 Canon Blvd., Suite 101, Newport News, VA 23606 All Rights Reserved. No part of this software or publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise without the prior written permission of GATS Inc. @brief storew the data for all of the detectors for a given instant in time. Time is stored in seconds. These objects are ordered using the time field. */ //---------------------------------------------------------------------- // #include "SOFIE_namespace.h" class DetectorSample { protected: double time; // time of sample double channel[SOFIE::tot_det_signals]; // channel values public: DetectorSample( ) { }; DetectorSample(DetectorSample const& rhs ); DetectorSample& operator = (DetectorSample const& rhs ); ~DetectorSample() { }; bool operator < (DetectorSample const& rhs ); bool operator > (DetectorSample const& rhs ); double getTime() { return time; }; double getChan(long detector_num); void setTime(double tim ) {time = tim; }; void setChan(long detector_num, double value); void dump(); int size() { return SOFIE::tot_det_signals; }; }; #endif