#ifndef TMidasTripTHisto_hxx_seen #define TMidasTripTHisto_hxx_seen // $Id: IMidasTripTHisto.hxx,v 1.3 2009/09/25 06:02:32 nickwest Exp $ // #include "IMidasObj.hxx" #include "IMidasItr.hxx" //Needed for LinkDef namespace COMET { class IMidasTripTHisto; }; /// This class represents a single raw TripT dpt histogram. class COMET::IMidasTripTHisto: public COMET::IMidasObj { public: IMidasTripTHisto(UInt_t nbins, // nbins = 0 means it is the error object const UChar_t tfb, const UChar_t trip, const UChar_t chan) : IMidasObj(0), fNBins(nbins), fTfb(tfb), fTrip(trip), fChan(chan) {} virtual ~IMidasTripTHisto() { } virtual void Print(const Option_t* opt = "") const; const UInt_t *GetDataPtr() const { return fBinData; }; UInt_t GetNBins() const { return fNBins; } UInt_t GetTFB() const { return fTfb; } UInt_t GetTrip() const { return fTrip; } UInt_t GetChan() const { return fChan; } void SetBin(UInt_t i, UInt_t v) { fBinData[i] = v; } private: UInt_t fNBins; //< Number of bins UChar_t fTfb; //< TFB number (obtained from the slot number) UChar_t fTrip; //< Trip number [0-3] from slot number UChar_t fChan; //< Channel number [0-15] or 16 or 17 if special channels enabled UInt_t fBinData[1024]; //< Histogram data. }; #endif