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
b1cd290e
Commit
b1cd290e
authored
11 years ago
by
Mark Jones
Browse files
Options
Downloads
Patches
Plain Diff
Add fDebugDC in THcDC.h to flag when to write out debug statments.
Set fDebugDC in THcDC::ReadDatabase
parent
32eba5d0
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
+12
-12
12 additions, 12 deletions
src/THcDC.cxx
src/THcDC.h
+1
-1
1 addition, 1 deletion
src/THcDC.h
with
13 additions
and
13 deletions
src/THcDC.cxx
+
12
−
12
View file @
b1cd290e
...
@@ -293,14 +293,14 @@ Int_t THcDC::ReadDatabase( const TDatime& date )
...
@@ -293,14 +293,14 @@ Int_t THcDC::ReadDatabase( const TDatime& date )
{
0
}
{
0
}
};
};
gHcParms
->
LoadParmValues
((
DBRequest
*
)
&
list
,
prefix
);
gHcParms
->
LoadParmValues
((
DBRequest
*
)
&
list
,
prefix
);
fDebugDC
=
0
;
if
(
fNTracksMaxFP
<=
0
)
fNTracksMaxFP
=
10
;
if
(
fNTracksMaxFP
<=
0
)
fNTracksMaxFP
=
10
;
// if(fNTracksMaxFP > HNRACKS_MAX) fNTracksMaxFP = NHTRACKS_MAX;
// if(fNTracksMaxFP > HNRACKS_MAX) fNTracksMaxFP = NHTRACKS_MAX;
cout
<<
"Plane counts:"
;
if
(
fDebugDC
)
cout
<<
"Plane counts:"
;
for
(
Int_t
i
=
0
;
i
<
fNPlanes
;
i
++
)
{
for
(
Int_t
i
=
0
;
i
<
fNPlanes
;
i
++
)
{
cout
<<
" "
<<
fNWires
[
i
];
if
(
fDebugDC
)
cout
<<
" "
<<
fNWires
[
i
];
}
}
cout
<<
endl
;
if
(
fDebugDC
)
cout
<<
endl
;
fIsInit
=
true
;
fIsInit
=
true
;
...
@@ -417,14 +417,14 @@ Int_t THcDC::Decode( const THaEvData& evdata )
...
@@ -417,14 +417,14 @@ Int_t THcDC::Decode( const THaEvData& evdata )
// fRawHitList is TClones array of THcRawDCHit objects
// fRawHitList is TClones array of THcRawDCHit objects
for(Int_t ihit = 0; ihit < fNRawHits ; ihit++) {
for(Int_t ihit = 0; ihit < fNRawHits ; ihit++) {
THcRawDCHit* hit = (THcRawDCHit *) fRawHitList->At(ihit);
THcRawDCHit* hit = (THcRawDCHit *) fRawHitList->At(ihit);
// cout << ihit << " : " << hit->fPlane << ":" << hit->fCounter << " : "
//
if (fDebugDC)
cout << ihit << " : " << hit->fPlane << ":" << hit->fCounter << " : "
// << endl;
// << endl;
for(Int_t imhit = 0; imhit < hit->fNHits; imhit++) {
for(Int_t imhit = 0; imhit < hit->fNHits; imhit++) {
// cout << " " << imhit << " " << hit->fTDC[imhit]
//
if (fDebugDC)
cout << " " << imhit << " " << hit->fTDC[imhit]
// << endl;
// << endl;
}
}
}
}
// cout << endl;
//
if (fDebugDC)
cout << endl;
#endif
#endif
return
fNhits
;
return
fNhits
;
...
@@ -494,7 +494,7 @@ void THcDC::LinkStubs()
...
@@ -494,7 +494,7 @@ void THcDC::LinkStubs()
fSp
.
clear
();
fSp
.
clear
();
fSp
.
reserve
(
10
);
fSp
.
reserve
(
10
);
// Make a vector of pointers to the SpacePoints
// Make a vector of pointers to the SpacePoints
cout
<<
"Linking "
<<
fChambers
[
0
]
->
GetNSpacePoints
()
if
(
fDebugDC
)
cout
<<
"Linking "
<<
fChambers
[
0
]
->
GetNSpacePoints
()
<<
" and "
<<
fChambers
[
1
]
->
GetNSpacePoints
()
<<
" stubs"
<<
endl
;
<<
" and "
<<
fChambers
[
1
]
->
GetNSpacePoints
()
<<
" stubs"
<<
endl
;
for
(
Int_t
ich
=
0
;
ich
<
fNChambers
;
ich
++
)
{
for
(
Int_t
ich
=
0
;
ich
<
fNChambers
;
ich
++
)
{
Int_t
nchamber
=
fChambers
[
ich
]
->
GetChamberNum
();
Int_t
nchamber
=
fChambers
[
ich
]
->
GetChamberNum
();
...
@@ -569,7 +569,7 @@ void THcDC::LinkStubs()
...
@@ -569,7 +569,7 @@ void THcDC::LinkStubs()
// (But could replace a SP?)
// (But could replace a SP?)
ntracks_fp
++
;
ntracks_fp
++
;
}
else
{
}
else
{
cout
<<
"EPIC FAIL 1: Too many tracks found in THcDC::LinkStubs"
<<
endl
;
if
(
fDebugDC
)
cout
<<
"EPIC FAIL 1: Too many tracks found in THcDC::LinkStubs"
<<
endl
;
ntracks_fp
=
0
;
ntracks_fp
=
0
;
// Do something here to fail this event
// Do something here to fail this event
return
;
return
;
...
@@ -609,7 +609,7 @@ void THcDC::LinkStubs()
...
@@ -609,7 +609,7 @@ void THcDC::LinkStubs()
}
// End check for dup on copy
}
// End check for dup on copy
}
// End copy of track
}
// End copy of track
}
else
{
}
else
{
cout
<<
"EPIC FAIL 2: Too many tracks found in THcDC::LinkStubs"
<<
endl
;
if
(
fDebugDC
)
cout
<<
"EPIC FAIL 2: Too many tracks found in THcDC::LinkStubs"
<<
endl
;
ntracks_fp
=
0
;
ntracks_fp
=
0
;
// Do something here to fail this event
// Do something here to fail this event
return
;
// Max # of allowed tracks
return
;
// Max # of allowed tracks
...
@@ -630,7 +630,7 @@ void THcDC::LinkStubs()
...
@@ -630,7 +630,7 @@ void THcDC::LinkStubs()
fTrackSP
[
ntracks_fp
].
spID
[
0
]
=
isp
;
fTrackSP
[
ntracks_fp
].
spID
[
0
]
=
isp
;
ntracks_fp
++
;
ntracks_fp
++
;
}
else
{
}
else
{
cout
<<
"EPIC FAIL 3: Too many tracks found in THcDC::LinkStubs"
<<
endl
;
if
(
fDebugDC
)
cout
<<
"EPIC FAIL 3: Too many tracks found in THcDC::LinkStubs"
<<
endl
;
ntracks_fp
=
0
;
ntracks_fp
=
0
;
// Do something here to fail this event
// Do something here to fail this event
return
;
// Max # of allowed tracks
return
;
// Max # of allowed tracks
...
@@ -640,7 +640,7 @@ void THcDC::LinkStubs()
...
@@ -640,7 +640,7 @@ void THcDC::LinkStubs()
// Now list all hits on a track. What needs this
// Now list all hits on a track. What needs this
///
///
///
///
cout
<<
"Found "
<<
ntracks_fp
<<
" tracks"
<<
endl
;
if
(
fDebugDC
)
cout
<<
"Found "
<<
ntracks_fp
<<
" tracks"
<<
endl
;
}
}
ClassImp
(
THcDC
)
ClassImp
(
THcDC
)
...
...
This diff is collapsed.
Click to expand it.
src/THcDC.h
+
1
−
1
View file @
b1cd290e
...
@@ -72,7 +72,7 @@ public:
...
@@ -72,7 +72,7 @@ public:
THcDC
();
// for ROOT I/O
THcDC
();
// for ROOT I/O
protected
:
protected
:
Int_t
fDebugDC
;
// Calibration
// Calibration
// Per-event data
// Per-event data
...
...
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