CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC4_patch1/src/Validation/DTRecHits/plugins/DTRecHitClients.cc

Go to the documentation of this file.
00001 #include "Validation/DTRecHits/plugins/DTRecHitClients.h"
00002 #include "FWCore/ServiceRegistry/interface/Service.h"
00003 #include "DQMServices/Core/interface/MonitorElement.h"
00004 #include "DQMServices/Core/interface/DQMStore.h"
00005 #include "FWCore/Framework/interface/MakerMacros.h"
00006 
00007 #include "Validation/DTRecHits/interface/utils.h"
00008 
00009 //#include "TFile.h"
00010 #include <string>
00011 #include <iostream>
00012 #include <map>
00013 
00014 
00015 using namespace std;
00016 using namespace edm;
00017 
00018 DTRecHitClients::DTRecHitClients(const edm::ParameterSet& ps){
00019   dbe = Service<DQMStore>().operator->();
00020 }
00021 DTRecHitClients::~DTRecHitClients(){
00022 }
00023 void DTRecHitClients::endLuminosityBlock(edm::LuminosityBlock const& lumiSeg,
00024     edm::EventSetup const& c){
00025   Tutils * util = new Tutils;
00026   MonitorElement * hRes_S3RPhi = dbe->get("DT/1DRecHits/Res/1D_S3RPhi_hRes");
00027   MonitorElement * hRes_S3RZ = dbe->get("DT/1DRecHits/Res/1D_S3RZ_hRes");
00028   MonitorElement * hRes_S3RZ_W0 = dbe->get("DT/1DRecHits/Res/1D_S3RZ_W0_hRes");
00029   MonitorElement * hRes_S3RZ_W1 = dbe->get("DT/1DRecHits/Res/1D_S3RZ_W1_hRes");
00030   MonitorElement * hRes_S3RZ_W2 = dbe->get("DT/1DRecHits/Res/1D_S3RZ_W2_hRes");
00031 
00032   MonitorElement * hPull_S3RPhi = dbe->get("DT/1DRecHits/Pull/1D_S3RPhi_hPull");
00033   MonitorElement * hPull_S3RZ = dbe->get("DT/1DRecHits/Pull/1D_S3RZ_hPull");
00034   MonitorElement * hPull_S3RZ_W0 = dbe->get("DT/1DRecHits/Pull/1D_S3RZ_W0_hPull");
00035   MonitorElement * hPull_S3RZ_W1 = dbe->get("DT/1DRecHits/Pull/1D_S3RZ_W1_hPull");
00036   MonitorElement * hPull_S3RZ_W2 = dbe->get("DT/1DRecHits/Pull/1D_S3RZ_W2_hPull");
00037 
00038 
00039   util->drawGFit(hRes_S3RPhi->getTH1(),-0.2,0.2,-0.1,0.1);
00040   util->drawGFit(hRes_S3RZ->getTH1(),-0.2,0.2,-0.1,0.1);
00041   util->drawGFit(hRes_S3RZ_W0->getTH1(),-0.2,0.2,-0.1,0.1);
00042   util->drawGFit(hRes_S3RZ_W1->getTH1(),-0.2,0.2,-0.1,0.1);
00043   util->drawGFit(hRes_S3RZ_W2->getTH1(),-0.2,0.2,-0.1,0.1);
00044 
00045   util->drawGFit(hPull_S3RPhi->getTH1(),-5,5,-5,5);
00046   util->drawGFit(hPull_S3RZ->getTH1(),-5,5,-5,5);
00047   util->drawGFit(hPull_S3RZ_W0->getTH1(),-5,5,-5,5);
00048   util->drawGFit(hPull_S3RZ_W1->getTH1(),-5,5,-5,5);
00049   util->drawGFit(hPull_S3RZ_W2->getTH1(),-5,5,-5,5);
00050 
00051 
00052 }
00053 void DTRecHitClients::endJob() {
00054 }
00055 
00056 void DTRecHitClients::analyze(const Event& e, const EventSetup& context){
00057 
00058   
00059 }