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
b6587dad
Commit
b6587dad
authored
11 years ago
by
Mark Jones
Browse files
Options
Downloads
Patches
Plain Diff
Add fThetaCentralOffset, fOopCentralOffset, fPCentralOffset
Add fTheta_lab Do offsets in THcHallCSpectrometer::ReadDatabase
parent
49b5e3f8
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/THcHallCSpectrometer.cxx
+10
-1
10 additions, 1 deletion
src/THcHallCSpectrometer.cxx
src/THcHallCSpectrometer.h
+8
-4
8 additions, 4 deletions
src/THcHallCSpectrometer.h
with
18 additions
and
5 deletions
src/THcHallCSpectrometer.cxx
+
10
−
1
View file @
b6587dad
...
...
@@ -140,11 +140,20 @@ Int_t THcHallCSpectrometer::ReadDatabase( const TDatime& date )
{
"theta_offset"
,
&
fThetaOffset
,
kDouble
},
{
"phi_offset"
,
&
fPhiOffset
,
kDouble
},
{
"delta_offset"
,
&
fDeltaOffset
,
kDouble
},
{
"thetacentral_offset"
,
&
fThetaCentralOffset
,
kDouble
},
{
"_oopcentral_offset"
,
&
fOopCentralOffset
,
kDouble
},
{
"pcentral_offset"
,
&
fPCentralOffset
,
kDouble
},
{
"pcentral"
,
&
fPCentral
,
kDouble
},
{
"theta_lab"
,
&
fTheta_lab
,
kDouble
},
{
0
}
};
gHcParms
->
LoadParmValues
((
DBRequest
*
)
&
list
,
prefix
);
//
cout
<<
" fPcentral = "
<<
fPCentral
<<
" "
<<
fPCentralOffset
<<
endl
;
cout
<<
" fThate_lab = "
<<
fTheta_lab
<<
" "
<<
fThetaCentralOffset
<<
endl
;
fPCentral
=
fPCentral
*
(
1.
+
fPCentralOffset
/
100.
);
fTheta_lab
=
fTheta_lab
+
fThetaCentralOffset
*
(
180.
/
3.14159
);
//
ifstream
ifile
;
ifile
.
open
(
reconCoeffFilename
.
c_str
());
if
(
!
ifile
.
is_open
())
{
...
...
This diff is collapsed.
Click to expand it.
src/THcHallCSpectrometer.h
+
8
−
4
View file @
b6587dad
...
...
@@ -41,10 +41,14 @@ protected:
Double_t
fDetOffset_x
;
Double_t
fDetOffset_y
;
Double_t
fZTrueFocus
;
Double_t
fThetaOffset
;
Double_t
fPhiOffset
;
Double_t
fDeltaOffset
;
Double_t
fPCentral
;
Double_t
fThetaOffset
;
// Zero order term in yptar optics matrix (rad)
Double_t
fPhiOffset
;
// Zero order term in xptar optics matrix (rad)
Double_t
fDeltaOffset
;
// Zero order term in delta optics matrix (%)
Double_t
fThetaCentralOffset
;
// Offset of Central spectrometer angle (rad)
Double_t
fOopCentralOffset
;
//Offset of central out-of-plane angle (rad)
Double_t
fPCentralOffset
;
// Offset Central spectrometer momentum (%)
Double_t
fPCentral
;
// Central spectrometer momentum (GeV)
Double_t
fTheta_lab
;
// Central spectrometer angle (deg)
// THaScintillator *sc_ref; // calculate time track hits this plane
...
...
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