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
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Whitney Armstrong
hcana
Commits
8c0f9e53
Commit
8c0f9e53
authored
7 years ago
by
Stephen A. Wood
Committed by
Stephen Wood
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add a method to opt out of time slippage correction
parent
8a26c04d
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
+6
-3
6 additions, 3 deletions
src/THcHitList.cxx
src/THcHitList.h
+2
-0
2 additions, 0 deletions
src/THcHitList.h
with
8 additions
and
3 deletions
src/THcHitList.cxx
+
6
−
3
View file @
8c0f9e53
...
...
@@ -21,7 +21,7 @@
using
namespace
std
;
#define SUPPRESSMISSINGADCREFTIMEMESSAGES 1
THcHitList
::
THcHitList
()
:
fMap
(
0
),
fTISlot
(
0
)
THcHitList
::
THcHitList
()
:
fMap
(
0
),
fTISlot
(
0
)
,
fDisableSlipCorrection
(
kFALSE
)
{
/// Normal constructor.
...
...
@@ -167,6 +167,8 @@ void THcHitList::InitHitList(THaDetMap* detmap,
fNTDCRef_miss
=
0
;
fNADCRef_miss
=
0
;
// DisableSlipCorrection();
}
/**
...
...
@@ -213,9 +215,10 @@ Int_t THcHitList::DecodeToHitList( const THaEvData& evdata, Bool_t suppresswarni
}
}
}
if
(
fDisableSlipCorrection
)
fTISlot
=
-
1
;
Int_t
titime
=
0
;
if
(
fTISlot
!=
0
)
{
if
(
fTISlot
>
0
)
{
#define FUDGE 7
titime
=
evdata
.
GetData
(
fTICrate
,
fTISlot
,
2
,
0
)
-
FUDGE
;
// Need to get the FADC time for all modules in this crate
...
...
@@ -487,7 +490,7 @@ Int_t THcHitList::DecodeToHitList( const THaEvData& evdata, Bool_t suppresswarni
}
}
#if 1
if
(
fTISlot
)
{
if
(
fTISlot
>
0
)
{
// cout << "TI ROC: " << fTICrate << " TI Time: " << titime << endl;
map
<
Int_t
,
Int_t
>::
iterator
it
;
for
(
it
=
fTrigTimeShiftMap
.
begin
();
it
!=
fTrigTimeShiftMap
.
end
();
it
++
)
{
...
...
This diff is collapsed.
Click to expand it.
src/THcHitList.h
+
2
−
0
View file @
8c0f9e53
...
...
@@ -40,6 +40,7 @@ public:
TClonesArray
*
GetHitList
()
const
{
return
fRawHitList
;
}
void
CreateMissReportParms
(
const
char
*
prefix
);
void
MissReport
(
const
char
*
name
);
void
DisableSlipCorrection
()
{
fDisableSlipCorrection
=
kTRUE
;}
UInt_t
fNRawHits
;
Int_t
fNMaxRawHits
;
...
...
@@ -82,6 +83,7 @@ protected:
Decoder
::
THaCrateMap
*
fMap
;
/* The Crate map */
Int_t
fTISlot
;
Int_t
fTICrate
;
Double_t
fDisableSlipCorrection
;
std
::
map
<
Int_t
,
Int_t
>
fTrigTimeShiftMap
;
std
::
map
<
Int_t
,
Decoder
::
Fadc250Module
*>
fFADCSlotMap
;
...
...
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