Skip to content

Commit

Permalink
bug fix: move from cond::Time_t or boost::int64_t to boost::uint64_t …
Browse files Browse the repository at this point in the history
…(waiting for PSet)
  • Loading branch information
Salvatore Di Guida committed Oct 23, 2009
1 parent 1616e1b commit d29527c
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include "FWCore/ParameterSet/interface/ParameterSetfwd.h"
#include "CondCore/PopCon/interface/PopConSourceHandler.h"
#include "CondFormats/Common/interface/Time.h"
//#include "CondFormats/Common/interface/Time.h"
#include "CondFormats/GeometryObjects/interface/GeometryFile.h"
#include <string>

Expand All @@ -18,7 +18,8 @@ namespace popcon {
std::string m_name;
std::string m_file;
bool m_zip;
cond::Time_t m_since;
//cond::Time_t m_since;
boost::uint64_t m_since;
bool m_debugMode;
};
}
Expand Down
4 changes: 3 additions & 1 deletion CondTools/DQM/interface/DQMSummarySourceHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

#include "FWCore/ParameterSet/interface/ParameterSetfwd.h"
#include "CondCore/PopCon/interface/PopConSourceHandler.h"
//#include "CondFormats/Common/interface/Time.h"
#include "CondFormats/DQMObjects/interface/DQMSummary.h"
#include <string>

Expand All @@ -15,7 +16,8 @@ namespace popcon {
std::string id() const;
private:
std::string m_name;
boost::int64_t m_since;
//cond::Time_t m_since;
boost::uint64_t m_since;
// for reading from omds
std::string m_connectionString;
std::string m_user;
Expand Down
2 changes: 1 addition & 1 deletion CondTools/DQM/src/DQMSummarySourceHandler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace popcon {
DQMSummarySourceHandler::DQMSummarySourceHandler(const edm::ParameterSet & pset):
m_name(pset.getUntrackedParameter<std::string>("name","DQMSummarySourceHandler")),
m_since(pset.getUntrackedParameter<boost::int64_t>("firstSince",1)),
m_since(pset.getUntrackedParameter<boost::uint64_t>("firstSince",1)),
m_user(pset.getUntrackedParameter<std::string>("OnlineDBUser","CMS_DQM_SUMMARY")),
m_pass(pset.getUntrackedParameter<std::string>("OnlineDBPass","****")) {
m_connectionString = "oracle://cms_omds_lb/CMS_DQM_SUMMARY";
Expand Down
6 changes: 3 additions & 3 deletions CondTools/DQM/test/DQMReferenceHistogramRootFileTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
process.PoolDBOutputService = cms.Service("PoolDBOutputService",
process.CondDBCommon,
timetype = cms.untracked.string('runnumber'),
toPut = cms.VPSet(cms.PSet(record = cms.string('DQMReferenceHistogramRootFileRcd'),
toPut = cms.VPSet(cms.PSet(record = cms.string('GeometryFile'),
tag = cms.string('ROOTFILE_Test')
)
),
logconnect = cms.untracked.string('sqlite_file:RPCRootTestLog.db')
logconnect = cms.untracked.string('sqlite_file:ROOTFILE_TestLog.db')
)

process.dqmReferenceHistogramRootFileTest = cms.EDAnalyzer("DQMReferenceHistogramRootFilePopConAnalyzer",
record = cms.string('DQMReferenceHistogramRootFileRcd'),
record = cms.string('GeometryFile'),
loggingOn = cms.untracked.bool(True), #always True, needs to create the log db
SinceAppendMode = cms.bool(True),
Source = cms.PSet(ROOTFile = cms.untracked.string("salvo.root"),
Expand Down
8 changes: 4 additions & 4 deletions CondTools/DQM/test/DQMSummaryTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
process.MessageLogger=cms.Service("MessageLogger",
destinations=cms.untracked.vstring("cout"),
cout=cms.untracked.PSet(
treshold=cms.untracked.string("INFO")
threshold=cms.untracked.string("INFO")
)
)

Expand All @@ -26,18 +26,18 @@
process.CondDBCommon,
timetype = cms.untracked.string('runnumber'), #IOV: 'runnumber'-> number of the run, 'timestamp'-> microseconds starting from 1/1/1970
toPut = cms.VPSet(cms.PSet(
record = cms.string('DQMSummaryRcd'),
record = cms.string('DQMSummary'),
tag = cms.string('DQMSummaryTest')
)),
logconnect= cms.untracked.string('sqlite_file:DQMSummaryLogTest.db')
)

process.dqmSummaryTest = cms.EDAnalyzer("DQMSummaryPopConAnalyzer",
record = cms.string('DQMSummaryRcd'),
record = cms.string('DQMSummary'),
loggingOn = cms.untracked.bool(True), #always True, needs to create the log db
SinceAppendMode = cms.bool(True),
Source = cms.PSet(
firstSince = cms.untracked.int64(43434) #1, 43434, 46335, 51493, 51500
firstSince = cms.untracked.uint64(43434) #1, 43434, 46335, 51493, 51500
)
)

Expand Down

0 comments on commit d29527c

Please sign in to comment.