Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Instrument Control
NomadSpecialModules
Commits
8805d652
Commit
8805d652
authored
Jan 04, 2017
by
Jacob Lamblin
Browse files
Add threshold for sum03, sum47 and sum07.
parent
a248a46c
Changes
5
Hide whitespace changes
Inline
Side-by-side
src/controllers/stereo_daq/DAQParamController.cpp
View file @
8805d652
...
...
@@ -60,7 +60,9 @@ acquisition::TimeAcquisitionController(name), Select(this),Set(this) {
trigsum07
.
init
(
this
,
NOSAVE
,
"trigsum07"
);
trigquantity
.
init
(
this
,
NOSAVE
,
"trigquantity"
);
slotindex
.
init
(
this
,
NOSAVE
,
"slotindex"
);
sumthres
.
init
(
this
,
NOSAVE
,
"sumthres"
);
sumthres03
.
init
(
this
,
NOSAVE
,
"sumthres03"
);
sumthres47
.
init
(
this
,
NOSAVE
,
"sumthres47"
);
sumthres07
.
init
(
this
,
NOSAVE
,
"sumthres07"
);
nsum
.
init
(
this
,
NOSAVE
,
"nsum"
);
t1accepted
.
init
(
this
,
NOSAVE
,
"t1accepted"
);
t1timereset
.
init
(
this
,
NOSAVE
,
"t1timereset"
);
...
...
@@ -132,7 +134,9 @@ acquisition::TimeAcquisitionController(name), Select(this),Set(this) {
registerRefresher
(
gain20
,
&
DAQParamController
::
refreshGain20Property
,
this
);
registerRefresher
(
trigthres
,
&
DAQParamController
::
refreshTrigThresProperty
,
this
);
registerRefresher
(
cfdthres
,
&
DAQParamController
::
refreshCFDThresProperty
,
this
);
registerRefresher
(
sumthres
,
&
DAQParamController
::
refreshSumThresProperty
,
this
);
registerRefresher
(
sumthres03
,
&
DAQParamController
::
refreshSumThres03Property
,
this
);
registerRefresher
(
sumthres47
,
&
DAQParamController
::
refreshSumThres47Property
,
this
);
registerRefresher
(
sumthres07
,
&
DAQParamController
::
refreshSumThres07Property
,
this
);
registerRefresher
(
precfd
,
&
DAQParamController
::
refreshPreCFDProperty
,
this
);
registerRefresher
(
nsum
,
&
DAQParamController
::
refreshNSumProperty
,
this
);
registerRefresher
(
t1accepted
,
&
DAQParamController
::
refreshT1AcceptedProperty
,
this
);
...
...
@@ -188,7 +192,9 @@ DAQParamController::DAQParamController(const DAQParamController& controller) :
trigsum07
.
copy
(
this
,
controller
.
trigsum07
);
trigquantity
.
copy
(
this
,
controller
.
trigquantity
);
slotindex
.
copy
(
this
,
controller
.
slotindex
);
sumthres
.
copy
(
this
,
controller
.
sumthres
);
sumthres03
.
copy
(
this
,
controller
.
sumthres03
);
sumthres47
.
copy
(
this
,
controller
.
sumthres47
);
sumthres07
.
copy
(
this
,
controller
.
sumthres07
);
nsum
.
copy
(
this
,
controller
.
nsum
);
t1accepted
.
copy
(
this
,
controller
.
t1accepted
);
t1timereset
.
copy
(
this
,
controller
.
t1timereset
);
...
...
@@ -316,7 +322,9 @@ void DAQParamController::refreshNFEBoardMaxProperty(int32 value) throw (CannotSe
trigsum07
.
resize
(
value
);
trigquantity
.
resize
(
value
);
slotindex
.
resize
(
value
);
sumthres
.
resize
(
value
);
sumthres03
.
resize
(
value
);
sumthres47
.
resize
(
value
);
sumthres07
.
resize
(
value
);
nsum
.
resize
(
value
);
t1accepted
.
resize
(
value
);
t1timereset
.
resize
(
value
);
...
...
@@ -355,7 +363,9 @@ void DAQParamController::refreshNFEBoardProperty(int32 value) throw (CannotSetVa
// trigsum07.resize(value);
// trigquantity.resize(value);
// slotindex.resize(value);
// sumthres.resize(value);
// sumthres03.resize(value);
// SumThres47.resize(value);
// SumThres07.resize(value);
// nsum.resize(value);
// t1accepted.resize(value);
// t1timereset.resize(value);
...
...
@@ -431,7 +441,9 @@ void DAQParamController::refreshNFEBoardProperty(int32 value) throw (CannotSetVa
trigsum07
.
set
(
i
,
false
);
//cout << "init trigquantity " << endl ;
trigquantity
.
set
(
i
,
TrigAmp
);
sumthres
.
set
(
i
,
1000
);
sumthres03
.
set
(
i
,
1000
);
sumthres47
.
set
(
i
,
1000
);
sumthres07
.
set
(
i
,
1000
);
nsum
.
set
(
i
,
50
);
t1accepted
.
set
(
i
,
true
);
t1timereset
.
set
(
i
,
false
);
...
...
@@ -492,7 +504,9 @@ void DAQParamController::refreshNFEBoardCloneProperty(int32 value) throw (Cannot
// trigsum07.resize(value);
// trigquantity.resize(value);
// slotindex.resize(value);
// sumthres.resize(value);
// sumthres03.resize(value);
// SumThres47.resize(value);
// SumThres07.resize(value);
// nsum.resize(value);
// t1accepted.resize(value);
// t1timereset.resize(value);
...
...
@@ -529,7 +543,9 @@ void DAQParamController::refreshNFEBoardCloneProperty(int32 value) throw (Cannot
trigsum47
.
set
(
i
,
false
);
trigsum07
.
set
(
i
,
false
);
trigquantity
.
set
(
i
,
TrigAmp
);
sumthres
.
set
(
i
,
1000
);
sumthres03
.
set
(
i
,
1000
);
sumthres47
.
set
(
i
,
1000
);
sumthres07
.
set
(
i
,
1000
);
nsum
.
set
(
i
,
50
);
t1accepted
.
set
(
i
,
true
);
t1timereset
.
set
(
i
,
false
);
...
...
@@ -647,8 +663,14 @@ void DAQParamController::refreshPreCFDProperty(int32 index, int32 value) throw (
if
(
index
<
nfeboard
())
m_ELECDriver
->
DAQParams
.
FEParams_v
.
at
(
index
).
preCFD
=
(
short
unsigned
)
value
;
}
void
DAQParamController
::
refreshSumThresProperty
(
int32
index
,
int32
value
)
throw
(
CannotSetValue
)
{
if
(
index
<
nfeboard
()
&&
trigthresall
()
==
0
)
m_ELECDriver
->
DAQParams
.
FEParams_v
.
at
(
index
).
sumThreshold
=
value
;
void
DAQParamController
::
refreshSumThres03Property
(
int32
index
,
int32
value
)
throw
(
CannotSetValue
)
{
if
(
index
<
nfeboard
()
&&
trigthresall
()
==
0
)
m_ELECDriver
->
DAQParams
.
FEParams_v
.
at
(
index
).
sumThreshold03
=
value
;
}
void
DAQParamController
::
refreshSumThres47Property
(
int32
index
,
int32
value
)
throw
(
CannotSetValue
)
{
if
(
index
<
nfeboard
()
&&
trigthresall
()
==
0
)
m_ELECDriver
->
DAQParams
.
FEParams_v
.
at
(
index
).
sumThreshold47
=
value
;
}
void
DAQParamController
::
refreshSumThres07Property
(
int32
index
,
int32
value
)
throw
(
CannotSetValue
)
{
if
(
index
<
nfeboard
()
&&
trigthresall
()
==
0
)
m_ELECDriver
->
DAQParams
.
FEParams_v
.
at
(
index
).
sumThreshold07
=
value
;
}
void
DAQParamController
::
refreshNSumProperty
(
int32
index
,
int32
value
)
throw
(
CannotSetValue
)
{
if
(
index
<
nfeboard
())
m_ELECDriver
->
DAQParams
.
FEParams_v
.
at
(
index
).
nSum
=
(
short
unsigned
)
value
;
...
...
@@ -714,7 +736,9 @@ void DAQParamController::refreshTrigThresAllProperty(int32 value) throw (CannotS
for
(
int
j
=
0
;
j
<
stereo_elec
::
NBFECHANNEL
;
j
++
){
m_ELECDriver
->
DAQParams
.
FEParams_v
.
at
(
i
).
threshold_v
[
j
]
=
(
short
unsigned
)
value
;
}
m_ELECDriver
->
DAQParams
.
FEParams_v
.
at
(
i
).
sumThreshold
=
(
short
unsigned
)
value
;
m_ELECDriver
->
DAQParams
.
FEParams_v
.
at
(
i
).
sumThreshold03
=
(
short
unsigned
)
value
;
m_ELECDriver
->
DAQParams
.
FEParams_v
.
at
(
i
).
sumThreshold47
=
(
short
unsigned
)
value
;
m_ELECDriver
->
DAQParams
.
FEParams_v
.
at
(
i
).
sumThreshold07
=
(
short
unsigned
)
value
;
}
log
(
Level
::
s_Info
)
<<
"Trigger threshold have been set to "
<<
value
<<
" for all channels"
<<
endlog
;
...
...
src/controllers/stereo_daq/DAQParamController.h
View file @
8805d652
...
...
@@ -126,7 +126,9 @@ public:
DynamicProperty
<
bool
>
trigsum07
;
DynamicProperty
<
string
>
trigquantity
;
// Charge or amplitude
DynamicProperty
<
int32
>
slotindex
;
DynamicProperty
<
int32
>
sumthres
;
DynamicProperty
<
int32
>
sumthres03
;
DynamicProperty
<
int32
>
sumthres47
;
DynamicProperty
<
int32
>
sumthres07
;
DynamicProperty
<
int32
>
nsum
;
DynamicProperty
<
bool
>
t1accepted
;
DynamicProperty
<
bool
>
t1timereset
;
...
...
@@ -270,7 +272,9 @@ private:
void
refreshCFDDelayProperty
(
int32
index
,
int32
value
)
throw
(
CannotSetValue
);
void
refreshCFDFractionProperty
(
int32
index
,
int32
value
)
throw
(
CannotSetValue
);
void
refreshPreCFDProperty
(
int32
index
,
int32
value
)
throw
(
CannotSetValue
);
void
refreshSumThresProperty
(
int32
index
,
int32
value
)
throw
(
CannotSetValue
);
void
refreshSumThres03Property
(
int32
index
,
int32
value
)
throw
(
CannotSetValue
);
void
refreshSumThres47Property
(
int32
index
,
int32
value
)
throw
(
CannotSetValue
);
void
refreshSumThres07Property
(
int32
index
,
int32
value
)
throw
(
CannotSetValue
);
void
refreshNSumProperty
(
int32
index
,
int32
value
)
throw
(
CannotSetValue
);
void
refreshGain20Property
(
int32
index
,
bool
value
)
throw
(
CannotSetValue
);
void
refreshTrigThresProperty
(
int32
index
,
int32
value
)
throw
(
CannotSetValue
);
...
...
src/controllers/stereo_daq/gui/daqparam/daqparam_controller.properties
View file @
8805d652
...
...
@@ -32,7 +32,9 @@ DAQParam.cfddelayPrefix=CFD Delay
DAQParam.cfdfractionPrefix
=
CFD Fraction
DAQParam.precfdPrefix
=
PreCFD
DAQParam.nsumPrefix
=
Nsum
DAQParam.sumThresPrefix
=
Sum threshold
DAQParam.sumThres03Prefix
=
Sum thres 03
DAQParam.sumThres47Prefix
=
Sum thres 47
DAQParam.sumThres07Prefix
=
Sum thres 07
DAQParam.ntotchannelPrefix
=
Number of channels
...
...
src/controllers/stereo_daq/gui/daqparam/daqparam_controllerProperties.xml
View file @
8805d652
...
...
@@ -43,7 +43,11 @@
</dynamic_property>
<dynamic_property
name=
"precfd"
size_property=
"nfeboard"
type=
"int32"
max_length=
"2"
>
</dynamic_property>
<dynamic_property
name=
"sumthres"
size_property=
"nfeboard"
type=
"int32"
max_length=
"5"
>
<dynamic_property
name=
"sumthres03"
size_property=
"nfeboard"
type=
"int32"
max_length=
"5"
>
</dynamic_property>
<dynamic_property
name=
"sumthres47"
size_property=
"nfeboard"
type=
"int32"
max_length=
"5"
>
</dynamic_property>
<dynamic_property
name=
"sumthres07"
size_property=
"nfeboard"
type=
"int32"
max_length=
"5"
>
</dynamic_property>
<dynamic_property
name=
"nsum"
size_property=
"nfeboard"
type=
"int32"
max_length=
"2"
>
</dynamic_property>
...
...
src/controllers/stereo_daq/gui/daqparam/daqparam_controllerView.xml
View file @
8805d652
...
...
@@ -47,7 +47,7 @@
<group
title=
"DAQParam.FETitle"
key=
"groupForFE"
>
<label
role=
"DAQParamController1"
property=
"nfeboard"
prefix=
"DAQParam.nfeboardPrefix"
/>
<newLine/>
<table_composite
nbColumns=
"1
6
"
>
<table_composite
nbColumns=
"1
8
"
>
<simple_label
prefix=
"DAQParam.slotindexPrefix"
font_style=
"BOLD"
hAlignment=
"center"
/>
<!-- <simple_label prefix="DAQParam.enabledfePrefix" font_style="BOLD" hAlignment="center"/> -->
<simple_label
prefix=
"DAQParam.trigquantityPrefix"
font_style=
"BOLD"
hAlignment=
"center"
/>
...
...
@@ -61,11 +61,13 @@
<simple_label
prefix=
"DAQParam.ntotPrefix"
font_style=
"BOLD"
hAlignment=
"center"
/>
<simple_label
prefix=
"DAQParam.ntailPrefix"
font_style=
"BOLD"
hAlignment=
"center"
/>
<simple_label
prefix=
"DAQParam.nsumPrefix"
font_style=
"BOLD"
hAlignment=
"center"
/>
<simple_label
prefix=
"DAQParam.sumThresPrefix"
font_style=
"BOLD"
hAlignment=
"center"
/>
<simple_label
prefix=
"DAQParam.sumThres03Prefix"
font_style=
"BOLD"
hAlignment=
"center"
/>
<simple_label
prefix=
"DAQParam.sumThres47Prefix"
font_style=
"BOLD"
hAlignment=
"center"
/>
<simple_label
prefix=
"DAQParam.sumThres07Prefix"
font_style=
"BOLD"
hAlignment=
"center"
/>
<simple_label
prefix=
"DAQParam.cfddelayPrefix"
font_style=
"BOLD"
hAlignment=
"center"
/>
<simple_label
prefix=
"DAQParam.cfdfractionPrefix"
font_style=
"BOLD"
hAlignment=
"center"
/>
<simple_label
prefix=
"DAQParam.precfdPrefix"
font_style=
"BOLD"
hAlignment=
"center"
/>
<dynamic_composite
role=
"DAQParamController1"
properties=
"slotindex,trigquantity,trigchannel,trigsum03,trigsum47,trigsum07,t1accepted,t1timereset,pretrig,ntot,ntail,nsum,sumthres,cfddelay,cfdfraction,precfd"
>
<dynamic_composite
role=
"DAQParamController1"
properties=
"slotindex,trigquantity,trigchannel,trigsum03,trigsum47,trigsum07,t1accepted,t1timereset,pretrig,ntot,ntail,nsum,sumthres
03,sumthres47,sumthres07
,cfddelay,cfdfraction,precfd"
>
<!-- <dynamic_composite role="DAQParamController1" properties="slotindex,enabledfe,trigquantity,trigchannel,trigsum03,trigsum47,trigsum07,t1accepted,t1timereset,pretrig,ntot,ntail,nsum,sumthres,cfddelay,cfdfraction,precfd"> -->
<label
role=
"DAQParamController1"
property=
"slotindex"
hAlignment=
"center"
/>
<!-- <check role="DAQParamController1" property="enabledfe" hAlignment="center" checkBoxValues="DAQParam.isselected"/> -->
...
...
@@ -80,7 +82,9 @@
<text
role=
"DAQParamController1"
property=
"ntot"
hAlignment=
"center"
/>
<text
role=
"DAQParamController1"
property=
"ntail"
hAlignment=
"center"
/>
<text
role=
"DAQParamController1"
property=
"nsum"
hAlignment=
"center"
/>
<text
role=
"DAQParamController1"
property=
"sumthres"
hAlignment=
"center"
/>
<text
role=
"DAQParamController1"
property=
"sumthres03"
hAlignment=
"center"
/>
<text
role=
"DAQParamController1"
property=
"sumthres47"
hAlignment=
"center"
/>
<text
role=
"DAQParamController1"
property=
"sumthres07"
hAlignment=
"center"
/>
<text
role=
"DAQParamController1"
property=
"cfddelay"
hAlignment=
"center"
/>
<text
role=
"DAQParamController1"
property=
"cfdfraction"
hAlignment=
"center"
/>
<text
role=
"DAQParamController1"
property=
"precfd"
hAlignment=
"center"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment