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 
16 
19 
20 #include "TH1F.h"
21 #include "TH2F.h"
22 #include "TProfile.h"
23 
24 // std
25 #include <algorithm>
26 #include <cmath>
27 #include <cstdlib>
28 #include <numeric>
29 #include <string>
30 
31 //
32 // ----- Constructor
33 //
35  : conf_(iConfig) {}
36 // -----
37 
38 //
39 // ----- Destructor
40 //
42 // -----
43 
44 //
45 // ----- beginRun
46 //
48  eventCounter_ = 0;
50  condDataMonitoring_->beginRun(run.run(), eSetup);
51 
52 } // beginRun
53 // -----
54 
55 //
56 // ----- beginJob
57 //
59 
60 //
61 // ----- Analyze
62 //
64  // eventCounter_++;
65 
66  // on demand type I : eventSetup and detId to be passed
67  // output : ME's corresponding to that detId
68 
69  // if(eventCounter_==1){ condDataMonitoring_ ->
70  // getModMEsOnDemand(eSetup,369125542);}
71 
72  // on demand type II : eventSetup, subdetector-type(TIB/TOB/TEC/TID),
73  // subdetector-side for TEC/TID (0 for TIB and
74  // TOB) layer_number (0=all layers)
75 
76  // if(eventCounter_==2){ condDataMonitoring_ ->
77  // getLayerMEsOnDemand(eSetup,"TEC",0,1);} condDataMonitoring_ ->
78  // getModMEsOnDemand(eSetup,369125542);
79  condDataMonitoring_->getLayerMEsOnDemand(eSetup, "TEC", 2, 4);
80 
81 } // analyze
82 // -----
83 
84 //
85 // ----- endRun
86 //
88  condDataMonitoring_->endRun(eSetup);
89 
90 } // endRun
91 // -----
92 
93 //
94 // ----- endJob
95 //
97 
RunNumber_t run() const
Definition: RunBase.h:40
void beginRun(edm::RunNumber_t iRun, edm::EventSetup const &eSetup)
void analyze(const edm::Event &, const edm::EventSetup &) override
void beginRun(edm::Run const &run, edm::EventSetup const &eSetup) override
void getLayerMEsOnDemand(edm::EventSetup const &eSetup, std::string requestedSubDetector, uint32_t requestedSide, uint32_t requestedLayer)
int iEvent
Definition: GenABIO.cc:224
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
void endRun(edm::EventSetup const &eSetup)
void endRun(edm::Run const &run, edm::EventSetup const &eSetup) override
Definition: Run.h:45