diff --git a/Makefile b/Makefile index b1e3f0563aa22ad1af668cd8867dec63284dcc8a..6c2be6e8600ba0de552a934c23e8233c1a544ae6 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ SRC = src/THcInterface.cxx src/THcParmList.cxx src/THcAnalyzer.cxx \ - src/THcHodoscopeHit.cxx + src/THcHodoscopeHit.cxx src/THcRawHit.cxx src/THcRawHitList.cxx # Name of your package. # The shared library that will be built will get the name lib$(PACKAGE).so diff --git a/src/HallC_LinkDef.h b/src/HallC_LinkDef.h index 0de1263aed42ecf626e2e16a48a569d25c57e954..6e9bfe68d42e54c29e37b86e1211e0f778c2973e 100644 --- a/src/HallC_LinkDef.h +++ b/src/HallC_LinkDef.h @@ -9,6 +9,8 @@ #pragma link C++ class THcInterface+; #pragma link C++ class THcParmList+; #pragma link C++ class THcAnalyzer+; +#pragma link C++ class THcRawHit+; #pragma link C++ class THcHodoscopeHit+; +#pragma link C++ class THcRawHitList+; #endif diff --git a/src/THcHodoscopeHit.h b/src/THcHodoscopeHit.h index c296ce51bea3f25ee03d6d4ea5e5bdb03258a482..c49ad21e1b933a80f23902f4743a81aefa6a95fa 100644 --- a/src/THcHodoscopeHit.h +++ b/src/THcHodoscopeHit.h @@ -10,8 +10,8 @@ class THcHodoscopeHit : public THcRawHit { public: - THcHodoscopeHit(Int_t plane, Int_t counter) : - fPlane(plane), fCounter(counter), fADC_pos(-1), fADC_neg(-1), + THcHodoscopeHit(Int_t plane, Int_t counter) : THcRawHit(plane, counter) + fADC_pos(-1), fADC_neg(-1), fTDC_pos(-1), fTDC_neg(-1) {} virtual ~THcHodoscopeHit() {} diff --git a/src/THcRawHit.h b/src/THcRawHit.h index 01cd491bf1aed56aed237804bddcaf0d50c2d5a0..020fc3c9cb39cd835733de8ab18474722c5a0e78 100644 --- a/src/THcRawHit.h +++ b/src/THcRawHit.h @@ -13,8 +13,10 @@ class THaVDCUVTrack; class THcRawHit : public TObject { public: - THcRawHit() {} - THcRawHit( const THcRawHit& rhs ) : TObject(rhs) {} + THcRawHit(Int_t plane, Int_t counter) : + fPlane(plane), fCounter(counter) {} + + THcRawHit( const THcRawHit& rhs ) : TObject(rhs) {} THcRawHit& operator=( const THcRawHit& rhs ) { TObject::operator=(rhs); return *this; }