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
de77703f
Commit
de77703f
authored
13 years ago
by
Stephen A. Wood
Browse files
Options
Downloads
Patches
Plain Diff
Print out the hit list after DecodeToHitList to illustrate how to
get the hits.
parent
eb7d8940
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/THcHodoscope.cxx
+7
-0
7 additions, 0 deletions
src/THcHodoscope.cxx
src/THcHodoscope.h
+1
-0
1 addition, 0 deletions
src/THcHodoscope.h
with
8 additions
and
0 deletions
src/THcHodoscope.cxx
+
7
−
0
View file @
de77703f
...
@@ -276,6 +276,13 @@ Int_t THcHodoscope::Decode( const THaEvData& evdata )
...
@@ -276,6 +276,13 @@ Int_t THcHodoscope::Decode( const THaEvData& evdata )
// Get the Hall C style hitlist (fRawHitList) for this event
// Get the Hall C style hitlist (fRawHitList) for this event
Int_t
nhits
=
THcHitList
::
DecodeToHitList
(
evdata
);
Int_t
nhits
=
THcHitList
::
DecodeToHitList
(
evdata
);
// fRawHitList is TClones array of THcHodoscopeHit objects
for
(
Int_t
ihit
=
0
;
ihit
<
fNRawHits
;
ihit
++
)
{
THcHodoscopeHit
*
hit
=
(
THcHodoscopeHit
*
)
fRawHitList
->
At
(
ihit
);
cout
<<
ihit
<<
": "
<<
hit
->
fADC_pos
<<
" "
<<
hit
->
fADC_neg
<<
" "
<<
hit
->
fTDC_pos
<<
" "
<<
hit
->
fTDC_pos
<<
endl
;
}
return
nhits
;
return
nhits
;
}
}
...
...
This diff is collapsed.
Click to expand it.
src/THcHodoscope.h
+
1
−
0
View file @
de77703f
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
#include
"TClonesArray.h"
#include
"TClonesArray.h"
#include
"THaNonTrackingDetector.h"
#include
"THaNonTrackingDetector.h"
#include
"THcHitList.h"
#include
"THcHitList.h"
#include
"THcHodoscopeHit.h"
class
THaScCalib
;
class
THaScCalib
;
...
...
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