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
e547eda1
Commit
e547eda1
authored
7 years ago
by
Mark Jones
Committed by
Mark K Jones
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Update THcTrigDet::Decode to have fAdcTdcOffset
parent
11731902
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/THcTrigDet.cxx
+4
-2
4 additions, 2 deletions
src/THcTrigDet.cxx
src/THcTrigDet.h
+1
-0
1 addition, 0 deletions
src/THcTrigDet.h
with
5 additions
and
2 deletions
src/THcTrigDet.cxx
+
4
−
2
View file @
e547eda1
...
@@ -223,7 +223,7 @@ Int_t THcTrigDet::Decode(const THaEvData& evData) {
...
@@ -223,7 +223,7 @@ Int_t THcTrigDet::Decode(const THaEvData& evData) {
fAdcPulseIntRaw
[
cnt
]
=
rawAdcHit
.
GetPulseIntRaw
();
fAdcPulseIntRaw
[
cnt
]
=
rawAdcHit
.
GetPulseIntRaw
();
fAdcPulseAmpRaw
[
cnt
]
=
rawAdcHit
.
GetPulseAmpRaw
();
fAdcPulseAmpRaw
[
cnt
]
=
rawAdcHit
.
GetPulseAmpRaw
();
fAdcPulseTimeRaw
[
cnt
]
=
rawAdcHit
.
GetPulseTimeRaw
();
fAdcPulseTimeRaw
[
cnt
]
=
rawAdcHit
.
GetPulseTimeRaw
();
fAdcPulseTime
[
cnt
]
=
rawAdcHit
.
GetPulseTime
();
fAdcPulseTime
[
cnt
]
=
rawAdcHit
.
GetPulseTime
()
+
fAdcTdcOffset
;
fAdcPed
[
cnt
]
=
rawAdcHit
.
GetPed
();
fAdcPed
[
cnt
]
=
rawAdcHit
.
GetPed
();
fAdcPulseInt
[
cnt
]
=
rawAdcHit
.
GetPulseInt
();
fAdcPulseInt
[
cnt
]
=
rawAdcHit
.
GetPulseInt
();
...
@@ -235,7 +235,7 @@ Int_t THcTrigDet::Decode(const THaEvData& evData) {
...
@@ -235,7 +235,7 @@ Int_t THcTrigDet::Decode(const THaEvData& evData) {
THcRawTdcHit
rawTdcHit
=
hit
->
GetRawTdcHit
();
THcRawTdcHit
rawTdcHit
=
hit
->
GetRawTdcHit
();
fTdcTimeRaw
[
cnt
]
=
rawTdcHit
.
GetTimeRaw
();
fTdcTimeRaw
[
cnt
]
=
rawTdcHit
.
GetTimeRaw
();
fTdcTime
[
cnt
]
=
rawTdcHit
.
GetTime
()
*
fTdcChanperNS
-
fTdcOffset
;
fTdcTime
[
cnt
]
=
rawTdcHit
.
GetTime
()
*
fTdcChanperNS
+
fTdcOffset
;
fTdcMultiplicity
[
cnt
]
=
rawTdcHit
.
GetNHits
();
fTdcMultiplicity
[
cnt
]
=
rawTdcHit
.
GetNHits
();
}
}
...
@@ -269,11 +269,13 @@ Int_t THcTrigDet::ReadDatabase(const TDatime& date) {
...
@@ -269,11 +269,13 @@ Int_t THcTrigDet::ReadDatabase(const TDatime& date) {
{
"_adcNames"
,
&
adcNames
,
kString
},
// Names of ADC channels.
{
"_adcNames"
,
&
adcNames
,
kString
},
// Names of ADC channels.
{
"_tdcNames"
,
&
tdcNames
,
kString
},
// Names of TDC channels.
{
"_tdcNames"
,
&
tdcNames
,
kString
},
// Names of TDC channels.
{
"_tdcoffset"
,
&
fTdcOffset
,
kDouble
,
0
,
1
},
// Offset of tdc channels
{
"_tdcoffset"
,
&
fTdcOffset
,
kDouble
,
0
,
1
},
// Offset of tdc channels
{
"_adc_tdc_offset"
,
&
fTdcOffset
,
kDouble
,
0
,
1
},
// Offset of Adc Pulse time (ns)
{
"_tdcchanperns"
,
&
fTdcChanperNS
,
kDouble
,
0
,
1
},
// Convert channesl to ns
{
"_tdcchanperns"
,
&
fTdcChanperNS
,
kDouble
,
0
,
1
},
// Convert channesl to ns
{
0
}
{
0
}
};
};
fTdcChanperNS
=
0.1
;
fTdcChanperNS
=
0.1
;
fTdcOffset
=
300.
;
fTdcOffset
=
300.
;
fAdcTdcOffset
=
200.
;
gHcParms
->
LoadParmValues
(
list
,
fKwPrefix
.
c_str
());
gHcParms
->
LoadParmValues
(
list
,
fKwPrefix
.
c_str
());
// Split the names to std::vector<std::string>.
// Split the names to std::vector<std::string>.
...
...
This diff is collapsed.
Click to expand it.
src/THcTrigDet.h
+
1
−
0
View file @
e547eda1
...
@@ -36,6 +36,7 @@ class THcTrigDet : public THaDetector, public THcHitList {
...
@@ -36,6 +36,7 @@ class THcTrigDet : public THaDetector, public THcHitList {
Int_t
fNumAdc
;
Int_t
fNumAdc
;
Int_t
fNumTdc
;
Int_t
fNumTdc
;
Double_t
fAdcTdcOffset
;
Double_t
fTdcOffset
;
Double_t
fTdcOffset
;
Double_t
fTdcChanperNS
;
Double_t
fTdcChanperNS
;
...
...
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