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 
16 
19 
20 #include "TH1F.h"
21 #include "TH2F.h"
22 #include "TProfile.h"
23 
24 // std
25 #include <cstdlib>
26 #include <string>
27 #include <cmath>
28 #include <numeric>
29 #include <algorithm>
30 
31 
32 //
33 // ----- Constructor
34 //
36 // -----
37 
38 
39 
40 //
41 // ----- Destructor
42 //
44 // -----
45 
46 
47 
48 
49 //
50 // ----- beginRun
51 //
53  eventCounter_=0;
56 
57 
58 
59 } // beginRun
60 // -----
61 
62 
63 
64 //
65 // ----- beginJob
66 //
68 
69 
70 
71 //
72 // ----- Analyze
73 //
75  //eventCounter_++;
76 
77  // on demand type I : eventSetup and detId to be passed
78  // output : ME's corresponding to that detId
79 
80 
81  //if(eventCounter_==1){ condDataMonitoring_ -> getModMEsOnDemand(eSetup,369125542);}
82 
83  // on demand type II : eventSetup, subdetector-type(TIB/TOB/TEC/TID),
84  // subdetector-side for TEC/TID (0 for TIB and TOB)
85  // layer_number (0=all layers)
86 
87  //if(eventCounter_==2){ condDataMonitoring_ -> getLayerMEsOnDemand(eSetup,"TEC",0,1);}
88  //condDataMonitoring_ -> getModMEsOnDemand(eSetup,369125542);
89  condDataMonitoring_ -> getLayerMEsOnDemand(eSetup,"TEC",2,4);
90 
91 
92 
93 } // analyze
94 // -----
95 
96 
97 
98 //
99 // ----- endRun
100 //
102 
103  condDataMonitoring_->endRun(eSetup);
104 
105 } // endRun
106 // -----
107 
108 
109 
110 //
111 // ----- endJob
112 //
114 
115 
118 
119 
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
void analyze(const edm::Event &, const edm::EventSetup &) override
void beginRun(edm::EventSetup const &eSetup)
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