Skip to content
Snippets Groups Projects
  • Stephen A. Wood's avatar
    e7738912
    Add reference time to hitlist · e7738912
    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.
    e7738912
    History
    Add reference time to hitlist
    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.
THcRawDCHit.h 903 B
#ifndef ROOT_THcRawDCHit
#define ROOT_THcRawDCHit

#include "THcRawHit.h"

#define MAXHITS 16

class THcRawDCHit : public THcRawHit {

public:
  friend class THcDriftChamberPlane;
  friend class THcDC;

  THcRawDCHit(Int_t plane=0, Int_t counter=0) : THcRawHit(plane, counter), 
    fNHits(0) {
  }
  THcRawDCHit& operator=( const THcRawDCHit& );
  virtual ~THcRawDCHit() {}

  virtual void Clear( Option_t* opt="" ) { fNHits=0; }

  void SetData(Int_t signal, Int_t data);
  void SetReference(Int_t signal, Int_t reference);
  Int_t GetData(Int_t signal);
  Int_t GetData(Int_t signal, UInt_t ihit);
  Int_t GetReference(Int_t signal);
  

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


protected:
  UInt_t fNHits;
  Int_t fTDC[MAXHITS];
  Int_t fReferenceTime;

private:

  ClassDef(THcRawDCHit, 0);	// Raw Drift Chamber hit
};  

#endif