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
b345737e
Commit
b345737e
authored
14 years ago
by
Andreas Horneffer
Browse files
Options
Downloads
Patches
Plain Diff
Bug 1472: changed itsAntennaSelection to itsSettings->antennaSet
parent
eea30a96
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
MAC/APL/VHECR/src/VHECRTask.cc
+14
-11
14 additions, 11 deletions
MAC/APL/VHECR/src/VHECRTask.cc
with
14 additions
and
11 deletions
MAC/APL/VHECR/src/VHECRTask.cc
+
14
−
11
View file @
b345737e
...
@@ -60,7 +60,7 @@ namespace LOFAR {
...
@@ -60,7 +60,7 @@ namespace LOFAR {
fprintf
(
itsLogfile
,
"Coincidence channels required: %d
\n
"
,
itsSettings
->
noCoincChann
);
fprintf
(
itsLogfile
,
"Coincidence channels required: %d
\n
"
,
itsSettings
->
noCoincChann
);
fprintf
(
itsLogfile
,
"Antenna positions file: %s
\n
"
,
itsAntennaPositionsFile
.
c_str
());
fprintf
(
itsLogfile
,
"Antenna positions file: %s
\n
"
,
itsAntennaPositionsFile
.
c_str
());
fprintf
(
itsLogfile
,
"Antenna selection: %s
\n
"
,
itsAntennaSelection
.
c_str
());
fprintf
(
itsLogfile
,
"Antenna selection: %s
\n
"
,
itsAntennaSelection
.
c_str
());
fprintf
(
itsLogfile
,
"Coincidence time window: %3.
6f
\n
"
,
itsSettings
->
coincidenceTime
);
fprintf
(
itsLogfile
,
"Coincidence time window: %3.
10e
\n
"
,
itsSettings
->
coincidenceTime
);
fprintf
(
itsLogfile
,
"do Direction fit: %d
\n
"
,
itsSettings
->
doDirectionFit
);
fprintf
(
itsLogfile
,
"do Direction fit: %d
\n
"
,
itsSettings
->
doDirectionFit
);
fprintf
(
itsLogfile
,
"Minimum elevation: %3.4f
\n
"
,
itsSettings
->
minElevation
);
fprintf
(
itsLogfile
,
"Minimum elevation: %3.4f
\n
"
,
itsSettings
->
minElevation
);
fprintf
(
itsLogfile
,
"Maximum fit-variance: %3.4f
\n
"
,
itsSettings
->
maxFitVariance
);
fprintf
(
itsLogfile
,
"Maximum fit-variance: %3.4f
\n
"
,
itsSettings
->
maxFitVariance
);
...
@@ -90,6 +90,9 @@ namespace LOFAR {
...
@@ -90,6 +90,9 @@ namespace LOFAR {
itsSettings
=
new
VHECRsettings
(
itsParameterSet
);
// does all nasty conversions
itsSettings
=
new
VHECRsettings
(
itsParameterSet
);
// does all nasty conversions
itsConfigurationFile
=
"/opt/lofar/etc/VHECRtask.conf"
;
// /opt/lofar/etc/
itsConfigurationFile
=
"/opt/lofar/etc/VHECRtask.conf"
;
// /opt/lofar/etc/
itsOutputFilename
=
"/opt/lofar/log/VHECRtaskLogTest.dat"
;
itsAntennaPositionsFile
=
"/opt/lofar/etc/AntennaArrays.conf"
;
// hardcoded but can be overridden by VHECRtask.conf config file
// which is read in only now:
readConfigFile
(
itsConfigurationFile
.
c_str
());
readConfigFile
(
itsConfigurationFile
.
c_str
());
setup
();
setup
();
// string infile = "/Users/acorstanje/usg/data/calibration/AntennaPos/CS021-AntennaArrays.conf";
// string infile = "/Users/acorstanje/usg/data/calibration/AntennaPos/CS021-AntennaArrays.conf";
...
@@ -100,7 +103,7 @@ namespace LOFAR {
...
@@ -100,7 +103,7 @@ namespace LOFAR {
fprintf
(
itsLogfile
,
"Sampling rate in Hz: %d
\n
"
,
itsSamplingRate
);
fprintf
(
itsLogfile
,
"Sampling rate in Hz: %d
\n
"
,
itsSamplingRate
);
fprintf
(
itsLogfile
,
"Coincidence channels required: %d
\n
"
,
itsSettings
->
noCoincChann
);
fprintf
(
itsLogfile
,
"Coincidence channels required: %d
\n
"
,
itsSettings
->
noCoincChann
);
fprintf
(
itsLogfile
,
"Antenna positions file: %s
\n
"
,
itsAntennaPositionsFile
.
c_str
());
fprintf
(
itsLogfile
,
"Antenna positions file: %s
\n
"
,
itsAntennaPositionsFile
.
c_str
());
fprintf
(
itsLogfile
,
"Antenna selection: %s
\n
"
,
its
A
ntennaSe
lection
.
c_str
());
fprintf
(
itsLogfile
,
"Antenna selection: %s
\n
"
,
its
Settings
->
a
ntennaSe
t
.
c_str
());
fprintf
(
itsLogfile
,
"Coincidence time window: %3.6f
\n
"
,
itsSettings
->
coincidenceTime
);
fprintf
(
itsLogfile
,
"Coincidence time window: %3.6f
\n
"
,
itsSettings
->
coincidenceTime
);
fprintf
(
itsLogfile
,
"do Direction fit: %d
\n
"
,
itsSettings
->
doDirectionFit
);
fprintf
(
itsLogfile
,
"do Direction fit: %d
\n
"
,
itsSettings
->
doDirectionFit
);
fprintf
(
itsLogfile
,
"Minimum elevation: %3.4f
\n
"
,
itsSettings
->
minElevation
);
fprintf
(
itsLogfile
,
"Minimum elevation: %3.4f
\n
"
,
itsSettings
->
minElevation
);
...
@@ -123,9 +126,9 @@ namespace LOFAR {
...
@@ -123,9 +126,9 @@ namespace LOFAR {
bool
VHECRTask
::
setup
()
bool
VHECRTask
::
setup
()
{
{
if
((
its
A
ntennaSe
lection
!=
""
)
&&
(
itsAntennaPositionsFile
!=
""
))
{
if
((
its
Settings
->
a
ntennaSe
t
!=
""
)
&&
(
itsAntennaPositionsFile
!=
""
))
{
// cout << its
A
ntennaSe
lection
<< " reading in positions." << endl;
// cout << its
Settings->a
ntennaSe
t
<< " reading in positions." << endl;
readAntennaPositions
(
itsAntennaPositionsFile
,
its
A
ntennaSe
lection
);
readAntennaPositions
(
itsAntennaPositionsFile
,
its
Settings
->
a
ntennaSe
t
);
}
else
{
}
else
{
itsSettings
->
doDirectionFit
=
0
;
itsSettings
->
doDirectionFit
=
0
;
};
};
...
@@ -151,8 +154,8 @@ namespace LOFAR {
...
@@ -151,8 +154,8 @@ namespace LOFAR {
trigBuffer
[
first
].
prev
=
VHECR_TASK_BUFFER_LENGTH
;
//This means "not there"
trigBuffer
[
first
].
prev
=
VHECR_TASK_BUFFER_LENGTH
;
//This means "not there"
// string infile = "/Users/acorstanje/usg/data/calibration/AntennaPos/CS021-AntennaArrays.conf";
// string infile = "/Users/acorstanje/usg/data/calibration/AntennaPos/CS021-AntennaArrays.conf";
// string its
A
ntennaSe
lection
= "LBA_INNER";
// string its
Settings->a
ntennaSe
t
= "LBA_INNER";
// readAntennaPositions(infile, its
A
ntennaSe
lection
);
// readAntennaPositions(infile, its
Settings->a
ntennaSe
t
);
LOG_DEBUG
(
"VHECR construction complete"
);
LOG_DEBUG
(
"VHECR construction complete"
);
return
true
;
return
true
;
}
}
...
@@ -193,7 +196,7 @@ namespace LOFAR {
...
@@ -193,7 +196,7 @@ namespace LOFAR {
configFile
>>
itsAntennaPositionsFile
;
configFile
>>
itsAntennaPositionsFile
;
}
else
if
(
temp
==
"antennaSelection:"
)
}
else
if
(
temp
==
"antennaSelection:"
)
{
{
configFile
>>
its
A
ntennaSe
lection
;
configFile
>>
its
Settings
->
a
ntennaSe
t
;
}
else
if
(
temp
==
"coincidenceTime:"
)
}
else
if
(
temp
==
"coincidenceTime:"
)
{
{
configFile
>>
itsSettings
->
coincidenceTime
;
configFile
>>
itsSettings
->
coincidenceTime
;
...
@@ -219,7 +222,7 @@ namespace LOFAR {
...
@@ -219,7 +222,7 @@ namespace LOFAR {
itsSettings
->
maxFitVariance
=
MaxFitVariance
;
itsSettings
->
maxFitVariance
=
MaxFitVariance
;
itsSettings
->
clockFreq
=
Clock
;
itsSettings
->
clockFreq
=
Clock
;
itsParamExtension
=
ParamExtension
;
itsParamExtension
=
ParamExtension
;
its
A
ntennaSe
lection
=
AntennaSet
;
its
Settings
->
a
ntennaSe
t
=
AntennaSet
;
itsAntennaPositionsFile
=
AntennaPositionsFile
;
itsAntennaPositionsFile
=
AntennaPositionsFile
;
itsForcedDeadTime
=
forcedDeadTime
;
itsForcedDeadTime
=
forcedDeadTime
;
...
@@ -231,7 +234,7 @@ namespace LOFAR {
...
@@ -231,7 +234,7 @@ namespace LOFAR {
fprintf
(
itsLogfile
,
"Output file: %s
\n
"
,
itsOutputFilename
.
c_str
());
fprintf
(
itsLogfile
,
"Output file: %s
\n
"
,
itsOutputFilename
.
c_str
());
fprintf
(
itsLogfile
,
"Coincidence channels required: %d
\n
"
,
itsSettings
->
noCoincChann
);
fprintf
(
itsLogfile
,
"Coincidence channels required: %d
\n
"
,
itsSettings
->
noCoincChann
);
fprintf
(
itsLogfile
,
"Antenna positions file: %s
\n
"
,
itsAntennaPositionsFile
.
c_str
());
fprintf
(
itsLogfile
,
"Antenna positions file: %s
\n
"
,
itsAntennaPositionsFile
.
c_str
());
fprintf
(
itsLogfile
,
"Antenna selection: %s
\n
"
,
its
A
ntennaSe
lection
.
c_str
());
fprintf
(
itsLogfile
,
"Antenna selection: %s
\n
"
,
its
Settings
->
a
ntennaSe
t
.
c_str
());
fprintf
(
itsLogfile
,
"Coincidence time window: %3.6f
\n
"
,
itsSettings
->
coincidenceTime
);
fprintf
(
itsLogfile
,
"Coincidence time window: %3.6f
\n
"
,
itsSettings
->
coincidenceTime
);
fprintf
(
itsLogfile
,
"do Direction fit: %d
\n
"
,
itsSettings
->
doDirectionFit
);
fprintf
(
itsLogfile
,
"do Direction fit: %d
\n
"
,
itsSettings
->
doDirectionFit
);
fprintf
(
itsLogfile
,
"Minimum elevation: %3.4f
\n
"
,
itsSettings
->
minElevation
);
fprintf
(
itsLogfile
,
"Minimum elevation: %3.4f
\n
"
,
itsSettings
->
minElevation
);
...
@@ -243,7 +246,7 @@ namespace LOFAR {
...
@@ -243,7 +246,7 @@ namespace LOFAR {
printf
(
"Output file: %s
\n
"
,
itsOutputFilename
.
c_str
());
printf
(
"Output file: %s
\n
"
,
itsOutputFilename
.
c_str
());
printf
(
"Coincidence channels required: %d
\n
"
,
itsSettings
->
noCoincChann
);
printf
(
"Coincidence channels required: %d
\n
"
,
itsSettings
->
noCoincChann
);
printf
(
"Antenna positions file: %s
\n
"
,
itsAntennaPositionsFile
.
c_str
());
printf
(
"Antenna positions file: %s
\n
"
,
itsAntennaPositionsFile
.
c_str
());
printf
(
"Antenna selection: %s
\n
"
,
its
A
ntennaSe
lection
.
c_str
());
printf
(
"Antenna selection: %s
\n
"
,
its
Settings
->
a
ntennaSe
t
.
c_str
());
printf
(
"Coincidence time window: %3.6f
\n
"
,
itsSettings
->
coincidenceTime
);
printf
(
"Coincidence time window: %3.6f
\n
"
,
itsSettings
->
coincidenceTime
);
printf
(
"do Direction fit: %d
\n
"
,
itsSettings
->
doDirectionFit
);
printf
(
"do Direction fit: %d
\n
"
,
itsSettings
->
doDirectionFit
);
printf
(
"Minimum elevation: %3.4f
\n
"
,
itsSettings
->
minElevation
);
printf
(
"Minimum elevation: %3.4f
\n
"
,
itsSettings
->
minElevation
);
...
...
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