CMS 3D CMS Logo

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 () override
 
std::string id () const override
 
 ~DQMSummarySourceHandler () override
 
- 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_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_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< Triplet > Container
 
typedef std::vector< std::pair< DQMSummary *, cond::Time_t > > OldContainer
 
typedef PopConSourceHandler< DQMSummaryself
 
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)
 
cond::persistency::SessiondbSession () const
 
- 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

◆ DQMSummarySourceHandler()

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

Definition at line 11 of file DQMSummarySourceHandler.cc.

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  }

References m_connectionString.

◆ ~DQMSummarySourceHandler()

popcon::DQMSummarySourceHandler::~DQMSummarySourceHandler ( )
override

Definition at line 19 of file DQMSummarySourceHandler.cc.

19 {}

Member Function Documentation

◆ getNewObjects()

void popcon::DQMSummarySourceHandler::getNewObjects ( )
overridevirtual

Implements popcon::PopConSourceHandler< DQMSummary >.

Definition at line 21 of file DQMSummarySourceHandler.cc.

21  {
22  //check what is already inside of the database
23  edm::LogInfo("DQMSummarySourceHandler")
24  << "------- " << m_name << " -> getNewObjects\n"
25  << "got offlineInfo " << tagInfo().name << ", size " << tagInfo().size << ", last object valid since "
26  << tagInfo().lastInterval.since << " token " << tagInfo().lastInterval.payloadId << std::endl;
27  edm::LogInfo("DQMSummarySourceHandler")
28  << " ------ last entry info regarding the payload (if existing): " << logDBEntry().usertext
29  << "; last record with the correct tag (if existing) has been written in the db: " << logDBEntry().destinationDB
30  << std::endl;
31  if (tagInfo().size > 0) {
33  edm::LogInfo("DQMSummarySourceHandler") << "size of last payload " << payload->m_summary.size() << std::endl;
34  }
35  std::cout << "runnumber/first since = " << m_since << std::endl;
36  DQMSummary* dqmSummary = new DQMSummary;
38  *dqmSummary = dqmSummaryReader.readData("SUMMARYCONTENT", m_since);
39  m_to_transfer.push_back(std::make_pair((DQMSummary*)dqmSummary, m_since));
40  edm::LogInfo("DQMSummarySourceHandler") << "------- " << m_name << " - > getNewObjects" << std::endl;
41  }

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

◆ id()

std::string popcon::DQMSummarySourceHandler::id ( ) const
overridevirtual

Implements popcon::PopConSourceHandler< DQMSummary >.

Definition at line 43 of file DQMSummarySourceHandler.cc.

43 { return m_name; }

References m_name.

Member Data Documentation

◆ m_connectionString

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

Definition at line 23 of file DQMSummarySourceHandler.h.

Referenced by DQMSummarySourceHandler(), and getNewObjects().

◆ m_name

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

Definition at line 19 of file DQMSummarySourceHandler.h.

Referenced by getNewObjects(), and id().

◆ m_pass

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

Definition at line 25 of file DQMSummarySourceHandler.h.

Referenced by getNewObjects().

◆ m_since

unsigned long long popcon::DQMSummarySourceHandler::m_since
private

Definition at line 21 of file DQMSummarySourceHandler.h.

Referenced by getNewObjects().

◆ m_user

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

Definition at line 24 of file DQMSummarySourceHandler.h.

Referenced by getNewObjects().

popcon::DQMSummarySourceHandler::m_connectionString
std::string m_connectionString
Definition: DQMSummarySourceHandler.h:23
popcon::PopConSourceHandler< DQMSummary >::m_to_transfer
OldContainer m_to_transfer
Definition: PopConSourceHandler.h:162
DQMSummary
Definition: DQMSummary.h:19
gather_cfg.cout
cout
Definition: gather_cfg.py:144
edm::LogInfo
Definition: MessageLogger.h:254
popcon::DQMSummarySourceHandler::m_user
std::string m_user
Definition: DQMSummarySourceHandler.h:24
cond::TagInfo_t::name
std::string name
Definition: Types.h:72
DQMSummaryReader
Definition: DQMSummaryReader.h:8
popcon::DQMSummarySourceHandler::m_name
std::string m_name
Definition: DQMSummarySourceHandler.h:19
jets_cff.payload
payload
Definition: jets_cff.py:34
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
popcon::PopConSourceHandler< DQMSummary >::tagInfo
cond::TagInfo_t const & tagInfo() const
Definition: PopConSourceHandler.h:78
cond::Iov_t::payloadId
Hash payloadId
Definition: Types.h:55
cond::LogDBEntry_t::usertext
std::string usertext
Definition: Types.h:90
cond::Iov_t::since
Time_t since
Definition: Types.h:53
cond::LogDBEntry_t::destinationDB
std::string destinationDB
Definition: Types.h:88
cond::TagInfo_t::lastInterval
Iov_t lastInterval
Definition: Types.h:73
reco::JetExtendedAssociation::Ref
edm::Ref< Container > Ref
Definition: JetExtendedAssociation.h:32
popcon::PopConSourceHandler< DQMSummary >::lastPayload
Ref lastPayload() const
Definition: PopConSourceHandler.h:81
popcon::DQMSummarySourceHandler::m_since
unsigned long long m_since
Definition: DQMSummarySourceHandler.h:21
popcon::PopConSourceHandler< DQMSummary >::logDBEntry
cond::LogDBEntry_t const & logDBEntry() const
Definition: PopConSourceHandler.h:84
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
popcon::DQMSummarySourceHandler::m_pass
std::string m_pass
Definition: DQMSummarySourceHandler.h:25
cond::TagInfo_t::size
size_t size
Definition: Types.h:74
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443