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
7dd84d8f
Commit
7dd84d8f
authored
8 years ago
by
Stephen A. Wood
Browse files
Options
Downloads
Patches
Plain Diff
Drift chamber - use reftime corrected time.
parent
7ae79877
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/THcDriftChamberPlane.cxx
+12
-19
12 additions, 19 deletions
src/THcDriftChamberPlane.cxx
with
12 additions
and
19 deletions
src/THcDriftChamberPlane.cxx
+
12
−
19
View file @
7dd84d8f
...
...
@@ -311,31 +311,24 @@ Int_t THcDriftChamberPlane::ProcessHits(TClonesArray* rawhits, Int_t nexthit)
}
Int_t
wireNum
=
hit
->
fCounter
;
THcDCWire
*
wire
=
GetWire
(
wireNum
);
Int_t
wire_last
=
-
1
;
Int_t
reftime
=
hit
->
GetReference
(
0
);
// Int_t reftime = hit->GetReference(0);
for
(
UInt_t
mhit
=
0
;
mhit
<
hit
->
fNHits
;
mhit
++
)
{
fNRawhits
++
;
/* Sort into early, late and ontime */
Int_t
rawtdc
=
hit
->
Get
Raw
Data
(
0
,
mhit
);
if
(
(
rawtdc
-
reftime
)
<
fTdcWinMin
)
{
Int_t
rawtdc
=
hit
->
GetData
(
0
,
mhit
);
// Get the ref time subtracted time
if
(
rawtdc
<
fTdcWinMin
)
{
// Increment early counter (Actually late because TDC is backward)
}
else
if
(
(
rawtdc
-
reftime
)
>
fTdcWinMax
)
{
}
else
if
(
rawtdc
>
fTdcWinMax
)
{
// Increment late count
}
else
{
// A good hit
if
(
wire_last
==
wireNum
)
{
// Increment extra hit counter
// Are we choosing the correct hit in the case of multiple hits?
// Are we choose the same hit that ENGINE chooses?
// cout << "Extra hit " << fPlaneNum << " " << wireNum << " " << rawtdc << endl;
}
else
{
Double_t
time
=
-
StartTime
// (comes from h_trans_scin
-
(
rawtdc
-
reftime
)
*
fNSperChan
+
fPlaneTimeZero
;
// How do we get this start time from the hodoscope to here
// (or at least have it ready by coarse process)
new
(
(
*
fHits
)[
nextHit
++
]
)
THcDCHit
(
wire
,
rawtdc
,
time
,
this
);
}
wire_last
=
wireNum
;
Double_t
time
=
-
StartTime
// (comes from h_trans_scin
-
rawtdc
*
fNSperChan
+
fPlaneTimeZero
;
// fNSperChan > 0 for 1877
// < 0 for Caen1190.
// - (rawtdc-reftime)*fNSperChan + fPlaneTimeZero;
// How do we get this start time from the hodoscope to here
// (or at least have it ready by coarse process)
new
(
(
*
fHits
)[
nextHit
++
]
)
THcDCHit
(
wire
,
rawtdc
,
time
,
this
);
break
;
// Take just the first hit in the time window
}
}
ihit
++
;
...
...
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