CMS 3D CMS Logo

LHCInfoPopConSourceHandler.h
Go to the documentation of this file.
1 #ifndef LHCINFOPOPCONSOURCEHANDLER_H
2 #define LHCINFOPOPCONSOURCEHANDLER_H
3 
4 #include <string>
5 
9 
10 namespace cond {
11  class OMSService;
12 }
13 
15 public:
17  ~LHCInfoPopConSourceHandler() override;
18  void getNewObjects() override;
19  std::string id() const override;
20 
21 private:
22  void addEmptyPayload(cond::Time_t iov);
23 
24  size_t getLumiData(const cond::OMSService& service,
25  unsigned short fillId,
26  const boost::posix_time::ptime& beginFillTime,
27  const boost::posix_time::ptime& endFillTime);
29  const boost::posix_time::ptime& beginFillTime,
30  const boost::posix_time::ptime& endFillTime);
32  const boost::posix_time::ptime& beginFillTime,
33  const boost::posix_time::ptime& endFillTime);
35  const boost::posix_time::ptime& lowerTime,
36  const boost::posix_time::ptime& upperTime,
37  bool update);
38 
39 private:
40  bool m_debug;
41  // starting date for sampling
42  boost::posix_time::ptime m_startTime;
43  boost::posix_time::ptime m_endTime;
44  // sampling interval in seconds
45  unsigned int m_samplingInterval;
46  bool m_endFill = true;
48  //for reading from relational database source
52  std::unique_ptr<LHCInfo> m_fillPayload;
53  std::shared_ptr<LHCInfo> m_prevPayload;
54  std::vector<std::pair<cond::Time_t, std::shared_ptr<LHCInfo> > > m_tmpBuffer;
55  bool m_lastPayloadEmpty = false;
56 };
57 
58 #endif
boost::posix_time::ptime m_startTime
bool getCTTPSData(cond::persistency::Session &session, const boost::posix_time::ptime &beginFillTime, const boost::posix_time::ptime &endFillTime)
std::vector< std::pair< cond::Time_t, std::shared_ptr< LHCInfo > > > m_tmpBuffer
std::unique_ptr< LHCInfo > m_fillPayload
bool getEcalData(cond::persistency::Session &session, const boost::posix_time::ptime &lowerTime, const boost::posix_time::ptime &upperTime, bool update)
std::shared_ptr< LHCInfo > m_prevPayload
std::string id() const override
void getDipData(const cond::OMSService &service, const boost::posix_time::ptime &beginFillTime, const boost::posix_time::ptime &endFillTime)
unsigned long long Time_t
Definition: Time.h:14
boost::posix_time::ptime m_endTime
size_t getLumiData(const cond::OMSService &service, unsigned short fillId, const boost::posix_time::ptime &beginFillTime, const boost::posix_time::ptime &endFillTime)
Definition: plugin.cc:23
#define update(a, b)
LHCInfoPopConSourceHandler(const edm::ParameterSet &pset)