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 
11 public:
13  ~LHCInfoPopConSourceHandler() override;
14  void getNewObjects() override;
15  std::string id() const override;
16 
17 private:
18  void addEmptyPayload(cond::Time_t iov);
19  bool getNextFillData(cond::persistency::Session& session, const boost::posix_time::ptime& targetTime, bool ended);
20  bool getFillData(cond::persistency::Session& session, unsigned short fillId);
22  const boost::posix_time::ptime& beginFillTime,
23  const boost::posix_time::ptime& endFillTime);
25  const boost::posix_time::ptime& beginFillTime,
26  const boost::posix_time::ptime& endFillTime);
28  const boost::posix_time::ptime& beginFillTime,
29  const boost::posix_time::ptime& endFillTime);
31  const boost::posix_time::ptime& lowerTime,
32  const boost::posix_time::ptime& upperTime,
33  bool update);
34 
35 private:
36  bool m_debug;
37  // starting date for sampling
38  boost::posix_time::ptime m_startTime;
39  boost::posix_time::ptime m_endTime;
40  // sampling interval in seconds
41  unsigned int m_samplingInterval;
42  bool m_endFill = true;
44  //for reading from relational database source
47  std::unique_ptr<LHCInfo> m_fillPayload;
48  std::shared_ptr<LHCInfo> m_prevPayload;
49  std::vector<std::pair<cond::Time_t, std::shared_ptr<LHCInfo> > > m_tmpBuffer;
50  std::vector<std::shared_ptr<LHCInfo> > m_payloadBuffer;
51  bool m_lastPayloadEmpty = false;
52 };
53 
54 #endif
PopConSourceHandler.h
LHCInfoPopConSourceHandler::getNextFillData
bool getNextFillData(cond::persistency::Session &session, const boost::posix_time::ptime &targetTime, bool ended)
Definition: LHCInfoPopConSourceHandler.cc:235
LHCInfoPopConSourceHandler::getNewObjects
void getNewObjects() override
Definition: LHCInfoPopConSourceHandler.cc:847
LHCInfoPopConSourceHandler::addEmptyPayload
void addEmptyPayload(cond::Time_t iov)
Definition: LHCInfoPopConSourceHandler.cc:774
LHCInfoPopConSourceHandler::m_name
std::string m_name
Definition: LHCInfoPopConSourceHandler.h:43
LHCInfoPopConSourceHandler::m_connectionString
std::string m_connectionString
Definition: LHCInfoPopConSourceHandler.h:45
LHCInfoPopConSourceHandler::m_endTime
boost::posix_time::ptime m_endTime
Definition: LHCInfoPopConSourceHandler.h:39
LHCInfoPopConSourceHandler::getCTTPSData
bool getCTTPSData(cond::persistency::Session &session, const boost::posix_time::ptime &beginFillTime, const boost::posix_time::ptime &endFillTime)
Definition: LHCInfoPopConSourceHandler.cc:533
LHCInfo.h
LHCInfoPopConSourceHandler::getFillData
bool getFillData(cond::persistency::Session &session, unsigned short fillId)
Definition: LHCInfoPopConSourceHandler.cc:251
LHCInfoPopConSourceHandler::getEcalData
bool getEcalData(cond::persistency::Session &session, const boost::posix_time::ptime &lowerTime, const boost::posix_time::ptime &upperTime, bool update)
Definition: LHCInfoPopConSourceHandler.cc:668
LHCInfoPopConSourceHandler::m_startTime
boost::posix_time::ptime m_startTime
Definition: LHCInfoPopConSourceHandler.h:38
LHCInfoPopConSourceHandler::m_payloadBuffer
std::vector< std::shared_ptr< LHCInfo > > m_payloadBuffer
Definition: LHCInfoPopConSourceHandler.h:50
LHCInfoPopConSourceHandler::m_authpath
std::string m_authpath
Definition: LHCInfoPopConSourceHandler.h:46
LHCInfoPopConSourceHandler
Definition: LHCInfoPopConSourceHandler.h:10
LHCInfoPopConSourceHandler::getDipData
bool getDipData(cond::persistency::Session &session, const boost::posix_time::ptime &beginFillTime, const boost::posix_time::ptime &endFillTime)
Definition: LHCInfoPopConSourceHandler.cc:390
LHCInfoPopConSourceHandler::m_dipSchema
std::string m_dipSchema
Definition: LHCInfoPopConSourceHandler.h:46
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
LHCInfoPopConSourceHandler::LHCInfoPopConSourceHandler
LHCInfoPopConSourceHandler(const edm::ParameterSet &pset)
Definition: LHCInfoPopConSourceHandler.cc:21
LHCInfoPopConSourceHandler::m_samplingInterval
unsigned int m_samplingInterval
Definition: LHCInfoPopConSourceHandler.h:41
LHCInfoPopConSourceHandler::m_lastPayloadEmpty
bool m_lastPayloadEmpty
Definition: LHCInfoPopConSourceHandler.h:51
edm::ParameterSet
Definition: ParameterSet.h:47
LHCInfoPopConSourceHandler::~LHCInfoPopConSourceHandler
~LHCInfoPopConSourceHandler() override
Definition: LHCInfoPopConSourceHandler.cc:49
LHCInfoPopConSourceHandler::m_prevPayload
std::shared_ptr< LHCInfo > m_prevPayload
Definition: LHCInfoPopConSourceHandler.h:48
cond::persistency::Session
Definition: Session.h:63
cond::Time_t
unsigned long long Time_t
Definition: Time.h:14
popcon::PopConSourceHandler
Definition: PopConSourceHandler.h:30
LHCInfoPopConSourceHandler::m_debug
bool m_debug
Definition: LHCInfoPopConSourceHandler.h:36
LHCInfoPopConSourceHandler::m_fillPayload
std::unique_ptr< LHCInfo > m_fillPayload
Definition: LHCInfoPopConSourceHandler.h:47
LHCInfoPopConSourceHandler::id
std::string id() const override
Definition: LHCInfoPopConSourceHandler.cc:978
ParameterSetfwd.h
LHCInfoPopConSourceHandler::m_endFill
bool m_endFill
Definition: LHCInfoPopConSourceHandler.h:42
LHCInfoPopConSourceHandler::m_tmpBuffer
std::vector< std::pair< cond::Time_t, std::shared_ptr< LHCInfo > > > m_tmpBuffer
Definition: LHCInfoPopConSourceHandler.h:49
LHCInfoPopConSourceHandler::m_ecalConnectionString
std::string m_ecalConnectionString
Definition: LHCInfoPopConSourceHandler.h:45
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
update
#define update(a, b)
Definition: TrackClassifier.cc:10
LHCInfoPopConSourceHandler::getLumiData
size_t getLumiData(cond::persistency::Session &session, const boost::posix_time::ptime &beginFillTime, const boost::posix_time::ptime &endFillTime)
Definition: LHCInfoPopConSourceHandler.cc:260