Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
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
RadioObservatory
LOFAR
Commits
d8ad5e91
Commit
d8ad5e91
authored
9 years ago
by
Pieter Donker
Browse files
Options
Downloads
Patches
Plain Diff
Task #8966: add more logging
parent
8f80fcbb
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
MAC/APL/PAC/ITRFBeamServer/src/BeamServer.cc
+34
-0
34 additions, 0 deletions
MAC/APL/PAC/ITRFBeamServer/src/BeamServer.cc
MAC/APL/PAC/ITRFBeamServer/src/BeamServer.h
+1
-1
1 addition, 1 deletion
MAC/APL/PAC/ITRFBeamServer/src/BeamServer.h
with
35 additions
and
1 deletion
MAC/APL/PAC/ITRFBeamServer/src/BeamServer.cc
+
34
−
0
View file @
d8ad5e91
...
...
@@ -812,6 +812,10 @@ GCFEvent::TResult BeamServer::beamalloc_state(GCFEvent& event, GCFPortInterface&
LOG_INFO_STR
(
"Subscribing to subarray: "
<<
subscribe
.
name
);
LOG_DEBUG_STR
(
"subbands= "
<<
subscribe
.
subbandset
);
if
(
!
_isCalTableValid
(
itsBeamTransaction
.
getBeam
()
->
antennaSetName
(),
itsBeamTransaction
.
getBeam
()
->
bandName
()))
{
LOG_INFO_STR
(
"No valid CalTable available for this beam, using default"
);
}
itsCalServer
->
send
(
subscribe
);
itsConnectTimer
->
setTimer
(
5.0
);
}
...
...
@@ -1562,6 +1566,36 @@ complex<double> BeamServer::_getCalFactor(const string& antennaSet, const string
return
(
result
);
}
//
// _getCalFactor(rcumode, rcu, subbandNr)
//
bool
BeamServer
::
_isCalTableValid
(
const
string
&
antennaSet
,
const
string
&
band
)
{
bool
result
;
result
=
false
;
if
(
band
==
"10_90"
)
{
if
(
antennaSet
==
"LBA_INNER"
)
{
if
(
itsCalTable_LBA_INNER_10_90
)
result
=
true
;
}
else
if
(
antennaSet
==
"LBA_OUTER"
)
{
if
(
itsCalTable_LBA_OUTER_10_90
)
result
=
true
;
}
else
if
(
antennaSet
==
"LBA_SPARSE_EVEN"
)
{
if
(
itsCalTable_LBA_SPARSE_EVEN_10_90
)
result
=
true
;
}
else
if
(
antennaSet
==
"LBA_SPARSE_ODD"
)
{
if
(
itsCalTable_LBA_SPARSE_ODD_10_90
)
result
=
true
;
}
else
if
(
antennaSet
==
"LBA_X"
)
{
if
(
itsCalTable_LBA_X_10_90
)
result
=
true
;
}
else
if
(
antennaSet
==
"LBA_Y"
)
{
if
(
itsCalTable_LBA_Y_10_90
)
result
=
true
;
}
}
else
if
(
band
==
"30_90"
)
{
if
(
antennaSet
==
"LBA_INNER"
)
{
if
(
itsCalTable_LBA_INNER_30_90
)
result
=
true
;
}
else
if
(
antennaSet
==
"LBA_OUTER"
)
{
if
(
itsCalTable_LBA_OUTER_30_90
)
result
=
true
;
}
else
if
(
antennaSet
==
"LBA_SPARSE_EVEN"
)
{
if
(
itsCalTable_LBA_SPARSE_EVEN_30_90
)
result
=
true
;
}
else
if
(
antennaSet
==
"LBA_SPARSE_ODD"
)
{
if
(
itsCalTable_LBA_SPARSE_ODD_30_90
)
result
=
true
;
}
else
if
(
antennaSet
==
"LBA_X"
)
{
if
(
itsCalTable_LBA_X_30_90
)
result
=
true
;
}
else
if
(
antennaSet
==
"LBA_Y"
)
{
if
(
itsCalTable_LBA_Y_30_90
)
result
=
true
;
}
}
else
if
(
band
==
"110_190"
)
{
if
(
itsCalTable_HBA_110_190
)
result
=
true
;
}
else
if
(
band
==
"170_230"
)
{
if
(
itsCalTable_HBA_170_230
)
result
=
true
;
}
else
if
(
band
==
"210_250"
)
{
if
(
itsCalTable_HBA_210_250
)
result
=
true
;
}
return
(
result
);
}
void
BeamServer
::
_loadCalTable
(
const
string
&
antennaSet
,
const
string
&
band
,
uint
nrRSPBoards
)
{
StatCal
**
tableHandle
(
0
);
...
...
This diff is collapsed.
Click to expand it.
MAC/APL/PAC/ITRFBeamServer/src/BeamServer.h
+
1
−
1
View file @
d8ad5e91
...
...
@@ -181,7 +181,7 @@ private:
// RCU calibration
std
::
complex
<
double
>
_getCalFactor
(
const
string
&
antennaSet
,
const
string
&
band
,
uint
rcu
,
uint
subbandNr
);
void
_loadCalTable
(
const
string
&
antennaSet
,
const
string
&
band
,
uint
nrRSPBoards
);
bool
_isCalTableValid
(
const
string
&
antennaSet
,
const
string
&
band
);
// ### data members ###
// 'constant' containing the current number of bits each datasample has.
...
...
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