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
f1a64cc1
Commit
f1a64cc1
authored
5 years ago
by
Sylvester Joosten
Browse files
Options
Downloads
Patches
Plain Diff
Fixed typo
parent
52cf7ae4
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/THcHelicity.cxx
+1
-1
1 addition, 1 deletion
src/THcHelicity.cxx
src/THcHelicityScaler.h
+61
-64
61 additions, 64 deletions
src/THcHelicityScaler.h
with
62 additions
and
65 deletions
src/THcHelicity.cxx
+
1
−
1
View file @
f1a64cc1
...
...
@@ -620,7 +620,7 @@ void THcHelicity::LoadHelicity(Int_t reportedhelicity, Int_t cyclecount, Int_t m
_logger
->
info
(
"Seed Found {} at cycle {} with first cycle {}"
,
bitset
<
32
>
(
fRingSeed_reported
),
cyclecount
,
fFirstCycle
);
if
(
fglHelicityScaler
)
{
_logger
->
info
(
"Scaler Seed {}"
,
bitset
<
32
>
(
fScalerSeed
)
<<
endl
;
_logger
->
info
(
"Scaler Seed {}"
,
bitset
<
32
>
(
fScalerSeed
)
)
;
}
Int_t
backseed
=
GetSeed30
(
fRingSeed_reported
);
_logger
->
info
(
"Seed at cycle {} should be {x}"
,
fFirstCycle
,
backseed
);
...
...
This diff is collapsed.
Click to expand it.
src/THcHelicityScaler.h
+
61
−
64
View file @
f1a64cc1
...
...
@@ -8,81 +8,78 @@
//
/////////////////////////////////////////////////////////////////////
#include
"THaEvtTypeHandler.h"
#include
"Decoder.h"
#include
<string>
#include
<vector>
#include
<algorithm>
#include
<set>
#include
"TTree.h"
#include
"THaEvtTypeHandler.h"
#include
"TString.h"
#include
"TTree.h"
#include
<algorithm>
#include
<cstring>
#include
<set>
#include
<string>
#include
<vector>
class
THcHelicity
;
class
THcHelicityScaler
:
public
THaEvtTypeHandler
{
public:
THcHelicityScaler
(
const
char
*
,
const
char
*
);
virtual
~
THcHelicityScaler
();
Int_t
Analyze
(
THaEvData
*
evdata
);
Int_t
AnalyzeBuffer
(
UInt_t
*
rdata
,
Bool_t
onlysync
);
Int_t
AnalyzeHelicityScaler
(
UInt_t
*
p
);
virtual
EStatus
Init
(
const
TDatime
&
run_time
);
virtual
Int_t
ReadDatabase
(
const
TDatime
&
date
);
virtual
Int_t
End
(
THaRunBase
*
r
=
0
);
virtual
void
SetUseFirstEvent
(
Bool_t
b
=
kFALSE
)
{
fUseFirstEvent
=
b
;}
virtual
void
SetDelayedType
(
int
evtype
);
virtual
void
SetROC
(
Int_t
roc
)
{
fROC
=
roc
;}
virtual
void
SetBankID
(
Int_t
bankid
)
{
fBankID
=
bankid
;}
virtual
void
SetHelicityDetector
(
THcHelicity
*
f
)
{
fglHelicityDetector
=
f
;}
virtual
Int_t
GetNevents
()
{
return
fNevents
;}
virtual
Int_t
GetNcycles
()
{
return
fNcycles
;}
virtual
Int_t
GetEvNum
()
{
return
evNumber
;}
virtual
Int_t
*
GetHelicityHistoryP
()
{
return
fHelicityHistory
;}
THcHelicityScaler
(
const
char
*
,
const
char
*
);
virtual
~
THcHelicityScaler
();
Int_t
Analyze
(
THaEvData
*
evdata
);
Int_t
AnalyzeBuffer
(
UInt_t
*
rdata
,
Bool_t
onlysync
);
Int_t
AnalyzeHelicityScaler
(
UInt_t
*
p
);
virtual
EStatus
Init
(
const
TDatime
&
run_time
);
virtual
Int_t
ReadDatabase
(
const
TDatime
&
date
);
virtual
Int_t
End
(
THaRunBase
*
r
=
0
);
virtual
void
SetUseFirstEvent
(
Bool_t
b
=
kFALSE
)
{
fUseFirstEvent
=
b
;
}
virtual
void
SetDelayedType
(
int
evtype
);
virtual
void
SetROC
(
Int_t
roc
)
{
fROC
=
roc
;
}
virtual
void
SetBankID
(
Int_t
bankid
)
{
fBankID
=
bankid
;
}
virtual
void
SetHelicityDetector
(
THcHelicity
*
f
)
{
fglHelicityDetector
=
f
;
}
virtual
Int_t
GetNevents
()
{
return
fNevents
;
}
virtual
Int_t
GetNcycles
()
{
return
fNcycles
;
}
virtual
Int_t
GetEvNum
()
{
return
evNumber
;
}
virtual
Int_t
*
GetHelicityHistoryP
()
{
return
fHelicityHistory
;
}
private
:
static
size_t
FindNoCase
(
const
std
::
string
&
sdata
,
const
std
::
string
&
skey
);
Int_t
fNumBCMs
;
Double_t
*
fBCM_Gain
;
Double_t
*
fBCM_Offset
;
Double_t
*
fBCM_delta_charge
;
Int_t
fROC
;
UInt_t
fBankID
;
// Helicity Scaler variables
Int_t
fNevents
;
/* # of helicity scaler reads in last event */
Int_t
fNcycles
;
Int_t
fHelicityHistory
[
200
];
//
Bool_t
fUseFirstEvent
;
Bool_t
fOnlySyncEvents
;
Bool_t
fOnlyBanks
;
Int_t
fDelayedType
;
Int_t
fClockChan
;
UInt_t
fLastClock
;
Int_t
fClockOverflows
;
std
::
vector
<
UInt_t
*>
fDelayedEvents
;
std
::
set
<
UInt_t
>
fRocSet
;
THcHelicityScaler
(
const
THcHelicityScaler
&
fh
);
THcHelicityScaler
&
operator
=
(
const
THcHelicityScaler
&
fh
);
UInt_t
evcount
;
Double_t
evcountR
;
UInt_t
evNumber
;
Int_t
ifound
;
THcHelicity
*
fglHelicityDetector
;
ClassDef
(
THcHelicityScaler
,
0
)
// Scaler Event handler
static
size_t
FindNoCase
(
const
std
::
string
&
sdata
,
const
std
::
string
&
skey
);
Int_t
fNumBCMs
;
Double_t
*
fBCM_Gain
;
Double_t
*
fBCM_Offset
;
Double_t
*
fBCM_delta_charge
;
Int_t
fROC
;
UInt_t
fBankID
;
// Helicity Scaler variables
Int_t
fNevents
;
/* # of helicity scaler reads in last event */
Int_t
fNcycles
;
Int_t
fHelicityHistory
[
200
];
//
Bool_t
fUseFirstEvent
;
Bool_t
fOnlySyncEvents
;
Bool_t
fOnlyBanks
;
Int_t
fDelayedType
;
Int_t
fClockChan
;
UInt_t
fLastClock
;
Int_t
fClockOverflows
;
std
::
vector
<
UInt_t
*>
fDelayedEvents
;
std
::
set
<
UInt_t
>
fRocSet
;
THcHelicityScaler
(
const
THcHelicityScaler
&
fh
);
THcHelicityScaler
&
operator
=
(
const
THcHelicityScaler
&
fh
);
UInt_t
evcount
;
Double_t
evcountR
;
UInt_t
evNumber
;
Int_t
ifound
;
THcHelicity
*
fglHelicityDetector
;
ClassDef
(
THcHelicityScaler
,
0
)
// Scaler Event handler
};
#endif
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