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