Skip to content

Commit

Permalink
test suite #1
Browse files Browse the repository at this point in the history
  • Loading branch information
deguio committed Jun 24, 2014
1 parent dcf13f5 commit c142e63
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 23 deletions.
4 changes: 2 additions & 2 deletions DQMServices/Components/python/test/create_filePB_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
b = booking.BookingParams(sys.argv)
b.doCheck(testOnly=False)

process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(25))
process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(10))
process.source = cms.Source("EmptySource",
firstLuminosityBlock = cms.untracked.uint32(1),
firstEvent = cms.untracked.uint32(1),
numberEventsInLuminosityBlock = cms.untracked.uint32(10))
numberEventsInLuminosityBlock = cms.untracked.uint32(1))


elements = c.createElements()
Expand Down
20 changes: 13 additions & 7 deletions DQMServices/Components/python/test/create_filePB_ref_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
b = booking.BookingParams(sys.argv)
b.doCheck(testOnly=False)

process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(25))
process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(10))
process.source = cms.Source("EmptySource",
firstLuminosityBlock = cms.untracked.uint32(1),
firstEvent = cms.untracked.uint32(1),
numberEventsInLuminosityBlock = cms.untracked.uint32(10))
numberEventsInLuminosityBlock = cms.untracked.uint32(1))


elements = c.createElements()
Expand Down Expand Up @@ -64,9 +64,15 @@
process.DQMStore.forceResetOnBeginRun = cms.untracked.bool(True)


#----------------------------------------------------------#
#global options
#process.DQMStore.LSbasedMode = cms.untracked.bool(True)
#process.DQMStore.verbose = cms.untracked.int32(5)
#----------------------------------------------------------#
### global options Online ###
process.DQMStore.LSbasedMode = cms.untracked.bool(False)
process.DQMStore.verbose = cms.untracked.int32(5)

#process.add_(cms.Service("Tracer"))
process.dqmSaver.workflow = ''
process.dqmSaver.convention = 'FilterUnit'
process.dqmSaver.saveByLumiSection = -1
process.dqmSaver.fileFormat = cms.untracked.string('ROOT')
process.dqmSaver.fakeFilterUnitMode = cms.untracked.bool(True)

#process.add_(cms.Service("Tracer"))
9 changes: 6 additions & 3 deletions DQMServices/Components/python/test/harv_filePB_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,17 @@
resolution = cms.vstring(),
subDirs = cms.untracked.vstring(folder))

process.dqmSaver.workflow = cms.untracked.string("/Test/FilePB/DQM")
process.dqmSaver.saveByLumiSection = cms.untracked.int32(1)
process.dqmSaver.workflow = cms.untracked.string("")
process.dqmSaver.saveByLumiSection = cms.untracked.int32(-1)
process.dqmSaver.saveByRun = cms.untracked.int32(1)
process.dqmSaver.convention = 'Online'


process.p = cms.Path(process.harvester + process.eff)
process.o = cms.EndPath(process.dqmSaver)

process.add_(cms.Service("DQMStore"))
#process.DQMStore.verbose = cms.untracked.int32(3)
process.DQMStore.verbose = cms.untracked.int32(5)

#process.add_(cms.Service("Tracer"))

5 changes: 3 additions & 2 deletions DQMServices/Components/python/test/harv_filePB_ref_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@
resolution = cms.vstring(),
subDirs = cms.untracked.vstring(folder))

process.dqmSaver.workflow = cms.untracked.string("/Test/FilePBref/DQM")
process.dqmSaver.saveByLumiSection = cms.untracked.int32(1)
process.dqmSaver.workflow = cms.untracked.string("")
process.dqmSaver.saveByLumiSection = cms.untracked.int32(-1)
process.dqmSaver.saveByRun = cms.untracked.int32(1)
process.dqmSaver.convention = 'Online'

process.p = cms.Path(process.harvester + process.eff)
process.o = cms.EndPath(process.dqmSaver)
Expand Down
10 changes: 5 additions & 5 deletions DQMServices/Components/test/DummyBookFillDQMStore.cc
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,11 @@ void
DummyBookFillDQMStore::analyze(edm::Event const& iEvent,
edm::EventSetup const& iSetup) {

std::vector<boost::shared_ptr<FillerBase> >::iterator it = m_runFillers.begin();
std::vector<boost::shared_ptr<FillerBase> >::iterator ite = m_runFillers.end();
for (; it != ite; ++it)
(*it)->fill();
std::cout << "filling histos" << std::endl;


// using namespace edm;
Expand Down Expand Up @@ -292,11 +297,6 @@ void DummyBookFillDQMStore::beginJob() {

// ------------ method called once each job just after ending the event loop ------------
void DummyBookFillDQMStore::endJob() {
std::vector<boost::shared_ptr<FillerBase> >::iterator it = m_runFillers.begin();
std::vector<boost::shared_ptr<FillerBase> >::iterator ite = m_runFillers.end();
for (; it != ite; ++it)
(*it)->fill();
std::cout << "filling histos" << std::endl;
}

// ------------ method called when starting to processes a run ------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,11 @@ void
DummyBookFillDQMStoreMultiThread::analyze(edm::Event const& iEvent,
edm::EventSetup const& iSetup) {

std::vector<boost::shared_ptr<FillerBase> >::iterator it = m_runFillers.begin();
std::vector<boost::shared_ptr<FillerBase> >::iterator ite = m_runFillers.end();
for (; it != ite; ++it)
(*it)->fill();

// using namespace edm;
/* This is an event example
//Read 'ExampleData' from the Event
Expand Down Expand Up @@ -286,10 +291,6 @@ void DummyBookFillDQMStoreMultiThread::endJob() {

// ------------ method called when ending the processing of a run ------------
void DummyBookFillDQMStoreMultiThread::endRun(edm::Run const&, edm::EventSetup const&) {
std::vector<boost::shared_ptr<FillerBase> >::iterator it = m_runFillers.begin();
std::vector<boost::shared_ptr<FillerBase> >::iterator ite = m_runFillers.end();
for (; it != ite; ++it)
(*it)->fill();
}

// ------------ method called when starting to processes a luminosity block ------------
Expand Down

0 comments on commit c142e63

Please sign in to comment.