Skip to content
Snippets Groups Projects
Commit 6af1546f authored by Stephen A. Wood's avatar Stephen A. Wood
Browse files

Make data members of raw hit classes private.

  Friend the detector classes that need access to the private members.
  May later want to use member functions to access the data.
parent 4300132a
Branches
Tags
No related merge requests found
......@@ -6,6 +6,7 @@
class THcAerogelHit : public THcHodoscopeHit {
public:
friend class THcAerogel;
protected:
......
......@@ -6,6 +6,7 @@
class THcCherenkovHit : public THcHodoscopeHit {
public:
friend class THcCherenkov;
protected:
......
......@@ -6,8 +6,9 @@
class THcHodoscopeHit : public THcRawHit {
public:
friend class THcScintillatorPlane;
THcHodoscopeHit(Int_t plane=0, Int_t counter=0) : THcRawHit(plane, counter),
THcHodoscopeHit(Int_t plane=0, Int_t counter=0) : THcRawHit(plane, counter),
fADC_pos(-1), fADC_neg(-1),
fTDC_pos(-1), fTDC_neg(-1) {
}
......@@ -23,13 +24,12 @@ class THcHodoscopeHit : public THcRawHit {
// virtual Bool_t IsSortable () const {return kTRUE; }
// virtual Int_t Compare(const TObject* obj) const;
protected:
Int_t fADC_pos;
Int_t fADC_neg;
Int_t fTDC_pos;
Int_t fTDC_neg;
protected:
private:
ClassDef(THcHodoscopeHit, 0); // Hodoscope hit class
......
......@@ -8,6 +8,8 @@
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) {
......@@ -24,10 +26,10 @@ public:
virtual Bool_t IsSortable () const {return kTRUE; }
virtual Int_t Compare(const TObject* obj) const;
Int_t fNHits;
Int_t fTDC[MAXHITS];
protected:
Int_t fNHits;
Int_t fTDC[MAXHITS];
private:
......
......@@ -6,8 +6,9 @@
class THcRawShowerHit : public THcRawHit {
public:
friend class THcShowerPlane;
THcRawShowerHit(Int_t plane=0, Int_t counter=0) : THcRawHit(plane, counter),
THcRawShowerHit(Int_t plane=0, Int_t counter=0) : THcRawHit(plane, counter),
fADC_pos(-1), fADC_neg(-1){
}
THcRawShowerHit& operator=( const THcRawShowerHit& );
......@@ -22,11 +23,10 @@ class THcRawShowerHit : public THcRawHit {
// virtual Bool_t IsSortable () const {return kTRUE; }
// virtual Int_t Compare(const TObject* obj) const;
protected:
Int_t fADC_pos;
Int_t fADC_neg;
protected:
private:
ClassDef(THcRawShowerHit, 0); // Shower hit class
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment