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
232d3c55
Commit
232d3c55
authored
11 years ago
by
Mark Jones
Browse files
Options
Downloads
Patches
Plain Diff
1) Add flag fDebugDC if set=1 in THcDC::Setup will write out info
parent
3978fc49
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/THcDC.cxx
+8
-3
8 additions, 3 deletions
src/THcDC.cxx
with
8 additions
and
3 deletions
src/THcDC.cxx
+
8
−
3
View file @
232d3c55
...
@@ -126,6 +126,7 @@ void THcDC::Setup(const char* name, const char* description)
...
@@ -126,6 +126,7 @@ void THcDC::Setup(const char* name, const char* description)
}
}
fPlanes
.
push_back
(
newplane
);
fPlanes
.
push_back
(
newplane
);
newplane
->
SetDebug
(
fDebug
);
newplane
->
SetDebug
(
fDebug
);
fDebugDC
=
0
;
cout
<<
"Created Drift Chamber Plane "
<<
fPlaneNames
[
i
]
<<
", "
<<
desc
<<
endl
;
cout
<<
"Created Drift Chamber Plane "
<<
fPlaneNames
[
i
]
<<
", "
<<
desc
<<
endl
;
}
}
...
@@ -399,7 +400,8 @@ Int_t THcDC::Decode( const THaEvData& evdata )
...
@@ -399,7 +400,8 @@ Int_t THcDC::Decode( const THaEvData& evdata )
{
{
ClearEvent
();
ClearEvent
();
Int_t
num_event
=
evdata
.
GetEvNum
();
if
(
fDebugDC
)
cout
<<
" event num = "
<<
num_event
<<
endl
;
// Get the Hall C style hitlist (fRawHitList) for this event
// Get the Hall C style hitlist (fRawHitList) for this event
fNhits
=
THcHitList
::
DecodeToHitList
(
evdata
);
fNhits
=
THcHitList
::
DecodeToHitList
(
evdata
);
...
@@ -447,7 +449,6 @@ Int_t THcDC::CoarseTrack( TClonesArray& /* tracks */ )
...
@@ -447,7 +449,6 @@ Int_t THcDC::CoarseTrack( TClonesArray& /* tracks */ )
//
//
// static const Double_t sqrt2 = TMath::Sqrt(2.);
// static const Double_t sqrt2 = TMath::Sqrt(2.);
for
(
Int_t
i
=
0
;
i
<
fNChambers
;
i
++
)
{
for
(
Int_t
i
=
0
;
i
<
fNChambers
;
i
++
)
{
fChambers
[
i
]
->
FindSpacePoints
();
fChambers
[
i
]
->
FindSpacePoints
();
fChambers
[
i
]
->
CorrectHitTimes
();
fChambers
[
i
]
->
CorrectHitTimes
();
fChambers
[
i
]
->
LeftRight
();
fChambers
[
i
]
->
LeftRight
();
...
@@ -500,18 +501,20 @@ void THcDC::LinkStubs()
...
@@ -500,18 +501,20 @@ void THcDC::LinkStubs()
Int_t
nchamber
=
fChambers
[
ich
]
->
GetChamberNum
();
Int_t
nchamber
=
fChambers
[
ich
]
->
GetChamberNum
();
TClonesArray
*
spacepointarray
=
fChambers
[
ich
]
->
GetSpacePointsP
();
TClonesArray
*
spacepointarray
=
fChambers
[
ich
]
->
GetSpacePointsP
();
for
(
Int_t
isp
=
0
;
isp
<
fChambers
[
ich
]
->
GetNSpacePoints
();
isp
++
)
{
for
(
Int_t
isp
=
0
;
isp
<
fChambers
[
ich
]
->
GetNSpacePoints
();
isp
++
)
{
if
(
fDebugDC
)
cout
<<
" Chamber = "
<<
nchamber
<<
" number of space pts = "
<<
fNSp
<<
endl
;
fSp
.
push_back
(
static_cast
<
THcSpacePoint
*>
(
spacepointarray
->
At
(
isp
)));
fSp
.
push_back
(
static_cast
<
THcSpacePoint
*>
(
spacepointarray
->
At
(
isp
)));
fSp
[
fNSp
]
->
fNChamber
=
nchamber
;
fSp
[
fNSp
]
->
fNChamber
=
nchamber
;
fNSp
++
;
fNSp
++
;
}
}
}
}
// fDebugDC=0;
Int_t
ntracks_fp
=
0
;
// Number of Focal Plane tracks found
Int_t
ntracks_fp
=
0
;
// Number of Focal Plane tracks found
Double_t
stubminx
=
999999
;
Double_t
stubminx
=
999999
;
Double_t
stubminy
=
999999
;
Double_t
stubminy
=
999999
;
Double_t
stubminxp
=
999999
;
Double_t
stubminxp
=
999999
;
Double_t
stubminyp
=
999999
;
Double_t
stubminyp
=
999999
;
Int_t
stub_tracks
[
MAXTRACKS
];
Int_t
stub_tracks
[
MAXTRACKS
];
if
(
fDebugDC
)
cout
<<
" single stub , fsnp"
<<
fSingleStub
<<
fNSp
<<
endl
;
if
(
!
fSingleStub
)
{
if
(
!
fSingleStub
)
{
for
(
Int_t
isp1
=
0
;
isp1
<
fNSp
-
1
;
isp1
++
)
{
for
(
Int_t
isp1
=
0
;
isp1
<
fNSp
-
1
;
isp1
++
)
{
Int_t
sptracks
=
0
;
Int_t
sptracks
=
0
;
...
@@ -552,6 +555,7 @@ void THcDC::LinkStubs()
...
@@ -552,6 +555,7 @@ void THcDC::LinkStubs()
&&
(
TMath
::
Abs
(
dposxp
)
<
fXptTrCriterion
)
&&
(
TMath
::
Abs
(
dposxp
)
<
fXptTrCriterion
)
&&
(
TMath
::
Abs
(
dposyp
)
<
fYptTrCriterion
))
{
&&
(
TMath
::
Abs
(
dposyp
)
<
fYptTrCriterion
))
{
if
(
newtrack
)
{
if
(
newtrack
)
{
if
(
fDebugDC
)
cout
<<
" new track"
<<
endl
;
assert
(
sptracks
==
0
);
assert
(
sptracks
==
0
);
//stubtest=1; Used in h_track_tests.f
//stubtest=1; Used in h_track_tests.f
// Make a new track if there are not to many
// Make a new track if there are not to many
...
@@ -575,6 +579,7 @@ void THcDC::LinkStubs()
...
@@ -575,6 +579,7 @@ void THcDC::LinkStubs()
return
;
return
;
}
}
}
else
{
}
else
{
if
(
fDebugDC
)
cout
<<
" check if another space point in same chamber"
<<
endl
;
// Check if there is another space point in the same chamber
// Check if there is another space point in the same chamber
for
(
Int_t
itrack
=
0
;
itrack
<
sptracks
;
itrack
++
)
{
for
(
Int_t
itrack
=
0
;
itrack
<
sptracks
;
itrack
++
)
{
Int_t
track
=
stub_tracks
[
itrack
];
Int_t
track
=
stub_tracks
[
itrack
];
...
...
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