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
popcon::DQMSummarySourceHandler Class Reference

#include <DQMSummarySourceHandler.h>

Inheritance diagram for popcon::DQMSummarySourceHandler:
popcon::PopConSourceHandler< DQMSummary >

Public Member Functions

 DQMSummarySourceHandler (const edm::ParameterSet &pset)
 
void getNewObjects ()
 
std::string id () const
 
 ~DQMSummarySourceHandler ()
 
- Public Member Functions inherited from popcon::PopConSourceHandler< DQMSummary >
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_connectionString
 
std::string m_name
 
std::string m_pass
 
unsigned long long m_since
 
std::string m_user
 

Additional Inherited Members

- Public Types inherited from popcon::PopConSourceHandler< DQMSummary >
typedef std::vector< TripletContainer
 
typedef std::vector< std::pair
< DQMSummary *, cond::Time_t > > 
OldContainer
 
typedef PopConSourceHandler
< DQMSummary
self
 
typedef cond::Summary Summary
 
typedef cond::Time_t Time_t
 
typedef DQMSummary value_type
 
- Protected Member Functions inherited from popcon::PopConSourceHandler< DQMSummary >
int add (value_type *payload, Summary *summary, Time_t time)
 
- Protected Attributes inherited from popcon::PopConSourceHandler< DQMSummary >
OldContainer m_to_transfer
 
std::string m_userTextLog
 

Detailed Description

Definition at line 11 of file DQMSummarySourceHandler.h.

Constructor & Destructor Documentation

popcon::DQMSummarySourceHandler::DQMSummarySourceHandler ( const edm::ParameterSet pset)

Definition at line 11 of file DQMSummarySourceHandler.cc.

References m_connectionString.

11  :
12  m_name(pset.getUntrackedParameter<std::string>("name","DQMSummarySourceHandler")),
13  m_since(pset.getUntrackedParameter<unsigned long long>("firstSince",1)),
14  m_user(pset.getUntrackedParameter<std::string>("OnlineDBUser","CMS_DQM_SUMMARY")),
15  m_pass(pset.getUntrackedParameter<std::string>("OnlineDBPass","****")) {
16  m_connectionString = "oracle://cms_omds_lb/CMS_DQM_SUMMARY";
17  }
T getUntrackedParameter(std::string const &, T const &) const
popcon::DQMSummarySourceHandler::~DQMSummarySourceHandler ( )

Definition at line 19 of file DQMSummarySourceHandler.cc.

19 {}

Member Function Documentation

void popcon::DQMSummarySourceHandler::getNewObjects ( )
virtual

Implements popcon::PopConSourceHandler< DQMSummary >.

Definition at line 21 of file DQMSummarySourceHandler.cc.

References gather_cfg::cout, cond::LogDBEntry::destinationDB, cond::TagInfo_t::lastInterval, popcon::PopConSourceHandler< DQMSummary >::lastPayload(), cond::TagInfo_t::lastPayloadToken, popcon::PopConSourceHandler< DQMSummary >::logDBEntry(), m_connectionString, m_name, m_pass, m_since, popcon::PopConSourceHandler< DQMSummary >::m_to_transfer, m_user, cond::TagInfo_t::name, DQMSummaryReader::readData(), cond::TagInfo_t::size, findQualityFiles::size, popcon::PopConSourceHandler< DQMSummary >::tagInfo(), and cond::LogDBEntry::usertext.

21  {
22  //check what is already inside of the database
23  edm::LogInfo("DQMSummarySourceHandler") << "------- " << m_name << " -> getNewObjects\n"
24  << "got offlineInfo " << tagInfo().name
25  << ", size " << tagInfo().size
26  << ", last object valid since "
27  << tagInfo().lastInterval.first << " token "
28  << tagInfo().lastPayloadToken << std::endl;
29  edm::LogInfo("DQMSummarySourceHandler") << " ------ last entry info regarding the payload (if existing): "
30  << logDBEntry().usertext
31  << "; last record with the correct tag (if existing) has been written in the db: "
32  << logDBEntry().destinationDB << std::endl;
33  if (tagInfo().size > 0) {
34  Ref payload = lastPayload();
35  edm::LogInfo("DQMSummarySourceHandler") << "size of last payload "
36  << payload->m_summary.size() << std::endl;
37  }
38  std::cout << "runnumber/first since = " << m_since << std::endl;
39  DQMSummary * dqmSummary = new DQMSummary;
41  *dqmSummary = dqmSummaryReader.readData("SUMMARYCONTENT", m_since);
42  m_to_transfer.push_back(std::make_pair((DQMSummary*)dqmSummary,m_since));
43  edm::LogInfo("DQMSummarySourceHandler") << "------- "
44  << m_name << " - > getNewObjects"
45  << std::endl;
46  }
std::string usertext
Definition: LogDBEntry.h:20
size_t size
Definition: Types.h:77
std::string destinationDB
Definition: LogDBEntry.h:18
std::string name
Definition: Types.h:73
cond::LogDBEntry const & logDBEntry() const
cond::ValidityInterval lastInterval
Definition: Types.h:75
std::string lastPayloadToken
Definition: Types.h:76
tuple cout
Definition: gather_cfg.py:121
tuple size
Write out results.
cond::TagInfo_t const & tagInfo() const
std::string popcon::DQMSummarySourceHandler::id ( ) const
virtual

Implements popcon::PopConSourceHandler< DQMSummary >.

Definition at line 48 of file DQMSummarySourceHandler.cc.

References m_name.

Member Data Documentation

std::string popcon::DQMSummarySourceHandler::m_connectionString
private

Definition at line 22 of file DQMSummarySourceHandler.h.

Referenced by DQMSummarySourceHandler(), and getNewObjects().

std::string popcon::DQMSummarySourceHandler::m_name
private

Definition at line 18 of file DQMSummarySourceHandler.h.

Referenced by getNewObjects(), and id().

std::string popcon::DQMSummarySourceHandler::m_pass
private

Definition at line 24 of file DQMSummarySourceHandler.h.

Referenced by getNewObjects().

unsigned long long popcon::DQMSummarySourceHandler::m_since
private

Definition at line 20 of file DQMSummarySourceHandler.h.

Referenced by getNewObjects().

std::string popcon::DQMSummarySourceHandler::m_user
private

Definition at line 23 of file DQMSummarySourceHandler.h.

Referenced by getNewObjects().