Skip to content
Snippets Groups Projects
Commit 0c50105d authored by Stephen A. Wood's avatar Stephen A. Wood Committed by Stephen Wood
Browse files

Remove unused arrays in hodoscope code.

  fpTimes, fScinTime, fScinSigma and fScinZpos are not used.
  These arrays were given fixed size of 53.
  This commit finishes issue #53
parent d09bf44b
No related branches found
No related tags found
No related merge requests found
...@@ -76,13 +76,6 @@ THcScintillatorPlane::THcScintillatorPlane( const char* name, ...@@ -76,13 +76,6 @@ THcScintillatorPlane::THcScintillatorPlane( const char* name,
fTotPlanes = planenum; fTotPlanes = planenum;
fNScinHits = 0; fNScinHits = 0;
fMaxHits=53;
fpTimes = new Double_t [fMaxHits];
fScinTime = new Double_t [fMaxHits];
fScinSigma = new Double_t [fMaxHits];
fScinZpos = new Double_t [fMaxHits];
fPosCenter = NULL; fPosCenter = NULL;
} }
...@@ -125,10 +118,6 @@ THcScintillatorPlane::~THcScintillatorPlane() ...@@ -125,10 +118,6 @@ THcScintillatorPlane::~THcScintillatorPlane()
delete frNegAdcPulseInt; delete frNegAdcPulseInt;
delete frNegAdcPulseAmp; delete frNegAdcPulseAmp;
delete fpTimes;
delete [] fScinTime;
delete [] fScinSigma;
delete [] fScinZpos;
delete [] fPosCenter; delete [] fPosCenter;
delete [] fHodoPosMinPh; fHodoPosMinPh = NULL; delete [] fHodoPosMinPh; fHodoPosMinPh = NULL;
......
...@@ -227,10 +227,6 @@ class THcScintillatorPlane : public THaSubDetector { ...@@ -227,10 +227,6 @@ class THcScintillatorPlane : public THaSubDetector {
// //
Int_t fNScinGoodHits; // number of hits for which both ends of the paddle fired in time! Int_t fNScinGoodHits; // number of hits for which both ends of the paddle fired in time!
Double_t fpTime; // the original code only has one fpTime per plane! Double_t fpTime; // the original code only has one fpTime per plane!
Double_t *fpTimes; // ... but also allows for more than one hit per plane
Double_t *fScinTime; // array of scintillator times (only filled for goodhits)
Double_t *fScinSigma; // errors for the above
Double_t *fScinZpos; // zpositions for the above
virtual Int_t ReadDatabase( const TDatime& date ); virtual Int_t ReadDatabase( const TDatime& date );
virtual Int_t DefineVariables( EMode mode = kDefine ); virtual Int_t DefineVariables( EMode mode = kDefine );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment