CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTRecHitClients.cc
Go to the documentation of this file.
6 
8 
9 //#include "TFile.h"
10 #include <string>
11 #include <iostream>
12 #include <map>
13 
14 
15 using namespace std;
16 using namespace edm;
17 
19  dbe = Service<DQMStore>().operator->();
20 }
22 }
24  edm::EventSetup const& c){
25  Tutils * util = new Tutils;
26  MonitorElement * hRes_S3RPhi = dbe->get("DT/1DRecHits/Res/1D_S3RPhi_hRes");
27  MonitorElement * hRes_S3RZ = dbe->get("DT/1DRecHits/Res/1D_S3RZ_hRes");
28  MonitorElement * hRes_S3RZ_W0 = dbe->get("DT/1DRecHits/Res/1D_S3RZ_W0_hRes");
29  MonitorElement * hRes_S3RZ_W1 = dbe->get("DT/1DRecHits/Res/1D_S3RZ_W1_hRes");
30  MonitorElement * hRes_S3RZ_W2 = dbe->get("DT/1DRecHits/Res/1D_S3RZ_W2_hRes");
31 
32  MonitorElement * hPull_S3RPhi = dbe->get("DT/1DRecHits/Pull/1D_S3RPhi_hPull");
33  MonitorElement * hPull_S3RZ = dbe->get("DT/1DRecHits/Pull/1D_S3RZ_hPull");
34  MonitorElement * hPull_S3RZ_W0 = dbe->get("DT/1DRecHits/Pull/1D_S3RZ_W0_hPull");
35  MonitorElement * hPull_S3RZ_W1 = dbe->get("DT/1DRecHits/Pull/1D_S3RZ_W1_hPull");
36  MonitorElement * hPull_S3RZ_W2 = dbe->get("DT/1DRecHits/Pull/1D_S3RZ_W2_hPull");
37 
38 
39  util->drawGFit(hRes_S3RPhi->getTH1(),-0.2,0.2,-0.1,0.1);
40  util->drawGFit(hRes_S3RZ->getTH1(),-0.2,0.2,-0.1,0.1);
41  util->drawGFit(hRes_S3RZ_W0->getTH1(),-0.2,0.2,-0.1,0.1);
42  util->drawGFit(hRes_S3RZ_W1->getTH1(),-0.2,0.2,-0.1,0.1);
43  util->drawGFit(hRes_S3RZ_W2->getTH1(),-0.2,0.2,-0.1,0.1);
44 
45  util->drawGFit(hPull_S3RPhi->getTH1(),-5,5,-5,5);
46  util->drawGFit(hPull_S3RZ->getTH1(),-5,5,-5,5);
47  util->drawGFit(hPull_S3RZ_W0->getTH1(),-5,5,-5,5);
48  util->drawGFit(hPull_S3RZ_W1->getTH1(),-5,5,-5,5);
49  util->drawGFit(hPull_S3RZ_W2->getTH1(),-5,5,-5,5);
50 
51 
52 }
54 }
55 
56 void DTRecHitClients::analyze(const Event& e, const EventSetup& context){
57 
58 
59 }
virtual ~DTRecHitClients()
Destructor.
DTRecHitClients(const edm::ParameterSet &ps)
Constructor.
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
void endLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &c)
TH1 * getTH1(void) const
void drawGFit(TH1 *h1, float nsigmas, float min, float max)
Definition: utils.h:9