QualityCuts.cc
Go to the documentation of this file.
1 #include <sdet/QualityCuts.h>
2 
3 using namespace sdet;
4 using namespace utl;
5 
6 
7 void
9 {
10  if (fTimeRange == time)
11  return;
12 
13  int year = 0;
14  int month = 0;
15  int day = 0;
16  time.GetUTCDateTime(year, month, day);
17 
18  VManager::IndexMap indexMap;
19  indexMap["year"] = boost::lexical_cast<string>(year);
20  indexMap["month"] = boost::lexical_cast<string>(month);
21  indexMap["day"] = boost::lexical_cast<string>(day);
22 
23  //indexMap["gpsSecond"] = boost::lexical_cast<string>(time.GetGPSSecond());
24 
25  typedef list<pair<int, int>> LII;
26  static LII stationMask;
27  stationMask.clear();
28 
29  const VManager::Status status =
30  manager.GetData(stationMask, "quality_cuts", "stationMasks", indexMap);
31 
32  fStationQualityCuts.clear();
33 
34  for (LII::const_iterator it = stationMask.begin();
35  it != stationMask.end(); ++it) {
36  const int stationId = it->first;
37  const int mask = it->second;
38  fStationQualityCuts.emplace_back(stationId, mask);
39  }
40 
41  stationMask.clear();
42 }
void Update(const utl::TimeStamp &time)
Definition: QualityCuts.cc:8
A TimeStamp holds GPS second and nanosecond for some event.
Definition: TimeStamp.h:110
Status
Return code for seek operation.
Definition: IoCodes.h:24
constexpr double day
Definition: AugerUnits.h:151
const double year
Definition: GalacticUnits.h:22

, generated on Tue Sep 26 2023.