CMS 3D CMS Logo

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