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
0f80433b
Commit
0f80433b
authored
7 years ago
by
Stephen A. Wood
Committed by
Mark K Jones
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add optional flag to THcHitList::DecodeToHitList to suppress warnings
parent
4ef36d4f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/THcHitList.cxx
+27
-19
27 additions, 19 deletions
src/THcHitList.cxx
src/THcHitList.h
+1
-1
1 addition, 1 deletion
src/THcHitList.h
with
28 additions
and
20 deletions
src/THcHitList.cxx
+
27
−
19
View file @
0f80433b
...
...
@@ -135,7 +135,7 @@ multiple signal types (e.g. ADC+, ADC-, TDC+, TDC-), or multiplehits for multihi
The hit list is sorted (by plane, counter) after filling.
*/
Int_t
THcHitList
::
DecodeToHitList
(
const
THaEvData
&
evdata
)
{
Int_t
THcHitList
::
DecodeToHitList
(
const
THaEvData
&
evdata
,
Bool_t
suppresswarnings
)
{
// cout << " Clearing TClonesArray " << endl;
fRawHitList
->
Clear
(
);
...
...
@@ -235,21 +235,25 @@ Int_t THcHitList::DecodeToHitList( const THaEvData& evdata ) {
Int_t
reftime
=
evdata
.
GetData
(
d
->
crate
,
d
->
slot
,
d
->
refchan
,
0
);
rawhit
->
SetReference
(
signal
,
reftime
);
}
else
{
cout
<<
"HitList(event="
<<
evdata
.
GetEvNum
()
<<
"): refchan "
<<
d
->
refchan
<<
" missing for ("
<<
d
->
crate
<<
", "
<<
d
->
slot
<<
", "
<<
chan
<<
")"
<<
endl
;
if
(
!
suppresswarnings
)
{
cout
<<
"HitList(event="
<<
evdata
.
GetEvNum
()
<<
"): refchan "
<<
d
->
refchan
<<
" missing for ("
<<
d
->
crate
<<
", "
<<
d
->
slot
<<
", "
<<
chan
<<
")"
<<
endl
;
}
}
}
else
{
if
(
d
->
refindex
>=
0
&&
d
->
refindex
<
fNRefIndex
)
{
if
(
fRefIndexMaps
[
d
->
refindex
].
hashit
)
{
rawhit
->
SetReference
(
signal
,
fRefIndexMaps
[
d
->
refindex
].
reftime
);
}
else
{
cout
<<
"HitList(event="
<<
evdata
.
GetEvNum
()
<<
"): refindex "
<<
d
->
refindex
<<
" ("
<<
fRefIndexMaps
[
d
->
refindex
].
crate
<<
", "
<<
fRefIndexMaps
[
d
->
refindex
].
slot
<<
", "
<<
fRefIndexMaps
[
d
->
refindex
].
channel
<<
")"
<<
" missing for ("
<<
d
->
crate
<<
", "
<<
d
->
slot
<<
", "
<<
chan
<<
")"
<<
endl
;
if
(
!
suppresswarnings
)
{
cout
<<
"HitList(event="
<<
evdata
.
GetEvNum
()
<<
"): refindex "
<<
d
->
refindex
<<
" ("
<<
fRefIndexMaps
[
d
->
refindex
].
crate
<<
", "
<<
fRefIndexMaps
[
d
->
refindex
].
slot
<<
", "
<<
fRefIndexMaps
[
d
->
refindex
].
channel
<<
")"
<<
" missing for ("
<<
d
->
crate
<<
", "
<<
d
->
slot
<<
", "
<<
chan
<<
")"
<<
endl
;
}
}
}
}
...
...
@@ -288,21 +292,25 @@ Int_t THcHitList::DecodeToHitList( const THaEvData& evdata ) {
Int_t
reftime
=
evdata
.
GetData
(
Decoder
::
kPulseTime
,
d
->
crate
,
d
->
slot
,
d
->
refchan
,
0
);
rawhit
->
SetReference
(
signal
,
reftime
);
}
else
{
cout
<<
"HitList(event="
<<
evdata
.
GetEvNum
()
<<
"): refchan "
<<
d
->
refchan
<<
" missing for ("
<<
d
->
crate
<<
", "
<<
d
->
slot
<<
", "
<<
chan
<<
")"
<<
endl
;
if
(
!
suppresswarnings
)
{
cout
<<
"HitList(event="
<<
evdata
.
GetEvNum
()
<<
"): refchan "
<<
d
->
refchan
<<
" missing for ("
<<
d
->
crate
<<
", "
<<
d
->
slot
<<
", "
<<
chan
<<
")"
<<
endl
;
}
}
}
else
{
if
(
d
->
refindex
>=
0
&&
d
->
refindex
<
fNRefIndex
)
{
if
(
fRefIndexMaps
[
d
->
refindex
].
hashit
)
{
rawhit
->
SetReference
(
signal
,
fRefIndexMaps
[
d
->
refindex
].
reftime
);
}
else
{
cout
<<
"HitList(event="
<<
evdata
.
GetEvNum
()
<<
"): refindex "
<<
d
->
refindex
<<
" ("
<<
fRefIndexMaps
[
d
->
refindex
].
crate
<<
", "
<<
fRefIndexMaps
[
d
->
refindex
].
slot
<<
", "
<<
fRefIndexMaps
[
d
->
refindex
].
channel
<<
")"
<<
" missing for ("
<<
d
->
crate
<<
", "
<<
d
->
slot
<<
", "
<<
chan
<<
")"
<<
endl
;
if
(
!
suppresswarnings
)
{
cout
<<
"HitList(event="
<<
evdata
.
GetEvNum
()
<<
"): refindex "
<<
d
->
refindex
<<
" ("
<<
fRefIndexMaps
[
d
->
refindex
].
crate
<<
", "
<<
fRefIndexMaps
[
d
->
refindex
].
slot
<<
", "
<<
fRefIndexMaps
[
d
->
refindex
].
channel
<<
")"
<<
" missing for ("
<<
d
->
crate
<<
", "
<<
d
->
slot
<<
", "
<<
chan
<<
")"
<<
endl
;
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
src/THcHitList.h
+
1
−
1
View file @
0f80433b
...
...
@@ -28,7 +28,7 @@ public:
THcHitList
();
virtual
Int_t
DecodeToHitList
(
const
THaEvData
&
);
virtual
Int_t
DecodeToHitList
(
const
THaEvData
&
,
Bool_t
suppress
=
kFALSE
);
void
InitHitList
(
THaDetMap
*
detmap
,
const
char
*
hitclass
,
Int_t
maxhits
);
...
...
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