Skip to content
Snippets Groups Projects
Commit f78cff4e authored by Stephen A. Wood's avatar Stephen A. Wood Committed by Mark K Jones
Browse files

Make the FADC time offset in the hodoscope double.

  This is because it is offsetting PulseTime which is double and to
  be consistent with the other detectors.
parent f89ecd3f
No related branches found
No related tags found
No related merge requests found
...@@ -277,14 +277,14 @@ Int_t THcHodoscope::ReadDatabase( const TDatime& date ) ...@@ -277,14 +277,14 @@ Int_t THcHodoscope::ReadDatabase( const TDatime& date )
fyHiScin = new Int_t [fNHodoscopes]; fyHiScin = new Int_t [fNHodoscopes];
fHodoSlop = new Double_t [fNPlanes]; fHodoSlop = new Double_t [fNPlanes];
fTdcOffset = new Int_t [fNPlanes]; fTdcOffset = new Int_t [fNPlanes];
fAdcTdcOffset = new Int_t [fNPlanes]; fAdcTdcOffset = new Double_t [fNPlanes];
fAdcTimeWindowMin = new Double_t [fNPlanes]; fAdcTimeWindowMin = new Double_t [fNPlanes];
fAdcTimeWindowMax = new Double_t [fNPlanes]; fAdcTimeWindowMax = new Double_t [fNPlanes];
for(Int_t ip=0;ip<fNPlanes;ip++) { // Set a large default window for(Int_t ip=0;ip<fNPlanes;ip++) { // Set a large default window
fTdcOffset[ip] = 0 ; fTdcOffset[ip] = 0 ;
fAdcTdcOffset[ip] = 0 ; fAdcTdcOffset[ip] = 0.0 ;
} }
DBRequest list[]={ DBRequest list[]={
...@@ -312,7 +312,7 @@ Int_t THcHodoscope::ReadDatabase( const TDatime& date ) ...@@ -312,7 +312,7 @@ Int_t THcHodoscope::ReadDatabase( const TDatime& date )
{"hodo_slop", fHodoSlop, kDouble, (UInt_t) fNPlanes}, {"hodo_slop", fHodoSlop, kDouble, (UInt_t) fNPlanes},
{"debugprintscinraw", &fdebugprintscinraw, kInt, 0,1}, {"debugprintscinraw", &fdebugprintscinraw, kInt, 0,1},
{"hodo_tdc_offset", fTdcOffset, kInt, (UInt_t) fNPlanes, 1}, {"hodo_tdc_offset", fTdcOffset, kInt, (UInt_t) fNPlanes, 1},
{"hodo_adc_tdc_offset", fAdcTdcOffset, kInt, (UInt_t) fNPlanes, 1}, {"hodo_adc_tdc_offset", fAdcTdcOffset, kDouble, (UInt_t) fNPlanes, 1},
{"hodo_AdcTimeWindowMin", fAdcTimeWindowMin, kDouble, (UInt_t) fNPlanes}, {"hodo_AdcTimeWindowMin", fAdcTimeWindowMin, kDouble, (UInt_t) fNPlanes},
{"hodo_AdcTimeWindowMax", fAdcTimeWindowMax, kDouble, (UInt_t) fNPlanes}, {"hodo_AdcTimeWindowMax", fAdcTimeWindowMax, kDouble, (UInt_t) fNPlanes},
{"dumptof", &fDumpTOF, kInt, 0, 1}, {"dumptof", &fDumpTOF, kInt, 0, 1},
......
...@@ -89,7 +89,7 @@ public: ...@@ -89,7 +89,7 @@ public:
Double_t GetPlaneCenter(Int_t ip) { return fPlaneCenter[ip];} Double_t GetPlaneCenter(Int_t ip) { return fPlaneCenter[ip];}
Double_t GetPlaneSpacing(Int_t ip) { return fPlaneSpacing[ip];} Double_t GetPlaneSpacing(Int_t ip) { return fPlaneSpacing[ip];}
Int_t GetTdcOffset(Int_t ip) const { return fTdcOffset[ip];} Int_t GetTdcOffset(Int_t ip) const { return fTdcOffset[ip];}
Int_t GetAdcTdcOffset(Int_t ip) const { return fAdcTdcOffset[ip];} Double_t GetAdcTdcOffset(Int_t ip) const { return fAdcTdcOffset[ip];}
Double_t GetAdcTimeWindowMin(Int_t ip) { return fAdcTimeWindowMin[ip];} Double_t GetAdcTimeWindowMin(Int_t ip) { return fAdcTimeWindowMin[ip];}
Double_t GetAdcTimeWindowMax(Int_t ip) { return fAdcTimeWindowMax[ip];} Double_t GetAdcTimeWindowMax(Int_t ip) { return fAdcTimeWindowMax[ip];}
...@@ -199,7 +199,7 @@ protected: ...@@ -199,7 +199,7 @@ protected:
Double_t fNCerNPE; Double_t fNCerNPE;
Double_t* fHodoSlop; Double_t* fHodoSlop;
Int_t *fTdcOffset; Int_t *fTdcOffset;
Int_t *fAdcTdcOffset; Double_t *fAdcTdcOffset;
Int_t fdebugprintscinraw; Int_t fdebugprintscinraw;
Int_t fTestSum; Int_t fTestSum;
Int_t fTrackEffTestNScinPlanes; Int_t fTrackEffTestNScinPlanes;
......
...@@ -179,7 +179,7 @@ class THcScintillatorPlane : public THaSubDetector { ...@@ -179,7 +179,7 @@ class THcScintillatorPlane : public THaSubDetector {
Double_t fADCPedScaleFactor; // Multiply dynamic pedestal by this before subtracting Double_t fADCPedScaleFactor; // Multiply dynamic pedestal by this before subtracting
Int_t fADCDiagCut; // Cut for ADC in hit maps. Defaults to 50 Int_t fADCDiagCut; // Cut for ADC in hit maps. Defaults to 50
Int_t fTdcOffset; /* Overall offset to raw tdc */ Int_t fTdcOffset; /* Overall offset to raw tdc */
Int_t fAdcTdcOffset; /* Overall offset to raw adc times */ Double_t fAdcTdcOffset; /* Overall offset to raw adc times */
Int_t fMaxHits; /* maximum number of hits to be considered - useful for dimensioning arrays */ Int_t fMaxHits; /* maximum number of hits to be considered - useful for dimensioning arrays */
Double_t fSpacing; /* paddle spacing */ Double_t fSpacing; /* paddle spacing */
Double_t fSize; /* paddle size */ Double_t fSize; /* paddle size */
......
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