Skip to content
Snippets Groups Projects
Commit 6b0007ee authored by Mark Jones's avatar Mark Jones Committed by Mark K Jones
Browse files

Set units used in THcRawAdcHit to pC ( it was nC)

parent 2249979b
No related branches found
No related tags found
No related merge requests found
...@@ -453,7 +453,7 @@ Double_t THcRawAdcHit::GetAdcTomV() const { ...@@ -453,7 +453,7 @@ Double_t THcRawAdcHit::GetAdcTomV() const {
// Convert integral to pC // Convert integral to pC
Double_t THcRawAdcHit::GetAdcTopC() const { Double_t THcRawAdcHit::GetAdcTopC() const {
// (1 V / 4096 adc channels) * (4 ns time sample / 50 ohms input resistance) = 0.020 pc/channel // (1 V / 4096 adc channels) * (4000 ps time sample / 50 ohms input resistance) = 0.020 pc/channel
return (fAdcRange / fNAdcChan) * (fAdcTimeSample / fAdcImpedence); return (fAdcRange / fNAdcChan) * (fAdcTimeSample / fAdcImpedence);
} }
......
...@@ -60,7 +60,7 @@ class THcRawAdcHit : public TObject { ...@@ -60,7 +60,7 @@ class THcRawAdcHit : public TObject {
const Double_t fNAdcChan = 4096.0; // Number of FADC channels in units of ADC channels const Double_t fNAdcChan = 4096.0; // Number of FADC channels in units of ADC channels
const Double_t fAdcRange = 1.0; // Dynamic range of FADCs in units of V, // TO-DO: Get fAdcRange from pre-start event const Double_t fAdcRange = 1.0; // Dynamic range of FADCs in units of V, // TO-DO: Get fAdcRange from pre-start event
const Double_t fAdcImpedence = 50.0; // FADC input impedence in units of Ohms const Double_t fAdcImpedence = 50.0; // FADC input impedence in units of Ohms
const Double_t fAdcTimeSample = 4.0; // Length of FADC time sample in units of ns const Double_t fAdcTimeSample = 4000.0; // Length of FADC time sample in units of ps
const Double_t fAdcTimeRes = 0.0625; // FADC time resolution in units of ns const Double_t fAdcTimeRes = 0.0625; // FADC time resolution in units of ns
Int_t fNPedestalSamples; // TODO: Get this from prestart event... Int_t fNPedestalSamples; // TODO: Get this from prestart event...
......
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