CMS 3D CMS Logo

DT4DSegmentClients.cc
Go to the documentation of this file.
8 
9 #include "DT4DSegmentClients.h"
10 #include "Histograms.h"
11 
12 using namespace std;
13 using namespace edm;
14 
16  doall_ = pset.getUntrackedParameter<bool>("doall", false);
17 }
18 
20 
22  MonitorElement *hResAlpha = getter.get("DT/4DSegments/Res/4D_All_hResAlpha");
23  MonitorElement *hResBeta = getter.get("DT/4DSegments/Res/4D_All_hResBeta");
24  MonitorElement *hResX = getter.get("DT/4DSegments/Res/4D_All_hResX");
25  MonitorElement *hResY = getter.get("DT/4DSegments/Res/4D_All_hResY");
26  MonitorElement *hResBetaRZ = getter.get("DT/4DSegments/Res/4D_All_hResBetaRZ");
27  MonitorElement *hResYRZ = getter.get("DT/4DSegments/Res/4D_All_hResYRZ");
28 
29  MonitorElement *hResAlpha_W0 = getter.get("DT/4DSegments/Res/4D_W0_hResAlpha");
30  MonitorElement *hResBeta_W0 = getter.get("DT/4DSegments/Res/4D_W0_hResBeta");
31  MonitorElement *hResX_W0 = getter.get("DT/4DSegments/Res/4D_W0_hResX");
32  MonitorElement *hResY_W0 = getter.get("DT/4DSegments/Res/4D_W0_hResY");
33  MonitorElement *hResBetaRZ_W0 = getter.get("DT/4DSegments/Res/4D_W0_hResBetaRZ");
34  MonitorElement *hResYRZ_W0 = getter.get("DT/4DSegments/Res/4D_W0_hResYRZ");
35 
36  MonitorElement *hResAlpha_W1 = getter.get("DT/4DSegments/Res/4D_W1_hResAlpha");
37  MonitorElement *hResBeta_W1 = getter.get("DT/4DSegments/Res/4D_W1_hResBeta");
38  MonitorElement *hResX_W1 = getter.get("DT/4DSegments/Res/4D_W1_hResX");
39  MonitorElement *hResY_W1 = getter.get("DT/4DSegments/Res/4D_W1_hResY");
40  MonitorElement *hResBetaRZ_W1 = getter.get("DT/4DSegments/Res/4D_W1_hResBetaRZ");
41  MonitorElement *hResYRZ_W1 = getter.get("DT/4DSegments/Res/4D_W1_hResYRZ");
42 
43  MonitorElement *hResAlpha_W2 = getter.get("DT/4DSegments/Res/4D_W2_hResAlpha");
44  MonitorElement *hResBeta_W2 = getter.get("DT/4DSegments/Res/4D_W2_hResBeta");
45  MonitorElement *hResX_W2 = getter.get("DT/4DSegments/Res/4D_W2_hResX");
46  MonitorElement *hResY_W2 = getter.get("DT/4DSegments/Res/4D_W2_hResY");
47  MonitorElement *hResBetaRZ_W2 = getter.get("DT/4DSegments/Res/4D_W2_hResBetaRZ");
48  MonitorElement *hResYRZ_W2 = getter.get("DT/4DSegments/Res/4D_W2_hResYRZ");
49 
50  MonitorElement *hPullAlpha = getter.get("DT/4DSegments/Pull/4D_All_hPullAlpha");
51  MonitorElement *hPullBeta = getter.get("DT/4DSegments/Pull/4D_All_hPullBeta");
52  MonitorElement *hPullX = getter.get("DT/4DSegments/Pull/4D_All_hPullX");
53  MonitorElement *hPullY = getter.get("DT/4DSegments/Pull/4D_All_hPullY");
54  MonitorElement *hPullBetaRZ = getter.get("DT/4DSegments/Pull/4D_All_hPullBetaRZ");
55  MonitorElement *hPullYRZ = getter.get("DT/4DSegments/Pull/4D_All_hPullYRZ");
56 
57  MonitorElement *hPullAlpha_W0 = getter.get("DT/4DSegments/Pull/4D_W0_hPullAlpha");
58  MonitorElement *hPullBeta_W0 = getter.get("DT/4DSegments/Pull/4D_W0_hPullBeta");
59  MonitorElement *hPullX_W0 = getter.get("DT/4DSegments/Pull/4D_W0_hPullX");
60  MonitorElement *hPullY_W0 = getter.get("DT/4DSegments/Pull/4D_W0_hPullY");
61  MonitorElement *hPullBetaRZ_W0 = getter.get("DT/4DSegments/Pull/4D_W0_hPullBetaRZ");
62  MonitorElement *hPullYRZ_W0 = getter.get("DT/4DSegments/Pull/4D_W0_hPullYRZ");
63 
64  MonitorElement *hPullAlpha_W1 = getter.get("DT/4DSegments/Pull/4D_W1_hPullAlpha");
65  MonitorElement *hPullBeta_W1 = getter.get("DT/4DSegments/Pull/4D_W1_hPullBeta");
66  MonitorElement *hPullX_W1 = getter.get("DT/4DSegments/Pull/4D_W1_hPullX");
67  MonitorElement *hPullY_W1 = getter.get("DT/4DSegments/Pull/4D_W1_hPullY");
68  MonitorElement *hPullBetaRZ_W1 = getter.get("DT/4DSegments/Pull/4D_W1_hPullBetaRZ");
69  MonitorElement *hPullYRZ_W1 = getter.get("DT/4DSegments/Pull/4D_W1_hPullYRZ");
70 
71  MonitorElement *hPullAlpha_W2 = getter.get("DT/4DSegments/Pull/4D_W2_hPullAlpha");
72  MonitorElement *hPullBeta_W2 = getter.get("DT/4DSegments/Pull/4D_W2_hPullBeta");
73  MonitorElement *hPullX_W2 = getter.get("DT/4DSegments/Pull/4D_W2_hPullX");
74  MonitorElement *hPullY_W2 = getter.get("DT/4DSegments/Pull/4D_W2_hPullY");
75  MonitorElement *hPullBetaRZ_W2 = getter.get("DT/4DSegments/Pull/4D_W2_hPullBetaRZ");
76  MonitorElement *hPullYRZ_W2 = getter.get("DT/4DSegments/Pull/4D_W2_hPullYRZ");
77 
78  Tutils util;
79  util.drawGFit(hResAlpha->getTH1(), -0.2, 0.2, -0.1, 0.1);
80  util.drawGFit(hResBeta->getTH1(), -0.2, 0.2, -0.1, 0.1);
81  util.drawGFit(hResX->getTH1(), -0.2, 0.2, -0.1, 0.1);
82  util.drawGFit(hResY->getTH1(), -0.2, 0.2, -0.1, 0.1);
83  util.drawGFit(hResBetaRZ->getTH1(), -0.2, 0.2, -0.1, 0.1);
84  util.drawGFit(hResYRZ->getTH1(), -0.2, 0.2, -0.1, 0.1);
85 
86  util.drawGFit(hResAlpha_W0->getTH1(), -0.2, 0.2, -0.1, 0.1);
87  util.drawGFit(hResBeta_W0->getTH1(), -0.2, 0.2, -0.1, 0.1);
88  util.drawGFit(hResX_W0->getTH1(), -0.2, 0.2, -0.1, 0.1);
89  util.drawGFit(hResY_W0->getTH1(), -0.2, 0.2, -0.1, 0.1);
90  util.drawGFit(hResBetaRZ_W0->getTH1(), -0.2, 0.2, -0.1, 0.1);
91  util.drawGFit(hResYRZ_W0->getTH1(), -0.2, 0.2, -0.1, 0.1);
92 
93  util.drawGFit(hResAlpha_W1->getTH1(), -0.2, 0.2, -0.1, 0.1);
94  util.drawGFit(hResBeta_W1->getTH1(), -0.2, 0.2, -0.1, 0.1);
95  util.drawGFit(hResX_W1->getTH1(), -0.2, 0.2, -0.1, 0.1);
96  util.drawGFit(hResY_W1->getTH1(), -0.2, 0.2, -0.1, 0.1);
97  util.drawGFit(hResBetaRZ_W1->getTH1(), -0.2, 0.2, -0.1, 0.1);
98  util.drawGFit(hResYRZ_W1->getTH1(), -0.2, 0.2, -0.1, 0.1);
99 
100  util.drawGFit(hResAlpha_W2->getTH1(), -0.2, 0.2, -0.1, 0.1);
101  util.drawGFit(hResBeta_W2->getTH1(), -0.2, 0.2, -0.1, 0.1);
102  util.drawGFit(hResX_W2->getTH1(), -0.2, 0.2, -0.1, 0.1);
103  util.drawGFit(hResY_W2->getTH1(), -0.2, 0.2, -0.1, 0.1);
104  util.drawGFit(hResBetaRZ_W2->getTH1(), -0.2, 0.2, -0.1, 0.1);
105  util.drawGFit(hResYRZ_W2->getTH1(), -0.2, 0.2, -0.1, 0.1);
106 
107  util.drawGFit(hPullAlpha->getTH1(), -0.2, 0.2, -0.1, 0.1);
108  util.drawGFit(hPullBeta->getTH1(), -0.2, 0.2, -0.1, 0.1);
109  util.drawGFit(hPullX->getTH1(), -0.2, 0.2, -0.1, 0.1);
110  util.drawGFit(hPullY->getTH1(), -0.2, 0.2, -0.1, 0.1);
111  util.drawGFit(hPullBetaRZ->getTH1(), -0.2, 0.2, -0.1, 0.1);
112  util.drawGFit(hPullYRZ->getTH1(), -0.2, 0.2, -0.1, 0.1);
113 
114  util.drawGFit(hPullAlpha_W0->getTH1(), -0.2, 0.2, -0.1, 0.1);
115  util.drawGFit(hPullBeta_W0->getTH1(), -0.2, 0.2, -0.1, 0.1);
116  util.drawGFit(hPullX_W0->getTH1(), -0.2, 0.2, -0.1, 0.1);
117  util.drawGFit(hPullY_W0->getTH1(), -0.2, 0.2, -0.1, 0.1);
118  util.drawGFit(hPullBetaRZ_W0->getTH1(), -0.2, 0.2, -0.1, 0.1);
119  util.drawGFit(hPullYRZ_W0->getTH1(), -0.2, 0.2, -0.1, 0.1);
120 
121  util.drawGFit(hPullAlpha_W1->getTH1(), -0.2, 0.2, -0.1, 0.1);
122  util.drawGFit(hPullBeta_W1->getTH1(), -0.2, 0.2, -0.1, 0.1);
123  util.drawGFit(hPullX_W1->getTH1(), -0.2, 0.2, -0.1, 0.1);
124  util.drawGFit(hPullY_W1->getTH1(), -0.2, 0.2, -0.1, 0.1);
125  util.drawGFit(hPullBetaRZ_W1->getTH1(), -0.2, 0.2, -0.1, 0.1);
126  util.drawGFit(hPullYRZ_W1->getTH1(), -0.2, 0.2, -0.1, 0.1);
127 
128  util.drawGFit(hPullAlpha_W2->getTH1(), -0.2, 0.2, -0.1, 0.1);
129  util.drawGFit(hPullBeta_W2->getTH1(), -0.2, 0.2, -0.1, 0.1);
130  util.drawGFit(hPullX_W2->getTH1(), -0.2, 0.2, -0.1, 0.1);
131  util.drawGFit(hPullY_W2->getTH1(), -0.2, 0.2, -0.1, 0.1);
132  util.drawGFit(hPullBetaRZ_W2->getTH1(), -0.2, 0.2, -0.1, 0.1);
133  util.drawGFit(hPullYRZ_W2->getTH1(), -0.2, 0.2, -0.1, 0.1);
134 
135  if (doall_) {
136  HEff4DHitHarvest hEff_S3RPhi("All", booker, getter);
137  HEff4DHitHarvest hEff_S3RZ_W0("W0", booker, getter);
138  HEff4DHitHarvest hEff_S3RZ_W1("W1", booker, getter);
139  HEff4DHitHarvest hEff_S3RZ_W2("W2", booker, getter);
140  }
141 }
142 
143 // declare this as a framework plugin
T getUntrackedParameter(std::string const &, T const &) const
Definition: __init__.py:1
A set of histograms for efficiency 4D RecHits (harvesting)
Definition: Histograms.h:999
~DT4DSegmentClients() override
Destructor.
TH1 * getTH1() const
DT4DSegmentClients(const edm::ParameterSet &ps)
Constructor.
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
End Job.
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