File indexing completed on 2024-04-06 12:31:59
0001 #include "DQMServices/Core/interface/DQMStore.h"
0002 #include "FWCore/ServiceRegistry/interface/Service.h"
0003 #include "Validation/DTRecHits/interface/utils.h"
0004
0005 #include "DT2DSegmentClients.h"
0006 #include "Histograms.h"
0007
0008 using namespace std;
0009 using namespace edm;
0010
0011 DT2DSegmentClients::DT2DSegmentClients(edm::ParameterSet const &pset) {
0012 do2D_ = pset.getUntrackedParameter<bool>("do2D", false);
0013 doSLPhi_ = pset.getUntrackedParameter<bool>("doSLPhi", false);
0014 }
0015
0016 DT2DSegmentClients::~DT2DSegmentClients() {}
0017
0018 void DT2DSegmentClients::dqmEndJob(DQMStore::IBooker &booker, DQMStore::IGetter &getter) {
0019 MonitorElement *hResPos = getter.get("DT/2DSegments/Res/2D_SuperPhi_hResPos");
0020 MonitorElement *hResAngle = getter.get("DT/2DSegments/Res/2D_SuperPhi_hResAngle");
0021 MonitorElement *hPullPos = getter.get("DT/2DSegments/Pull/2D_SuperPhi_hPullPos");
0022 MonitorElement *hPullAngle = getter.get("DT/2DSegments/Pull/2D_SuperPhi_hPullAngle");
0023
0024 Tutils util;
0025 util.drawGFit(hResPos->getTH1(), -0.1, 0.1, -0.1, 0.1);
0026 util.drawGFit(hResAngle->getTH1(), -0.1, 0.1, -0.1, 0.1);
0027 util.drawGFit(hPullPos->getTH1(), -5, 5, -5, 5);
0028 util.drawGFit(hPullAngle->getTH1(), -5, 5, -5, 5);
0029
0030 if (do2D_) {
0031 HEff2DHitHarvest hEff_RPhi("RPhi", booker, getter);
0032 HEff2DHitHarvest hEff_RZ("RZ", booker, getter);
0033 HEff2DHitHarvest hEff_RZ_W0("RZ_W0", booker, getter);
0034 HEff2DHitHarvest hEff_RZ_W1("RZ_W1", booker, getter);
0035 HEff2DHitHarvest hEff_RZ_W2("RZ_W2", booker, getter);
0036 }
0037 if (doSLPhi_) {
0038 HEff2DHitHarvest hEff_SuperPhi("SuperPhi", booker, getter);
0039 }
0040 }
0041
0042
0043 #include "FWCore/Framework/interface/MakerMacros.h"
0044 DEFINE_FWK_MODULE(DT2DSegmentClients);