CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
RPCDBHandler Class Reference

#include <RPCDBHandler.h>

Inheritance diagram for RPCDBHandler:
popcon::PopConSourceHandler< RPCDQMObject >

Public Member Functions

void getNewObjects () override
 
std::string id () const override
 
void initObject (RPCDQMObject *)
 
 RPCDBHandler (const edm::ParameterSet &pset)
 
 ~RPCDBHandler () override
 
- Public Member Functions inherited from popcon::PopConSourceHandler< RPCDQMObject >
void convertFromOld ()
 
SummarydummySummary (typename OldContainer::value_type const &) const
 
void initialize (const cond::persistency::Session &dbSession, cond::TagInfo_t const &tagInfo, cond::LogDBEntry_t const &logDBEntry)
 
Ref lastPayload () const
 
cond::LogDBEntry_t const & logDBEntry () const
 
std::pair< Container const *, std::string const > operator() (const cond::persistency::Session &session, cond::TagInfo_t const &tagInfo, cond::LogDBEntry_t const &logDBEntry) const
 
 PopConSourceHandler ()
 
Container const & returnData ()
 
void sort ()
 
cond::TagInfo_t const & tagInfo () const
 
std::string const & userTextLog () const
 
virtual ~PopConSourceHandler ()
 

Private Attributes

std::string m_name
 
RPCDQMObjectrpcDQMObject
 
unsigned int sinceTime
 

Additional Inherited Members

- Public Types inherited from popcon::PopConSourceHandler< RPCDQMObject >
typedef std::vector< Triplet > Container
 
typedef std::vector< std::pair< RPCDQMObject *, cond::Time_t > > OldContainer
 
typedef PopConSourceHandler< RPCDQMObjectself
 
typedef cond::Summary Summary
 
typedef cond::Time_t Time_t
 
typedef RPCDQMObject value_type
 
- Protected Member Functions inherited from popcon::PopConSourceHandler< RPCDQMObject >
int add (value_type *payload, Summary *summary, Time_t time)
 
cond::persistency::SessiondbSession () const
 
- Protected Attributes inherited from popcon::PopConSourceHandler< RPCDQMObject >
OldContainer m_to_transfer
 
std::string m_userTextLog
 

Detailed Description

Definition at line 25 of file RPCDBHandler.h.

Constructor & Destructor Documentation

◆ ~RPCDBHandler()

RPCDBHandler::~RPCDBHandler ( )
override

Definition at line 8 of file RPCDBHandler.cc.

8 {}

◆ RPCDBHandler()

RPCDBHandler::RPCDBHandler ( const edm::ParameterSet pset)

Definition at line 4 of file RPCDBHandler.cc.

5  : m_name(iConfig.getUntrackedParameter<std::string>("name", "RPCDBHandler")),
6  sinceTime(iConfig.getUntrackedParameter<unsigned>("IOVRun", 0)) {}

Member Function Documentation

◆ getNewObjects()

void RPCDBHandler::getNewObjects ( )
overridevirtual

Implements popcon::PopConSourceHandler< RPCDQMObject >.

Definition at line 10 of file RPCDBHandler.cc.

10  {
11  cond::Time_t myTime = sinceTime;
12 
13  // std::cout << "sinceTime= " << myTime << std::endl;
14 
15  size_t n_empty_run = 0;
16  if (tagInfo().size > 0 && (tagInfo().lastInterval.since + 1) < myTime) {
17  n_empty_run = myTime - tagInfo().lastInterval.since - 1;
18  }
19 
20  if (n_empty_run != 0) {
21  RPCDQMObject* r = new RPCDQMObject();
22  m_to_transfer.push_back(std::make_pair((RPCDQMObject*)(r->Fake_RPCDQMObject()), tagInfo().lastInterval.since + 1));
23  }
24 
25  m_to_transfer.push_back(std::make_pair(rpcDQMObject, myTime));
26 }

References cond::TagInfo_t::lastInterval, popcon::PopConSourceHandler< RPCDQMObject >::m_to_transfer, alignCSCRings::r, rpcDQMObject, cond::Iov_t::since, sinceTime, findQualityFiles::size, and popcon::PopConSourceHandler< RPCDQMObject >::tagInfo().

◆ id()

std::string RPCDBHandler::id ( void  ) const
inlineoverridevirtual

Implements popcon::PopConSourceHandler< RPCDQMObject >.

Definition at line 28 of file RPCDBHandler.h.

28 { return m_name; }

References m_name.

◆ initObject()

void RPCDBHandler::initObject ( RPCDQMObject fObject)

Definition at line 28 of file RPCDBHandler.cc.

28 { rpcDQMObject = fObject; }

References rpcDQMObject.

Member Data Documentation

◆ m_name

std::string RPCDBHandler::m_name
private

Definition at line 35 of file RPCDBHandler.h.

Referenced by id().

◆ rpcDQMObject

RPCDQMObject* RPCDBHandler::rpcDQMObject
private

Definition at line 37 of file RPCDBHandler.h.

Referenced by getNewObjects(), and initObject().

◆ sinceTime

unsigned int RPCDBHandler::sinceTime
private

Definition at line 36 of file RPCDBHandler.h.

Referenced by getNewObjects().

popcon::PopConSourceHandler< RPCDQMObject >::m_to_transfer
OldContainer m_to_transfer
Definition: PopConSourceHandler.h:162
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
popcon::PopConSourceHandler< RPCDQMObject >::tagInfo
cond::TagInfo_t const & tagInfo() const
Definition: PopConSourceHandler.h:78
RPCDQMObject
Definition: RPCDQMObject.h:10
cond::Iov_t::since
Time_t since
Definition: Types.h:53
cond::Time_t
unsigned long long Time_t
Definition: Time.h:14
RPCDBHandler::m_name
std::string m_name
Definition: RPCDBHandler.h:35
RPCDBHandler::rpcDQMObject
RPCDQMObject * rpcDQMObject
Definition: RPCDBHandler.h:37
RPCDBHandler::sinceTime
unsigned int sinceTime
Definition: RPCDBHandler.h:36
alignCSCRings.r
r
Definition: alignCSCRings.py:93
cond::TagInfo_t::lastInterval
Iov_t lastInterval
Definition: Types.h:73
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443