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
9305eea2
Commit
9305eea2
authored
11 years ago
by
Stephen A. Wood
Browse files
Options
Downloads
Patches
Plain Diff
Copy DC tracks into the podd THaTrack list. Add H.tr.* to root file.
parent
33a2b4f4
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
examples/output.def
+1
-0
1 addition, 0 deletions
examples/output.def
src/THcDC.cxx
+21
-2
21 additions, 2 deletions
src/THcDC.cxx
src/THcDCTrack.h
+1
-0
1 addition, 0 deletions
src/THcDCTrack.h
with
23 additions
and
2 deletions
examples/output.def
+
1
−
0
View file @
9305eea2
...
...
@@ -4,6 +4,7 @@ block H.dc.*
block H.hod.*
block H.cal.*
block H.aero.*
block H.tr.*
block g.evtyp
# TDC hits per paddle
...
...
This diff is collapsed.
Click to expand it.
src/THcDC.cxx
+
21
−
2
View file @
9305eea2
...
...
@@ -459,7 +459,7 @@ Int_t THcDC::ApplyCorrections( void )
}
//_____________________________________________________________________________
Int_t
THcDC
::
CoarseTrack
(
TClonesArray
&
/*
tracks
*/
)
Int_t
THcDC
::
CoarseTrack
(
TClonesArray
&
tracks
)
{
// Calculation of coordinates of particle track cross point with scint
// plane in the detector coordinate system. For this, parameters of track
...
...
@@ -475,7 +475,26 @@ Int_t THcDC::CoarseTrack( TClonesArray& /* tracks */ )
}
// Now link the stubs between chambers
LinkStubs
();
if
(
fNDCTracks
>
0
)
TrackFit
();
if
(
fNDCTracks
>
0
)
{
TrackFit
();
// Copy tracks into podd tracks list
for
(
Int_t
itrack
=
0
;
itrack
<
fNDCTracks
;
itrack
++
)
{
THaTrack
*
theTrack
=
NULL
;
theTrack
=
AddTrack
(
tracks
,
0.0
,
0.0
,
0.0
,
0.0
);
// Leaving off trackID
// Should we add stubs with AddCluster?
THcDCTrack
*
tr
=
static_cast
<
THcDCTrack
*>
(
fDCTracks
->
At
(
itrack
));
theTrack
->
SetD
(
tr
->
GetX
(),
tr
->
GetY
(),
tr
->
GetXP
(),
tr
->
GetYP
());
theTrack
->
SetFlag
((
UInt_t
)
0
);
Int_t
nhits
=
tr
->
GetNHits
();
// Need to look at how engine does chi2 and track selection. Reduced?
theTrack
->
SetChi2
(
tr
->
GetChisq
(),
nhits
-
4
);
// Nconstraints - Nparameters
// CalcFocalPlaneCoords. Aren't our tracks already in focal plane coords
// We should have some kind of track ID so that the THaTrack can be
// associate back with the DC track
}
}
// Check for internal TrackFit errors
// Histogram the focal plane tracks
// Histograms made in h_fill_dc_fp_hist
...
...
This diff is collapsed.
Click to expand it.
src/THcDCTrack.h
+
1
−
0
View file @
9305eea2
...
...
@@ -40,6 +40,7 @@ public:
Double_t
GetY
()
const
{
return
fY_fp
;}
Double_t
GetXP
()
const
{
return
fXp_fp
;}
Double_t
GetYP
()
const
{
return
fYp_fp
;}
Double_t
GetChisq
()
const
{
return
fChi2_fp
;}
void
SetNFree
(
Int_t
nfree
)
{
fNfree
=
nfree
;}
void
SetCoord
(
Int_t
ip
,
Double_t
coord
)
{
fCoords
[
ip
]
=
coord
;}
void
SetResidual
(
Int_t
ip
,
Double_t
coord
)
{
fResiduals
[
ip
]
=
coord
;}
...
...
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