Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 74463
b: "refs/heads/CMSSW_7_1_X"
c: 1eb5b09
h: "refs/heads/CMSSW_7_1_X"
i:
  74461: 4bc61ca
  74459: 3de6ba8
  74455: 2fa1a0a
  74447: 9751db5
  74431: 2b2c881
v: v3
  • Loading branch information
Andreas Meyer committed Sep 30, 2009
1 parent a64a4ec commit e587cdc
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
refs/heads/gh-pages: 09c786f70121f131b3715aaf3464996502bbeb7e
"refs/heads/CMSSW_7_1_X": 1bca28f3f961eb95cf33792c2c2d7ad9806a2a36
"refs/heads/CMSSW_7_1_X": 1eb5b09f1b9ee8a60564bd29917b078db0b540f0
6 changes: 4 additions & 2 deletions trunk/DQMServices/Examples/interface/DQMSourceExample.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* *
* DQM Test Client
*
* $Date: 2009/01/19 12:59:24 $
* $Revision: 1.10 $
* $Date: 2009/03/09 20:20:10 $
* $Revision: 1.11 $
* \author M. Zanetti CERN
*
*/
Expand Down Expand Up @@ -94,6 +94,8 @@ class DQMSourceExample : public edm::EDAnalyzer {
MonitorElement * h1;
MonitorElement * h1hist;
MonitorElement * h2;
MonitorElement * h3;
MonitorElement * h4;
MonitorElement * summ;

};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

######################################################################################
### include your reference file
#process.DQMStore.referenceFileName = 'ref.root'
process.DQMStore.referenceFileName = 'ref.root'
### set
#process.DQMStore.collateHistograms = cms.untracked.bool(True)

Expand Down
10 changes: 6 additions & 4 deletions trunk/DQMServices/Examples/src/DQMSourceExample.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
* \file DQMSourceExample.cc
* \author C.Leonidopoulos
* Last Update:
* $Date: 2009/09/06 11:24:52 $
* $Revision: 1.21 $
* $Date: 2009/09/29 19:39:18 $
* $Revision: 1.22 $
* $Author: ameyer $
*
* Description: Simple example showing how to create a DQM source creating and filling
Expand Down Expand Up @@ -108,7 +108,8 @@ void DQMSourceExample::beginJob(const EventSetup& context) {
s1 = dbe_->bookString("s1", "My string");
h1 = dbe_->book1D("h1f", "Example TH1F 1D histogram.", NBINS2, XMIN, XMAX);
h2 = dbe_->book1S("h1s", "Example TH1S histogram.", NBINS, XMIN, XMAX);
// h3 = dbe_->book1DD("h1d", "Example TH1D histogram.", NBINS, XMIN, XMAX);
h3 = dbe_->book1DD("h1d", "Example TH1D histogram.", NBINS, XMIN, XMAX);
h4 = dbe_->book2DD("h2d", "Example TH2D histogram.", NBINS, XMIN, XMAX,NBINS, XMIN, XMAX);
p1 = dbe_->bookProfile( "prof1", "My profile 1D", NBINS,XMIN,XMAX,NBINS,XMIN,XMAX,"");
p2 = dbe_->bookProfile2D("prof2", "My profile 2D", NBINS,XMIN,XMAX,NBINS,XMIN,XMAX,NBINS,XMIN,XMAX,"");
h1hist = dbe_->book1D("history 1D","Example 1 1D history plot", 30, 0.,30.);
Expand Down Expand Up @@ -196,7 +197,8 @@ void DQMSourceExample::analyze(const Event& iEvent, const EventSetup& iSetup) {
deadTrue->Fill( gRandom->Gaus(20, 10), 2.);
deadFalse->Fill( gRandom->Gaus(20, 4), 1.);
h2->Fill( gRandom->Gaus(20, 4), 1.);
// h3->Fill( XMIN, 1.); // FIXME use double
h3->Fill( XMIN, 0xffff00000000LL);
h4->Fill( XMIN, XMIN, 0xffff00000000LL);

//h1hist->Print();
//h1hist->Print();
Expand Down

0 comments on commit e587cdc

Please sign in to comment.