4 #include <utl/ErrorLogger.h>
7 #include <det/Detector.h>
9 #include <utl/TimeStamp.h>
10 #include <utl/UTCDateTime.h>
11 #include <utl/TabulatedFunction.h>
12 #include <utl/AugerUnits.h>
13 #include <utl/AugerException.h>
15 #include <fdet/FDetector.h>
16 #include <fdet/Telescope.h>
18 #include <fdet/Pixel.h>
26 using namespace ReadFDCalibNS;
28 ReadFDCalib::ReadFDCalib(){}
30 ReadFDCalib::~ReadFDCalib(){}
35 INFO(
"ReadFDCalib::Init()");
42 INFO(
"ReadFDCalib::Run()");
45 Detector::GetInstance().Update(
UTCDateTime(2012,1,1,0,0).GetTimeStamp());
47 const FDetector& fDet = Detector::GetInstance().GetFDetector();
51 eyeIt != fDet.
EyesEnd() ; ++eyeIt) {
54 cout <<
"eye : " << eyeIt->GetName() << endl;
55 cout <<
"---------------------------" << endl;
59 telIt != eyeIt->TelescopesEnd(); ++telIt) {
61 cout <<
" telescope : " << telIt->GetId() << endl;
65 for (
unsigned int iPixId = telIt->GetFirstPixelId() ;
66 iPixId <= telIt->GetLastPixelId() ; ++iPixId) {
68 cout << iPixId <<
": ";
73 calVsWavelength = telIt->GetPixel(iPixId).GetEndToEndCalibrationConstant();
75 cout <<
"could not retrieve calib consts for eye : "
76 << eyeIt->GetName() <<
", telescope " << telIt->GetId()
83 calIt != calVsWavelength.
End() ; ++calIt) {
84 cout <<
"(" << calIt->X()/
nanometer <<
" nm, " << calIt->Y() <<
") ";
97 INFO(
"ReadFDCalib::Finish()");
Class to hold collection (x,y) points and provide interpolation between them.
#define INFO(message)
Macro for logging informational messages.
void Init()
Initialise the registry.
EyeIterator EyesBegin(const FDetComponentSelector::Type type=FDetComponentSelector::ePhysical) const
iterator pointing to first eye of given type (ePhysical, eVirtual, eAll)
Detector description interface for FDetector-related data.
constexpr double nanometer
Exception to use in case requested data not found in the database with detailed printout.
boost::filter_iterator< FDetComponentSelector, AllEyeIterator > EyeIterator
boost::filter_iterator< TelIsCommissioned, InternalConstTelescopeIterator > TelescopeIterator
An iterator over telescopes.
ResultFlag
Flag returned by module methods to the RunController.
EyeIterator EyesEnd(const FDetComponentSelector::Type type=FDetComponentSelector::ePhysical) const
iterator pointing to end of available eyes of given type (ePhysical, eVirtual, eAll) ...