00001 #include "DT4DSegmentClients.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 #include "FWCore/Framework/interface/MakerMacros.h"
00007 #include "FWCore/Framework/interface/Frameworkfwd.h"
00008 #include "FWCore/Framework/interface/Event.h"
00009 #include "FWCore/Framework/interface/ESHandle.h"
00010 #include "DQMServices/Core/interface/DQMStore.h"
00011 #include "DQMServices/Core/interface/MonitorElement.h"
00012 #include "Validation/DTRecHits/interface/utils.h"
00013
00014
00015 #include <string>
00016 #include <iostream>
00017 #include <map>
00018
00019
00020 using namespace std;
00021 using namespace edm;
00022
00023 DT4DSegmentClients::DT4DSegmentClients(const edm::ParameterSet& ps){
00024 }
00025 DT4DSegmentClients::~DT4DSegmentClients(){
00026 }
00027 void DT4DSegmentClients::endLuminosityBlock(edm::LuminosityBlock const& lumiSeg,
00028 edm::EventSetup const& c){
00029 dbe = Service<DQMStore>().operator->();
00030
00031
00032 MonitorElement * hResAlpha = dbe->get("DT/4DSegments/Res/4D_All_hResAlpha");
00033 MonitorElement * hResBeta = dbe->get("DT/4DSegments/Res/4D_All_hResBeta");
00034 MonitorElement * hResX = dbe->get("DT/4DSegments/Res/4D_All_hResX");
00035 MonitorElement * hResY = dbe->get("DT/4DSegments/Res/4D_All_hResY");
00036 MonitorElement * hResBetaRZ = dbe->get("DT/4DSegments/Res/4D_All_hResBetaRZ");
00037 MonitorElement * hResYRZ = dbe->get("DT/4DSegments/Res/4D_All_hResYRZ");
00038
00039 MonitorElement * hResAlpha_W0 = dbe->get("DT/4DSegments/Res/4D_W0_hResAlpha");
00040 MonitorElement * hResBeta_W0 = dbe->get("DT/4DSegments/Res/4D_W0_hResBeta");
00041 MonitorElement * hResX_W0 = dbe->get("DT/4DSegments/Res/4D_W0_hResX");
00042 MonitorElement * hResY_W0 = dbe->get("DT/4DSegments/Res/4D_W0_hResY");
00043 MonitorElement * hResBetaRZ_W0 = dbe->get("DT/4DSegments/Res/4D_W0_hResBetaRZ");
00044 MonitorElement * hResYRZ_W0 = dbe->get("DT/4DSegments/Res/4D_W0_hResYRZ");
00045
00046 MonitorElement * hResAlpha_W1 = dbe->get("DT/4DSegments/Res/4D_W1_hResAlpha");
00047 MonitorElement * hResBeta_W1 = dbe->get("DT/4DSegments/Res/4D_W1_hResBeta");
00048 MonitorElement * hResX_W1 = dbe->get("DT/4DSegments/Res/4D_W1_hResX");
00049 MonitorElement * hResY_W1 = dbe->get("DT/4DSegments/Res/4D_W1_hResY");
00050 MonitorElement * hResBetaRZ_W1 = dbe->get("DT/4DSegments/Res/4D_W1_hResBetaRZ");
00051 MonitorElement * hResYRZ_W1 = dbe->get("DT/4DSegments/Res/4D_W1_hResYRZ");
00052
00053 MonitorElement * hResAlpha_W2 = dbe->get("DT/4DSegments/Res/4D_W2_hResAlpha");
00054 MonitorElement * hResBeta_W2 = dbe->get("DT/4DSegments/Res/4D_W2_hResBeta");
00055 MonitorElement * hResX_W2 = dbe->get("DT/4DSegments/Res/4D_W2_hResX");
00056 MonitorElement * hResY_W2 = dbe->get("DT/4DSegments/Res/4D_W2_hResY");
00057 MonitorElement * hResBetaRZ_W2 = dbe->get("DT/4DSegments/Res/4D_W2_hResBetaRZ");
00058 MonitorElement * hResYRZ_W2 = dbe->get("DT/4DSegments/Res/4D_W2_hResYRZ");
00059
00060 MonitorElement * hPullAlpha = dbe->get("DT/4DSegments/Pull/4D_All_hPullAlpha");
00061 MonitorElement * hPullBeta = dbe->get("DT/4DSegments/Pull/4D_All_hPullBeta");
00062 MonitorElement * hPullX = dbe->get("DT/4DSegments/Pull/4D_All_hPullX");
00063 MonitorElement * hPullY = dbe->get("DT/4DSegments/Pull/4D_All_hPullY");
00064 MonitorElement * hPullBetaRZ = dbe->get("DT/4DSegments/Pull/4D_All_hPullBetaRZ");
00065 MonitorElement * hPullYRZ = dbe->get("DT/4DSegments/Pull/4D_All_hPullYRZ");
00066
00067 MonitorElement * hPullAlpha_W0 = dbe->get("DT/4DSegments/Pull/4D_W0_hPullAlpha");
00068 MonitorElement * hPullBeta_W0 = dbe->get("DT/4DSegments/Pull/4D_W0_hPullBeta");
00069 MonitorElement * hPullX_W0 = dbe->get("DT/4DSegments/Pull/4D_W0_hPullX");
00070 MonitorElement * hPullY_W0 = dbe->get("DT/4DSegments/Pull/4D_W0_hPullY");
00071 MonitorElement * hPullBetaRZ_W0 = dbe->get("DT/4DSegments/Pull/4D_W0_hPullBetaRZ");
00072 MonitorElement * hPullYRZ_W0 = dbe->get("DT/4DSegments/Pull/4D_W0_hPullYRZ");
00073
00074 MonitorElement * hPullAlpha_W1 = dbe->get("DT/4DSegments/Pull/4D_W1_hPullAlpha");
00075 MonitorElement * hPullBeta_W1 = dbe->get("DT/4DSegments/Pull/4D_W1_hPullBeta");
00076 MonitorElement * hPullX_W1 = dbe->get("DT/4DSegments/Pull/4D_W1_hPullX");
00077 MonitorElement * hPullY_W1 = dbe->get("DT/4DSegments/Pull/4D_W1_hPullY");
00078 MonitorElement * hPullBetaRZ_W1 = dbe->get("DT/4DSegments/Pull/4D_W1_hPullBetaRZ");
00079 MonitorElement * hPullYRZ_W1 = dbe->get("DT/4DSegments/Pull/4D_W1_hPullYRZ");
00080
00081 MonitorElement * hPullAlpha_W2 = dbe->get("DT/4DSegments/Pull/4D_W2_hPullAlpha");
00082 MonitorElement * hPullBeta_W2 = dbe->get("DT/4DSegments/Pull/4D_W2_hPullBeta");
00083 MonitorElement * hPullX_W2 = dbe->get("DT/4DSegments/Pull/4D_W2_hPullX");
00084 MonitorElement * hPullY_W2 = dbe->get("DT/4DSegments/Pull/4D_W2_hPullY");
00085 MonitorElement * hPullBetaRZ_W2 = dbe->get("DT/4DSegments/Pull/4D_W2_hPullBetaRZ");
00086 MonitorElement * hPullYRZ_W2 = dbe->get("DT/4DSegments/Pull/4D_W2_hPullYRZ");
00087
00088 Tutils * aux = new Tutils;
00089 aux->drawGFit(hResAlpha->getTH1(),-0.2,0.2,-0.1,0.1);
00090 aux->drawGFit(hResBeta->getTH1(),-0.2,0.2,-0.1,0.1);
00091 aux->drawGFit(hResX->getTH1(),-0.2,0.2,-0.1,0.1);
00092 aux->drawGFit(hResY->getTH1(),-0.2,0.2,-0.1,0.1);
00093 aux->drawGFit(hResBetaRZ->getTH1(),-0.2,0.2,-0.1,0.1);
00094 aux->drawGFit(hResYRZ->getTH1(),-0.2,0.2,-0.1,0.1);
00095
00096 aux->drawGFit(hResAlpha_W0->getTH1(),-0.2,0.2,-0.1,0.1);
00097 aux->drawGFit(hResBeta_W0->getTH1(),-0.2,0.2,-0.1,0.1);
00098 aux->drawGFit(hResX_W0->getTH1(),-0.2,0.2,-0.1,0.1);
00099 aux->drawGFit(hResY_W0->getTH1(),-0.2,0.2,-0.1,0.1);
00100 aux->drawGFit(hResBetaRZ_W0->getTH1(),-0.2,0.2,-0.1,0.1);
00101 aux->drawGFit(hResYRZ_W0->getTH1(),-0.2,0.2,-0.1,0.1);
00102
00103 aux->drawGFit(hResAlpha_W1->getTH1(),-0.2,0.2,-0.1,0.1);
00104 aux->drawGFit(hResBeta_W1->getTH1(),-0.2,0.2,-0.1,0.1);
00105 aux->drawGFit(hResX_W1->getTH1(),-0.2,0.2,-0.1,0.1);
00106 aux->drawGFit(hResY_W1->getTH1(),-0.2,0.2,-0.1,0.1);
00107 aux->drawGFit(hResBetaRZ_W1->getTH1(),-0.2,0.2,-0.1,0.1);
00108 aux->drawGFit(hResYRZ_W1->getTH1(),-0.2,0.2,-0.1,0.1);
00109
00110 aux->drawGFit(hResAlpha_W2->getTH1(),-0.2,0.2,-0.1,0.1);
00111 aux->drawGFit(hResBeta_W2->getTH1(),-0.2,0.2,-0.1,0.1);
00112 aux->drawGFit(hResX_W2->getTH1(),-0.2,0.2,-0.1,0.1);
00113 aux->drawGFit(hResY_W2->getTH1(),-0.2,0.2,-0.1,0.1);
00114 aux->drawGFit(hResBetaRZ_W2->getTH1(),-0.2,0.2,-0.1,0.1);
00115 aux->drawGFit(hResYRZ_W2->getTH1(),-0.2,0.2,-0.1,0.1);
00116
00117 aux->drawGFit(hPullAlpha->getTH1(),-0.2,0.2,-0.1,0.1);
00118 aux->drawGFit(hPullBeta->getTH1(),-0.2,0.2,-0.1,0.1);
00119 aux->drawGFit(hPullX->getTH1(),-0.2,0.2,-0.1,0.1);
00120 aux->drawGFit(hPullY->getTH1(),-0.2,0.2,-0.1,0.1);
00121 aux->drawGFit(hPullBetaRZ->getTH1(),-0.2,0.2,-0.1,0.1);
00122 aux->drawGFit(hPullYRZ->getTH1(),-0.2,0.2,-0.1,0.1);
00123
00124 aux->drawGFit(hPullAlpha_W0->getTH1(),-0.2,0.2,-0.1,0.1);
00125 aux->drawGFit(hPullBeta_W0->getTH1(),-0.2,0.2,-0.1,0.1);
00126 aux->drawGFit(hPullX_W0->getTH1(),-0.2,0.2,-0.1,0.1);
00127 aux->drawGFit(hPullY_W0->getTH1(),-0.2,0.2,-0.1,0.1);
00128 aux->drawGFit(hPullBetaRZ_W0->getTH1(),-0.2,0.2,-0.1,0.1);
00129 aux->drawGFit(hPullYRZ_W0->getTH1(),-0.2,0.2,-0.1,0.1);
00130
00131 aux->drawGFit(hPullAlpha_W1->getTH1(),-0.2,0.2,-0.1,0.1);
00132 aux->drawGFit(hPullBeta_W1->getTH1(),-0.2,0.2,-0.1,0.1);
00133 aux->drawGFit(hPullX_W1->getTH1(),-0.2,0.2,-0.1,0.1);
00134 aux->drawGFit(hPullY_W1->getTH1(),-0.2,0.2,-0.1,0.1);
00135 aux->drawGFit(hPullBetaRZ_W1->getTH1(),-0.2,0.2,-0.1,0.1);
00136 aux->drawGFit(hPullYRZ_W1->getTH1(),-0.2,0.2,-0.1,0.1);
00137
00138 aux->drawGFit(hPullAlpha_W2->getTH1(),-0.2,0.2,-0.1,0.1);
00139 aux->drawGFit(hPullBeta_W2->getTH1(),-0.2,0.2,-0.1,0.1);
00140 aux->drawGFit(hPullX_W2->getTH1(),-0.2,0.2,-0.1,0.1);
00141 aux->drawGFit(hPullY_W2->getTH1(),-0.2,0.2,-0.1,0.1);
00142 aux->drawGFit(hPullBetaRZ_W2->getTH1(),-0.2,0.2,-0.1,0.1);
00143 aux->drawGFit(hPullYRZ_W2->getTH1(),-0.2,0.2,-0.1,0.1);
00144 }
00145
00146 void DT4DSegmentClients::analyze(const Event& e, const EventSetup& context){
00147
00148 }
00149