#include <BeamSpotOnlinePopConSourceHandler.h>
◆ BeamSpotOnlinePopConSourceHandler()
BeamSpotOnlinePopConSourceHandler::BeamSpotOnlinePopConSourceHandler |
( |
const edm::ParameterSet & |
pset | ) |
|
◆ ~BeamSpotOnlinePopConSourceHandler()
BeamSpotOnlinePopConSourceHandler::~BeamSpotOnlinePopConSourceHandler |
( |
| ) |
|
|
override |
◆ getNewObjects()
void BeamSpotOnlinePopConSourceHandler::getNewObjects |
( |
| ) |
|
|
overridevirtual |
Implements popcon::PopConSourceHandler< BeamSpotOnlineObjects >.
Definition at line 36 of file BeamSpotOnlinePopConSourceHandler.cc.
References checkPayloadAge(), popcon::PopConSourceHandler< BeamSpotOnlineObjects >::dbSession(), cond::TagInfo_t::lastInterval, popcon::PopConSourceHandler< BeamSpotOnlineObjects >::lastPayload(), cond::time::lumiTime(), m_maxAge, m_name, m_payload, m_runNumber, m_sourcePayloadTag, popcon::PopConSourceHandler< BeamSpotOnlineObjects >::m_to_transfer, makeDummyPayload(), cond::TagInfo_t::name, cond::Iov_t::since, findQualityFiles::size, and popcon::PopConSourceHandler< BeamSpotOnlineObjects >::tagInfo().
37 bool addNewPayload =
false;
53 session.transaction().start(
true);
56 session.transaction().commit();
66 edm::LogInfo(
m_name) <<
"Nothing to do, last payload satisfies maximum age requirement.";
std::string m_sourcePayloadTag
bool checkPayloadAge(const BeamSpotOnlineObjects &payload, unsigned int maxAge)
cond::TagInfo_t const & tagInfo() const
unsigned long long Time_t
Time_t lumiTime(unsigned int run, unsigned int lumiId)
std::vector< std::pair< BeamSpotOnlineObjects *, Time_t > > m_to_transfer
std::unique_ptr< BeamSpotOnlineObjects > m_payload
Log< level::Info, false > LogInfo
std::unique_ptr< BeamSpotOnlineObjects > makeDummyPayload()
cond::persistency::Session & dbSession() const
◆ id()
std::string BeamSpotOnlinePopConSourceHandler::id |
( |
| ) |
const |
|
overridevirtual |
◆ m_debug
bool BeamSpotOnlinePopConSourceHandler::m_debug |
|
private |
◆ m_maxAge
unsigned int BeamSpotOnlinePopConSourceHandler::m_maxAge |
|
private |
◆ m_name
std::string BeamSpotOnlinePopConSourceHandler::m_name |
|
private |
◆ m_payload
◆ m_runNumber
unsigned int BeamSpotOnlinePopConSourceHandler::m_runNumber |
|
private |
◆ m_sourcePayloadTag
std::string BeamSpotOnlinePopConSourceHandler::m_sourcePayloadTag |
|
private |