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
337c13b6
Commit
337c13b6
authored
7 years ago
by
Mark Jones
Committed by
Mark K Jones
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add chisquared/dof from golden track as leaf in DC
Add leaf dc.chisq which is the chisquared/dof of the golden track.
parent
a1ede17e
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/THcDC.cxx
+7
-5
7 additions, 5 deletions
src/THcDC.cxx
src/THcDC.h
+1
-0
1 addition, 0 deletions
src/THcDC.h
with
8 additions
and
5 deletions
src/THcDC.cxx
+
7
−
5
View file @
337c13b6
...
...
@@ -392,10 +392,11 @@ Int_t THcDC::DefineVariables( EMode mode )
{
"y"
,
"Y at focal plane"
,
"fDCTracks.THcDCTrack.GetY()"
},
{
"xp"
,
"XP at focal plane"
,
"fDCTracks.THcDCTrack.GetXP()"
},
{
"yp"
,
"YP at focal plane"
,
"fDCTracks.THcDCTrack.GetYP()"
},
{
"x_fp"
,
"X at focal plane (best chi2 track)"
,
"fX_fp_best"
},
{
"y_fp"
,
"Y at focal plane( best chi2 track)"
,
"fY_fp_best"
},
{
"xp_fp"
,
"XP at focal plane (best chi2 track)"
,
"fXp_fp_best"
},
{
"yp_fp"
,
"YP at focal plane(best chi2 track) "
,
"fYp_fp_best"
},
{
"x_fp"
,
"X at focal plane (golden track)"
,
"fX_fp_best"
},
{
"y_fp"
,
"Y at focal plane( golden track)"
,
"fY_fp_best"
},
{
"xp_fp"
,
"XP at focal plane (golden track)"
,
"fXp_fp_best"
},
{
"yp_fp"
,
"YP at focal plane(golden track) "
,
"fYp_fp_best"
},
{
"chisq"
,
"chisq/dof (golde track) "
,
"fChisq_best"
},
{
"residual"
,
"Residuals"
,
"fResiduals"
},
{
"wireHitDid"
,
"Wire did have matched track hit"
,
"fWire_hit_did"
},
{
"wireHitShould"
,
"Wire should have matched track hit"
,
"fWire_hit_should"
},
...
...
@@ -477,7 +478,7 @@ void THcDC::ClearEvent()
fY_fp_best
=-
10000.
;
fXp_fp_best
=-
10000.
;
fYp_fp_best
=-
10000.
;
fChisq_best
=
kBig
;
for
(
UInt_t
i
=
0
;
i
<
fNChambers
;
i
++
)
{
fChambers
[
i
]
->
Clear
();
}
...
...
@@ -616,6 +617,7 @@ void THcDC::SetFocalPlaneBestTrack(Int_t golden_track_index)
fY_fp_best
=
tr1
->
GetY
();
fXp_fp_best
=
tr1
->
GetXP
();
fYp_fp_best
=
tr1
->
GetYP
();
fChisq_best
=
tr1
->
GetChisq
();
for
(
UInt_t
ihit
=
0
;
ihit
<
UInt_t
(
tr1
->
GetNHits
());
ihit
++
)
{
THcDCHit
*
hit
=
tr1
->
GetHit
(
ihit
);
Int_t
plane
=
hit
->
GetPlaneNum
()
-
1
;
...
...
This diff is collapsed.
Click to expand it.
src/THcDC.h
+
1
−
0
View file @
337c13b6
...
...
@@ -169,6 +169,7 @@ protected:
Double_t
fY_fp_best
;
Double_t
fXp_fp_best
;
Double_t
fYp_fp_best
;
Double_t
fChisq_best
;
// For accumulating statitics for efficiencies
Int_t
fTotEvents
;
Int_t
*
fNChamHits
;
...
...
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