CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 ()
 
std::string id () const
 
void initObject (RPCDQMObject *)
 
 RPCDBHandler (const edm::ParameterSet &pset)
 
 ~RPCDBHandler ()
 
- 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 const &logDBEntry)
 
Ref lastPayload () const
 
cond::LogDBEntry const & logDBEntry () const
 
std::pair< Container const
*, std::string const > 
operator() (const cond::persistency::Session &session, cond::TagInfo_t const &tagInfo, cond::LogDBEntry 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< TripletContainer
 
typedef std::vector< std::pair
< RPCDQMObject *, cond::Time_t > > 
OldContainer
 
typedef PopConSourceHandler
< RPCDQMObject
self
 
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)
 
- Protected Attributes inherited from popcon::PopConSourceHandler< RPCDQMObject >
OldContainer m_to_transfer
 
std::string m_userTextLog
 

Detailed Description

Definition at line 27 of file RPCDBHandler.h.

Constructor & Destructor Documentation

RPCDBHandler::~RPCDBHandler ( )

Definition at line 8 of file RPCDBHandler.cc.

8 {}
RPCDBHandler::RPCDBHandler ( const edm::ParameterSet pset)

Definition at line 3 of file RPCDBHandler.cc.

3  :
4  m_name(iConfig.getUntrackedParameter<std::string>("name","RPCDBHandler")),
5  sinceTime(iConfig.getUntrackedParameter<unsigned>("IOVRun",0))
6 {}
std::string m_name
Definition: RPCDBHandler.h:39
unsigned int sinceTime
Definition: RPCDBHandler.h:40

Member Function Documentation

void RPCDBHandler::getNewObjects ( )
virtual

Implements popcon::PopConSourceHandler< RPCDQMObject >.

Definition at line 10 of file RPCDBHandler.cc.

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

11 {
12 
13 
14  cond::Time_t myTime = sinceTime;
15 
16  // std::cout << "sinceTime= " << myTime << std::endl;
17 
18  size_t n_empty_run = 0;
19  if(tagInfo().size > 0 && (tagInfo().lastInterval.first+1) < myTime) {
20  n_empty_run = myTime - tagInfo().lastInterval.first - 1;
21  }
22 
23  if (n_empty_run != 0) {
24  RPCDQMObject * r = new RPCDQMObject();
25  m_to_transfer.push_back(std::make_pair((RPCDQMObject*) (r->Fake_RPCDQMObject()),tagInfo().lastInterval.first + 1));
26  }
27 
28  m_to_transfer.push_back(std::make_pair(rpcDQMObject,myTime));
29 
30 }
cond::ValidityInterval lastInterval
Definition: Types.h:70
RPCDQMObject * Fake_RPCDQMObject()
Definition: RPCDQMObject.cc:4
unsigned long long Time_t
Definition: Time.h:16
unsigned int sinceTime
Definition: RPCDBHandler.h:40
RPCDQMObject * rpcDQMObject
Definition: RPCDBHandler.h:41
tuple size
Write out results.
std::string RPCDBHandler::id ( void  ) const
inlinevirtual

Implements popcon::PopConSourceHandler< RPCDQMObject >.

Definition at line 32 of file RPCDBHandler.h.

References m_name.

32 { return m_name; }
std::string m_name
Definition: RPCDBHandler.h:39
void RPCDBHandler::initObject ( RPCDQMObject fObject)

Definition at line 32 of file RPCDBHandler.cc.

References rpcDQMObject.

Referenced by RPCDBPopConAnalyzer::endJob().

32  {
33  rpcDQMObject = fObject;
34 }
RPCDQMObject * rpcDQMObject
Definition: RPCDBHandler.h:41

Member Data Documentation

std::string RPCDBHandler::m_name
private

Definition at line 39 of file RPCDBHandler.h.

Referenced by id().

RPCDQMObject* RPCDBHandler::rpcDQMObject
private

Definition at line 41 of file RPCDBHandler.h.

Referenced by getNewObjects(), and initObject().

unsigned int RPCDBHandler::sinceTime
private

Definition at line 40 of file RPCDBHandler.h.

Referenced by getNewObjects().