Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hcana
Manage
Activity
Members
Labels
Plan
Issues
6
Issue boards
Milestones
Wiki
Code
Merge requests
1
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
35470cd0
Commit
35470cd0
authored
6 years ago
by
Whitney Armstrong
Browse files
Options
Downloads
Plain Diff
Merge branch 'develop' into update
parents
89c5ff5c
eeae921b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/THcHelicityReader.cxx
+19
-8
19 additions, 8 deletions
src/THcHelicityReader.cxx
src/THcHelicityReader.h
+2
-0
2 additions, 0 deletions
src/THcHelicityReader.h
with
21 additions
and
8 deletions
src/THcHelicityReader.cxx
+
19
−
8
View file @
35470cd0
...
@@ -8,6 +8,8 @@
...
@@ -8,6 +8,8 @@
#include
"THcHelicityReader.h"
#include
"THcHelicityReader.h"
#include
"THaEvData.h"
#include
"THaEvData.h"
#include
"THcGlobals.h"
#include
"THcParmList.h"
#include
"TMath.h"
#include
"TMath.h"
#include
"TError.h"
#include
"TError.h"
#include
"VarDef.h"
#include
"VarDef.h"
...
@@ -59,6 +61,15 @@ Int_t THcHelicityReader::ReadDatabase( const char* /*dbfilename*/,
...
@@ -59,6 +61,15 @@ Int_t THcHelicityReader::ReadDatabase( const char* /*dbfilename*/,
SetROCinfo
(
kMPS
,
2
,
14
,
10
);
SetROCinfo
(
kMPS
,
2
,
14
,
10
);
SetROCinfo
(
kQrt
,
2
,
14
,
7
);
SetROCinfo
(
kQrt
,
2
,
14
,
7
);
SetROCinfo
(
kTime
,
2
,
21
,
2
);
SetROCinfo
(
kTime
,
2
,
21
,
2
);
fADCThreshold
=
8000
;
DBRequest
list
[]
=
{
{
"helicity_adcthreshold"
,
&
fADCThreshold
,
kInt
,
0
,
1
},
{
0
}
};
gHcParms
->
LoadParmValues
(
list
,
""
);
return
THaAnalysisObject
::
kOK
;
return
THaAnalysisObject
::
kOK
;
}
}
...
@@ -124,27 +135,27 @@ Int_t THcHelicityReader::ReadData( const THaEvData& evdata )
...
@@ -124,27 +135,27 @@ Int_t THcHelicityReader::ReadData( const THaEvData& evdata )
// Get the helicity control signals. These are from the pedestals
// Get the helicity control signals. These are from the pedestals
// acquired by FADC channels.
// acquired by FADC channels.
U
Int_t
helpraw
=
evdata
.
GetData
(
Decoder
::
kPulsePedestal
,
Int_t
helpraw
=
evdata
.
GetData
(
Decoder
::
kPulsePedestal
,
fROCinfo
[
kHel
].
roc
,
fROCinfo
[
kHel
].
roc
,
fROCinfo
[
kHel
].
slot
,
fROCinfo
[
kHel
].
slot
,
fROCinfo
[
kHel
].
index
,
0
);
fROCinfo
[
kHel
].
index
,
0
);
U
Int_t
helmraw
=
evdata
.
GetData
(
Decoder
::
kPulsePedestal
,
Int_t
helmraw
=
evdata
.
GetData
(
Decoder
::
kPulsePedestal
,
fROCinfo
[
kHelm
].
roc
,
fROCinfo
[
kHelm
].
roc
,
fROCinfo
[
kHelm
].
slot
,
fROCinfo
[
kHelm
].
slot
,
fROCinfo
[
kHelm
].
index
,
0
);
fROCinfo
[
kHelm
].
index
,
0
);
U
Int_t
mpsraw
=
evdata
.
GetData
(
Decoder
::
kPulsePedestal
,
Int_t
mpsraw
=
evdata
.
GetData
(
Decoder
::
kPulsePedestal
,
fROCinfo
[
kMPS
].
roc
,
fROCinfo
[
kMPS
].
roc
,
fROCinfo
[
kMPS
].
slot
,
fROCinfo
[
kMPS
].
slot
,
fROCinfo
[
kMPS
].
index
,
0
);
fROCinfo
[
kMPS
].
index
,
0
);
U
Int_t
qrtraw
=
evdata
.
GetData
(
Decoder
::
kPulsePedestal
,
Int_t
qrtraw
=
evdata
.
GetData
(
Decoder
::
kPulsePedestal
,
fROCinfo
[
kQrt
].
roc
,
fROCinfo
[
kQrt
].
roc
,
fROCinfo
[
kQrt
].
slot
,
fROCinfo
[
kQrt
].
slot
,
fROCinfo
[
kQrt
].
index
,
0
);
fROCinfo
[
kQrt
].
index
,
0
);
fIsQrt
=
qrtraw
>
1000
;
fIsQrt
=
qrtraw
>
fADCThreshold
;
fIsMPS
=
mpsraw
>
1000
;
fIsMPS
=
mpsraw
>
fADCThreshold
;
fIsHelp
=
helpraw
>
1000
;
fIsHelp
=
helpraw
>
fADCThreshold
;
fIsHelm
=
helmraw
>
1000
;
fIsHelm
=
helmraw
>
fADCThreshold
;
return
0
;
return
0
;
}
}
...
...
This diff is collapsed.
Click to expand it.
src/THcHelicityReader.h
+
2
−
0
View file @
35470cd0
...
@@ -52,6 +52,8 @@ protected:
...
@@ -52,6 +52,8 @@ protected:
Bool_t
fIsHelp
;
Bool_t
fIsHelp
;
Bool_t
fIsHelm
;
Bool_t
fIsHelm
;
Int_t
fADCThreshold
;
// Threshold for On/Off of helicity signals
ROCinfo
fROCinfo
[
kCount
];
ROCinfo
fROCinfo
[
kCount
];
Int_t
fQWEAKDebug
;
// Debug level
Int_t
fQWEAKDebug
;
// Debug level
...
...
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