Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hcana
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
jlab
hallc
analyzer_software
hcana
Commits
6b0007ee
Commit
6b0007ee
authored
7 years ago
by
Mark Jones
Committed by
Mark K Jones
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/THcRawAdcHit.cxx
+1
-1
1 addition, 1 deletion
src/THcRawAdcHit.cxx
src/THcRawAdcHit.h
+1
-1
1 addition, 1 deletion
src/THcRawAdcHit.h
with
2 additions
and
2 deletions
src/THcRawAdcHit.cxx
+
1
−
1
View file @
6b0007ee
...
@@ -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
n
s time sample / 50 ohms input resistance) = 0.020 pc/channel
// (1 V / 4096 adc channels) * (4
000 p
s time sample / 50 ohms input resistance) = 0.020 pc/channel
return
(
fAdcRange
/
fNAdcChan
)
*
(
fAdcTimeSample
/
fAdcImpedence
);
return
(
fAdcRange
/
fNAdcChan
)
*
(
fAdcTimeSample
/
fAdcImpedence
);
}
}
...
...
This diff is collapsed.
Click to expand it.
src/THcRawAdcHit.h
+
1
−
1
View file @
6b0007ee
...
@@ -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
n
s
const
Double_t
fAdcTimeSample
=
4
000
.0
;
// Length of FADC time sample in units of
p
s
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...
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment