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::~DT2DSegmentClients
~DT2DSegmentClients() override
Destructor.
Definition: DT2DSegmentClients.cc:16
edm
HLT enums.
Definition: AlignableModifier.h:19
Tutils
Definition: utils.h:9
DT2DSegmentClients
Definition: DT2DSegmentClients.h:15
utils.h
DQMStore.h
dqm::legacy::MonitorElement
Definition: MonitorElement.h:462
Histograms.h
DT2DSegmentClients.h
MakerMacros.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
Service.h
DT2DSegmentClients::dqmEndJob
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
End Job.
Definition: DT2DSegmentClients.cc:18
dqm::legacy::MonitorElement::getTH1
virtual TH1 * getTH1() const
Definition: MonitorElement.h:475
edm::ParameterSet
Definition: ParameterSet.h:47
DT2DSegmentClients::DT2DSegmentClients
DT2DSegmentClients(const edm::ParameterSet &ps)
Constructor.
Definition: DT2DSegmentClients.cc:11
std
Definition: JetResolutionObject.h:76
dqm::implementation::IGetter
Definition: DQMStore.h:484
HEff2DHitHarvest
Definition: Histograms.h:383
dqm::implementation::IGetter::get
virtual MonitorElement * get(std::string const &fullpath) const
Definition: DQMStore.cc:673
dqm::implementation::IBooker
Definition: DQMStore.h:43
util
Definition: __init__.py:1
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27