// Lvl0_Reader.cpp // Brian Magill // 2/20/2006 // // Methods for the Lvl0_Reader Class. This class contains the // data for all channels for a particular event. // // Note: With the discontinuation of reading from input files, this // class really is no longer needed. // //---------------------------------------------------------------------- // #include #include #include #include #include #include #include #include "Lvl0_Reader.h" #include "SofieDBinput.h" #include "GATS_DB_mysql.h" using namespace std; using namespace SOFIE; void Lvl0_Reader::Read(DBInputParam const &dbParam, ConfigFile const &configB, long event) { SofieDBinput sofieIn = SofieDBinput(dbParam, event); if (sofieIn.HasData() ) { header = sofieIn.getHeader(); detectorData = sofieIn.getDetectorSignals(); SSData = sofieIn.getSunSensorData(); filterTData = sofieIn.getfilterT(); detTemperature = sofieIn. getDetectorT(); attenuatorData = sofieIn.getAttenuation(); balTimes = sofieIn.getBalanceTimes(); containsData = true; } else containsData = false; }