CMS 3D CMS Logo

DT2DSegmentClients.cc
Go to the documentation of this file.
4 
5 #include "DT2DSegmentClients.h"
6 #include "Histograms.h"
7 
8 using namespace std;
9 using namespace edm;
10 
12  do2D_ = pset.getUntrackedParameter<bool>("do2D", false);
13  doSLPhi_ = pset.getUntrackedParameter<bool>("doSLPhi", false);
14 }
15 
17 
19  MonitorElement *hResPos = getter.get("DT/2DSegments/Res/2D_SuperPhi_hResPos");
20  MonitorElement *hResAngle = getter.get("DT/2DSegments/Res/2D_SuperPhi_hResAngle");
21  MonitorElement *hPullPos = getter.get("DT/2DSegments/Pull/2D_SuperPhi_hPullPos");
22  MonitorElement *hPullAngle = getter.get("DT/2DSegments/Pull/2D_SuperPhi_hPullAngle");
23 
24  Tutils util;
25  util.drawGFit(hResPos->getTH1(), -0.1, 0.1, -0.1, 0.1);
26  util.drawGFit(hResAngle->getTH1(), -0.1, 0.1, -0.1, 0.1);
27  util.drawGFit(hPullPos->getTH1(), -5, 5, -5, 5);
28  util.drawGFit(hPullAngle->getTH1(), -5, 5, -5, 5);
29 
30  if (do2D_) {
31  HEff2DHitHarvest hEff_RPhi("RPhi", booker, getter);
32  HEff2DHitHarvest hEff_RZ("RZ", booker, getter);
33  HEff2DHitHarvest hEff_RZ_W0("RZ_W0", booker, getter);
34  HEff2DHitHarvest hEff_RZ_W1("RZ_W1", booker, getter);
35  HEff2DHitHarvest hEff_RZ_W2("RZ_W2", booker, getter);
36  }
37  if (doSLPhi_) {
38  HEff2DHitHarvest hEff_SuperPhi("SuperPhi", booker, getter);
39  }
40 }
41 
42 // declare this as a framework plugin
~DT2DSegmentClients() override
Destructor.
Definition: __init__.py:1
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
End Job.
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
virtual MonitorElement * get(std::string const &fullpath) const
Definition: DQMStore.cc:697
virtual TH1 * getTH1() const
HLT enums.
Definition: utils.h:9
DT2DSegmentClients(const edm::ParameterSet &ps)
Constructor.