Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hcana
Manage
Activity
Members
Labels
Plan
Issues
6
Issue boards
Milestones
Wiki
Code
Merge requests
1
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
45ec565a
Commit
45ec565a
authored
6 years ago
by
Whitney Armstrong
Browse files
Options
Downloads
Patches
Plain Diff
More logging.
parent
7a9f3f5c
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/THcHelicity.cxx
+14
-8
14 additions, 8 deletions
src/THcHelicity.cxx
with
14 additions
and
8 deletions
src/THcHelicity.cxx
+
14
−
8
View file @
45ec565a
...
@@ -327,8 +327,8 @@ Int_t THcHelicity::Decode( const THaEvData& evdata )
...
@@ -327,8 +327,8 @@ Int_t THcHelicity::Decode( const THaEvData& evdata )
}
}
}
else
{
}
else
{
if
(
fNCycle
-
fFirstCycle
>
4
)
{
// Not at start of run. Reset
if
(
fNCycle
-
fFirstCycle
>
4
)
{
// Not at start of run. Reset
_logger
->
info
(
"Lost quartet sync at cycle {} - event {}"
,
fNCycle
,
evdata
.
GetEvNum
());
_logger
->
warn
(
"Lost quartet sync at cycle {} - event {}"
,
fNCycle
,
evdata
.
GetEvNum
());
_logger
->
info
(
"{} {} {} {}"
,
fQuartet
[
0
],
fQuartet
[
1
],
fQuartet
[
2
],
fQuartet
[
3
]);
_logger
->
warn
(
"{} {} {} {}"
,
fQuartet
[
0
],
fQuartet
[
1
],
fQuartet
[
2
],
fQuartet
[
3
]);
//cout << "Lost quartet sync at cycle " << fNCycle << " - event " << evdata.GetEvNum()
//cout << "Lost quartet sync at cycle " << fNCycle << " - event " << evdata.GetEvNum()
// << endl;
// << endl;
//cout << fQuartet[0] << " " << fQuartet[1] << " " << fQuartet[2] << " " << fQuartet[3]
//cout << fQuartet[0] << " " << fQuartet[1] << " " << fQuartet[2] << " " << fQuartet[3]
...
@@ -359,7 +359,8 @@ Int_t THcHelicity::Decode( const THaEvData& evdata )
...
@@ -359,7 +359,8 @@ Int_t THcHelicity::Decode( const THaEvData& evdata )
// Ignore until a MPS Is found
// Ignore until a MPS Is found
}
}
}
else
{
}
else
{
cout
<<
"Initializing"
<<
endl
;
//cout << "Initializing" << endl;
_logger
->
info
(
"Initializing Helicity"
);
fLastReportedHelicity
=
fReportedHelicity
;
fLastReportedHelicity
=
fReportedHelicity
;
fActualHelicity
=
kUnknown
;
fActualHelicity
=
kUnknown
;
fPredictedHelicity
=
kUnknown
;
fPredictedHelicity
=
kUnknown
;
...
@@ -417,7 +418,8 @@ void THcHelicity::LoadHelicity(Int_t reportedhelicity, Int_t cyclecount, Int_t m
...
@@ -417,7 +418,8 @@ void THcHelicity::LoadHelicity(Int_t reportedhelicity, Int_t cyclecount, Int_t m
if
(
quartetphase
==
0
)
{
// Start of a quad
if
(
quartetphase
==
0
)
{
// Start of a quad
if
(
fNBits
<
fMAXBIT
)
{
if
(
fNBits
<
fMAXBIT
)
{
if
(
fNBits
==
0
)
{
if
(
fNBits
==
0
)
{
cout
<<
"Start calibrating at cycle "
<<
cyclecount
<<
endl
;
_logger
->
info
(
"Start calibrating at cycle {}"
,
cyclecount
);
//cout << "Start calibrating at cycle " << cyclecount << endl;
fRingSeed_reported
=
0
;
fRingSeed_reported
=
0
;
}
}
if
(
fReportedHelicity
==
kPlus
)
{
if
(
fReportedHelicity
==
kPlus
)
{
...
@@ -430,9 +432,12 @@ void THcHelicity::LoadHelicity(Int_t reportedhelicity, Int_t cyclecount, Int_t m
...
@@ -430,9 +432,12 @@ void THcHelicity::LoadHelicity(Int_t reportedhelicity, Int_t cyclecount, Int_t m
fNBits
=
0
;
fNBits
=
0
;
fRingSeed_reported
=
0
;
fRingSeed_reported
=
0
;
}
else
if
(
fNBits
==
fMAXBIT
)
{
}
else
if
(
fNBits
==
fMAXBIT
)
{
cout
<<
"Seed Found "
<<
hex
<<
fRingSeed_reported
<<
dec
<<
" at cycle "
<<
cyclecount
<<
" with first cycle "
<<
fFirstCycle
<<
endl
;
_logger
->
info
(
"Seed Found {} at cycle {} with first cycle {}"
,
fRingSeed_reported
,
cyclecount
,
fFirstCycle
);
//cout << "Seed Found " << hex << fRingSeed_reported << dec << " at cycle " << cyclecount << " with first cycle " << fFirstCycle << endl;
Int_t
backseed
=
GetSeed30
(
fRingSeed_reported
);
Int_t
backseed
=
GetSeed30
(
fRingSeed_reported
);
cout
<<
"Seed at cycle "
<<
fFirstCycle
<<
" should be "
<<
hex
<<
backseed
<<
dec
<<
endl
;
_logger
->
info
(
"Seed at cycle {} should be {}"
,
fFirstCycle
,
backseed
);
//cout << "Seed at cycle " << fFirstCycle << " should be " << hex << backseed << dec << endl;
}
}
fActualHelicity
=
kUnknown
;
fActualHelicity
=
kUnknown
;
}
else
if
(
fNBits
>=
fMAXBIT
)
{
}
else
if
(
fNBits
>=
fMAXBIT
)
{
...
@@ -451,8 +456,9 @@ void THcHelicity::LoadHelicity(Int_t reportedhelicity, Int_t cyclecount, Int_t m
...
@@ -451,8 +456,9 @@ void THcHelicity::LoadHelicity(Int_t reportedhelicity, Int_t cyclecount, Int_t m
// if(fTITime/250000000.0 > 380.0) cout << fTITime/250000000.0 << " " << fNCycle << " " << hex <<
// if(fTITime/250000000.0 > 380.0) cout << fTITime/250000000.0 << " " << fNCycle << " " << hex <<
// fRingSeed_reported << " " << fRingSeed_actual << dec << endl;
// fRingSeed_reported << " " << fRingSeed_actual << dec << endl;
if
(
fReportedHelicity
!=
fPredictedHelicity
)
{
if
(
fReportedHelicity
!=
fPredictedHelicity
)
{
cout
<<
"Helicity prediction failed "
<<
fReportedHelicity
<<
" "
_logger
->
warn
(
"Helicity prediction failed {} {} {}"
,
fReportedHelicity
,
fPredictedHelicity
,
fActualHelicity
);
<<
fPredictedHelicity
<<
" "
<<
fActualHelicity
<<
endl
;
//cout << "Helicity prediction failed " << fReportedHelicity << " "
// << fPredictedHelicity << " " << fActualHelicity << endl;
fNBits
=
0
;
// Need to reaquire seed
fNBits
=
0
;
// Need to reaquire seed
fActualHelicity
=
kUnknown
;
fActualHelicity
=
kUnknown
;
fPredictedHelicity
=
kUnknown
;
fPredictedHelicity
=
kUnknown
;
...
...
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