ReadAtmQualityLL.cc
Go to the documentation of this file.
1 #include <sstream>
2 
3 #include "ReadAtmQualityLL.h"
4 #include <utl/ErrorLogger.h>
5 
6 #include <evt/Event.h>
7 #include <det/Detector.h>
8 #include <utl/TimeStamp.h>
9 #include <utl/UTCDateTime.h>
10 
11 #include <atm/OverallQualityDB.h>
12 
13 using namespace std;
14 using namespace utl;
15 using namespace fwk;
16 using namespace det;
17 using namespace atm;
18 
19 using namespace ReadAtmQualityLLNS;
20 
21 ReadAtmQualityLL::ReadAtmQualityLL(){}
22 
23 ReadAtmQualityLL::~ReadAtmQualityLL(){}
24 
26  //
27  //
28  INFO("ReadAtmQualityLL::Init()");
29  return eSuccess;
30 }
31 
32 VModule::ResultFlag ReadAtmQualityLL::Run(evt::Event& event){
33  //
34  //
35  INFO("ReadAtmQualityLL::Run()");
36 
37  Detector& det = Detector::GetInstance();
38 
39  // Set detector time to something .
40  //
41  det.Update(UTCDateTime(2005, 5, 11, 9, 0).GetTimeStamp());
42 
43 
44  // Retrieve the overall atmospheric quality DB interface
45  //
46  const OverallQualityDB& odb =
48 
49  cout << "Horizontal uniformity = " << odb.GetHorizontalUniformity() << endl;
50  cout << "Cloud coverage = " << odb.GetCloudCoverage() << endl;
51  cout << "min cloud base = " << odb.GetMinCloudBase() / meter << " m" << endl;
52 
53  return eSuccess;
54 }
55 
56 VModule::ResultFlag ReadAtmQualityLL::Finish(){
57  //
58  //
59  INFO("ReadAtmQualityLL::Finish()");
60  return eSuccess;
61 }
void Update(const utl::TimeStamp &time, const bool invData=true, const bool invComp=true, const bool forceRadio=false)
Update detector: deletes currently constructed stations and sets new time.
Definition: Detector.cc:179
const OverallQualityDB & GetOverallQualityDB() const
low-level interface to portion of the database summarizing overall quality
const double meter
Definition: GalacticUnits.h:29
#define INFO(message)
Macro for logging informational messages.
Definition: ErrorLogger.h:161
void Init()
Initialise the registry.
const atm::Atmosphere & GetAtmosphere() const
Definition: Detector.h:113
Top of the hierarchy of the detector description interface.
Definition: Detector.h:81
double GetMinCloudBase() const
ResultFlag
Flag returned by module methods to the RunController.
Definition: VModule.h:60
double GetCloudCoverage() const
Access to database describing overall atmospheric quality.
double GetHorizontalUniformity() const

, generated on Tue Sep 26 2023.