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
1e5a7655
Commit
1e5a7655
authored
10 years ago
by
Mark Jones
Committed by
Stephen A. Wood
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Modify THcDC.cxx to skip pedestal events in Decode.
parent
3e6f4329
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/THcDC.cxx
+27
-25
27 additions, 25 deletions
src/THcDC.cxx
with
27 additions
and
25 deletions
src/THcDC.cxx
+
27
−
25
View file @
1e5a7655
...
@@ -14,6 +14,7 @@
...
@@ -14,6 +14,7 @@
#include
"THaDetMap.h"
#include
"THaDetMap.h"
#include
"THcDetectorMap.h"
#include
"THcDetectorMap.h"
#include
"THcGlobals.h"
#include
"THcGlobals.h"
#include
"THaCutList.h"
#include
"THcParmList.h"
#include
"THcParmList.h"
#include
"THcDCTrack.h"
#include
"THcDCTrack.h"
#include
"VarDef.h"
#include
"VarDef.h"
...
@@ -445,35 +446,36 @@ Int_t THcDC::Decode( const THaEvData& evdata )
...
@@ -445,35 +446,36 @@ Int_t THcDC::Decode( const THaEvData& evdata )
// Get the Hall C style hitlist (fRawHitList) for this event
// Get the Hall C style hitlist (fRawHitList) for this event
fNhits
=
DecodeToHitList
(
evdata
);
fNhits
=
DecodeToHitList
(
evdata
);
// Let each plane get its hits
if
(
!
gHaCuts
->
Result
(
"Pedestal_event"
))
{
Int_t
nexthit
=
0
;
// Let each plane get its hits
for
(
Int_t
ip
=
0
;
ip
<
fNPlanes
;
ip
++
)
{
Int_t
nexthit
=
0
;
nexthit
=
fPlanes
[
ip
]
->
ProcessHits
(
fRawHitList
,
nexthit
);
for
(
Int_t
ip
=
0
;
ip
<
fNPlanes
;
ip
++
)
{
fN_True_RawHits
+=
fPlanes
[
ip
]
->
GetNRawhits
();
nexthit
=
fPlanes
[
ip
]
->
ProcessHits
(
fRawHitList
,
nexthit
);
fN_True_RawHits
+=
fPlanes
[
ip
]
->
GetNRawhits
();
}
}
// Let each chamber get its hits
// Let each chamber get its hits
for
(
Int_t
ic
=
0
;
ic
<
fNChambers
;
ic
++
)
{
for
(
Int_t
ic
=
0
;
ic
<
fNChambers
;
ic
++
)
{
fChambers
[
ic
]
->
ProcessHits
();
fChambers
[
ic
]
->
ProcessHits
();
fNthits
+=
fChambers
[
ic
]
->
GetNHits
();
fNthits
+=
fChambers
[
ic
]
->
GetNHits
();
}
}
// fRawHitList is TClones array of THcRawDCHit objects
// fRawHitList is TClones array of THcRawDCHit objects
Int_t
counter
=
0
;
Int_t
counter
=
0
;
if
(
fdebugprintrawdc
)
{
if
(
fdebugprintrawdc
)
{
cout
<<
" RAW_TOT_HITS = "
<<
fNRawHits
<<
endl
;
cout
<<
" RAW_TOT_HITS = "
<<
fNRawHits
<<
endl
;
cout
<<
" Hit # "
<<
"Plane "
<<
" Wire "
<<
" Raw TDC "
<<
endl
;
cout
<<
" Hit # "
<<
"Plane "
<<
" Wire "
<<
" Raw TDC "
<<
endl
;
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
);
for
(
Int_t
imhit
=
0
;
imhit
<
hit
->
fNHits
;
imhit
++
)
{
for
(
Int_t
imhit
=
0
;
imhit
<
hit
->
fNHits
;
imhit
++
)
{
counter
++
;
counter
++
;
cout
<<
counter
<<
" "
<<
hit
->
fPlane
<<
" "
<<
hit
->
fCounter
<<
" "
<<
hit
->
fTDC
[
imhit
]
<<
endl
;
cout
<<
counter
<<
" "
<<
hit
->
fPlane
<<
" "
<<
hit
->
fCounter
<<
" "
<<
hit
->
fTDC
[
imhit
]
<<
endl
;
}
}
}
cout
<<
endl
;
}
Eff
();
// Accumlate statistics
}
}
cout
<<
endl
;
}
Eff
();
// Accumlate statistics
return
fNhits
;
return
fNhits
;
}
}
...
...
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