-
Stephen A. Wood authored
Base class THcRawHit has null GetReference method. Returns zero. THcRawDCHit will get the reference time if it was specified in the map file. It is up to the detector class to use the reference time to subtract off pipeline TDC jitter.
Stephen A. Wood authoredBase class THcRawHit has null GetReference method. Returns zero. THcRawDCHit will get the reference time if it was specified in the map file. It is up to the detector class to use the reference time to subtract off pipeline TDC jitter.
THcRawHit.h 1.66 KiB
#ifndef ROOT_THcRawHit
#define ROOT_THcRawHit
///////////////////////////////////////////////////////////////////////////////
// //
// THcRawHit //
// //
///////////////////////////////////////////////////////////////////////////////
#include "TObject.h"
class THcRawHit : public TObject {
public:
THcRawHit(Int_t plane=0, Int_t counter=0) :
fPlane(plane), fCounter(counter), fHasRef(kFALSE) {};
THcRawHit( const THcRawHit& rhs ) : TObject(rhs) {}
THcRawHit& operator=( const THcRawHit& rhs )
{ TObject::operator=(rhs); return *this; };
virtual ~THcRawHit() {}
// This line causes problem
// virtual void Clear( Option_t* opt="" )=0;
// virtual Bool_t operator==( const THcRawHit& ) = 0;
// virtual Bool_t operator!=( const THcRawHit& ) = 0;
virtual void SetData(Int_t signal, Int_t data) {};
virtual Int_t GetData(Int_t signal) {return 0;};
virtual void SetReference(Int_t signal, Int_t reference) {};
virtual Bool_t HasReference(Int_t signal) {return fHasRef;};
virtual Int_t GetReference(Int_t signal) {return 0;};
// Derived objects must be sortable and supply Compare method
// virtual Bool_t IsSortable () const {return kFALSE; }
// virtual Int_t Compare(const TObject* obj) const {return 0;}
virtual Bool_t IsSortable () const {return kTRUE; }
virtual Int_t Compare(const TObject* obj) const;
Int_t fPlane;
Int_t fCounter;
Bool_t fHasRef;
private:
ClassDef(THcRawHit,0) // Raw Hit Base Class
};
#endif