Skip to content
Snippets Groups Projects
THcHodoscopeHit.h 840 B
Newer Older
#ifndef ROOT_THcHodoscopeHit
#define ROOT_THcHodoscopeHit

#include "THcRawHit.h"

class THcHodoscopeHit : public THcRawHit {

 public:

 THcHodoscopeHit(Int_t plane=0, Int_t counter=0) : THcRawHit(plane, counter), 
    fADC_pos(-1), fADC_neg(-1),
    fTDC_pos(-1), fTDC_neg(-1) {
  }
  THcHodoscopeHit& operator=( const THcHodoscopeHit& );
  virtual ~THcHodoscopeHit() {}

  virtual void Clear( Option_t* opt="" )
    { fADC_pos = -1; fADC_neg = -1; fTDC_pos = -1; fTDC_neg = -1; }

  void SetData(Int_t signal, Int_t data);
  Int_t GetData(Int_t signal);

  //  virtual Bool_t  IsSortable () const {return kTRUE; }
  //  virtual Int_t   Compare(const TObject* obj) const;

  Int_t fADC_pos;
  Int_t fADC_neg;
  Int_t fTDC_pos;
  Int_t fTDC_neg;

 protected:

 private:

  ClassDef(THcHodoscopeHit, 0);	// Hodoscope hit class
};  

#endif