CMS 3D CMS Logo

SiStripMonitorCondDataOnDemandExample.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: SiStripMonitorSummary
4 // Class : SiStripMonitorCondDataOnDemandExample
5 //
6 // Original Author: Evelyne Delmeire
7 //
8 
9 
17 
20 
21 #include "TH1F.h"
22 #include "TH2F.h"
23 #include "TProfile.h"
24 
25 // std
26 #include <cstdlib>
27 #include <string>
28 #include <cmath>
29 #include <numeric>
30 #include <algorithm>
31 
32 
33 //
34 // ----- Constructor
35 //
37 // -----
38 
39 
40 
41 //
42 // ----- Destructor
43 //
45 // -----
46 
47 
48 
49 
50 //
51 // ----- beginRun
52 //
54  eventCounter_=0;
56  condDataMonitoring_->beginRun(run.run(),eSetup);
57 
58 
59 
60 } // beginRun
61 // -----
62 
63 
64 
65 //
66 // ----- beginJob
67 //
69 
70 
71 
72 //
73 // ----- Analyze
74 //
76  //eventCounter_++;
77 
78  // on demand type I : eventSetup and detId to be passed
79  // output : ME's corresponding to that detId
80 
81 
82  //if(eventCounter_==1){ condDataMonitoring_ -> getModMEsOnDemand(eSetup,369125542);}
83 
84  // on demand type II : eventSetup, subdetector-type(TIB/TOB/TEC/TID),
85  // subdetector-side for TEC/TID (0 for TIB and TOB)
86  // layer_number (0=all layers)
87 
88  //if(eventCounter_==2){ condDataMonitoring_ -> getLayerMEsOnDemand(eSetup,"TEC",0,1);}
89  //condDataMonitoring_ -> getModMEsOnDemand(eSetup,369125542);
90  condDataMonitoring_ -> getLayerMEsOnDemand(eSetup,"TEC",2,4);
91 
92 
93 
94 } // analyze
95 // -----
96 
97 
98 
99 //
100 // ----- endRun
101 //
103 
104  condDataMonitoring_->endRun(eSetup);
105 
106 } // endRun
107 // -----
108 
109 
110 
111 //
112 // ----- endJob
113 //
115 
116 
119 
120 
RunNumber_t run() const
Definition: RunBase.h:40
void beginRun(edm::RunNumber_t iRun, edm::EventSetup const &eSetup)
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
void analyze(const edm::Event &, const edm::EventSetup &) override
void beginRun(edm::Run const &run, edm::EventSetup const &eSetup) override
int iEvent
Definition: GenABIO.cc:230
void endRun(edm::EventSetup const &eSetup)
void endRun(edm::Run const &run, edm::EventSetup const &eSetup) override
Definition: Run.h:43