CMS 3D CMS Logo

DT4DSegmentClients.cc
Go to the documentation of this file.
1 #include "DT4DSegmentClients.h"
13 
14 //#include "TFile.h"
15 #include <string>
16 #include <iostream>
17 #include <map>
18 
19 
20 using namespace std;
21 using namespace edm;
22 
24 }
26 }
28  edm::EventSetup const& c){
29  dbe = Service<DQMStore>().operator->();
30  //dbe->setCurrentFolder("DQMData/Run 1/DT/Run summary/4DSegments/");
31 
32  MonitorElement * hResAlpha = dbe->get("DT/4DSegments/Res/4D_All_hResAlpha");
33  MonitorElement * hResBeta = dbe->get("DT/4DSegments/Res/4D_All_hResBeta");
34  MonitorElement * hResX = dbe->get("DT/4DSegments/Res/4D_All_hResX");
35  MonitorElement * hResY = dbe->get("DT/4DSegments/Res/4D_All_hResY");
36  MonitorElement * hResBetaRZ = dbe->get("DT/4DSegments/Res/4D_All_hResBetaRZ");
37  MonitorElement * hResYRZ = dbe->get("DT/4DSegments/Res/4D_All_hResYRZ");
38 
39  MonitorElement * hResAlpha_W0 = dbe->get("DT/4DSegments/Res/4D_W0_hResAlpha");
40  MonitorElement * hResBeta_W0 = dbe->get("DT/4DSegments/Res/4D_W0_hResBeta");
41  MonitorElement * hResX_W0 = dbe->get("DT/4DSegments/Res/4D_W0_hResX");
42  MonitorElement * hResY_W0 = dbe->get("DT/4DSegments/Res/4D_W0_hResY");
43  MonitorElement * hResBetaRZ_W0 = dbe->get("DT/4DSegments/Res/4D_W0_hResBetaRZ");
44  MonitorElement * hResYRZ_W0 = dbe->get("DT/4DSegments/Res/4D_W0_hResYRZ");
45 
46  MonitorElement * hResAlpha_W1 = dbe->get("DT/4DSegments/Res/4D_W1_hResAlpha");
47  MonitorElement * hResBeta_W1 = dbe->get("DT/4DSegments/Res/4D_W1_hResBeta");
48  MonitorElement * hResX_W1 = dbe->get("DT/4DSegments/Res/4D_W1_hResX");
49  MonitorElement * hResY_W1 = dbe->get("DT/4DSegments/Res/4D_W1_hResY");
50  MonitorElement * hResBetaRZ_W1 = dbe->get("DT/4DSegments/Res/4D_W1_hResBetaRZ");
51  MonitorElement * hResYRZ_W1 = dbe->get("DT/4DSegments/Res/4D_W1_hResYRZ");
52 
53  MonitorElement * hResAlpha_W2 = dbe->get("DT/4DSegments/Res/4D_W2_hResAlpha");
54  MonitorElement * hResBeta_W2 = dbe->get("DT/4DSegments/Res/4D_W2_hResBeta");
55  MonitorElement * hResX_W2 = dbe->get("DT/4DSegments/Res/4D_W2_hResX");
56  MonitorElement * hResY_W2 = dbe->get("DT/4DSegments/Res/4D_W2_hResY");
57  MonitorElement * hResBetaRZ_W2 = dbe->get("DT/4DSegments/Res/4D_W2_hResBetaRZ");
58  MonitorElement * hResYRZ_W2 = dbe->get("DT/4DSegments/Res/4D_W2_hResYRZ");
59 
60  MonitorElement * hPullAlpha = dbe->get("DT/4DSegments/Pull/4D_All_hPullAlpha");
61  MonitorElement * hPullBeta = dbe->get("DT/4DSegments/Pull/4D_All_hPullBeta");
62  MonitorElement * hPullX = dbe->get("DT/4DSegments/Pull/4D_All_hPullX");
63  MonitorElement * hPullY = dbe->get("DT/4DSegments/Pull/4D_All_hPullY");
64  MonitorElement * hPullBetaRZ = dbe->get("DT/4DSegments/Pull/4D_All_hPullBetaRZ");
65  MonitorElement * hPullYRZ = dbe->get("DT/4DSegments/Pull/4D_All_hPullYRZ");
66 
67  MonitorElement * hPullAlpha_W0 = dbe->get("DT/4DSegments/Pull/4D_W0_hPullAlpha");
68  MonitorElement * hPullBeta_W0 = dbe->get("DT/4DSegments/Pull/4D_W0_hPullBeta");
69  MonitorElement * hPullX_W0 = dbe->get("DT/4DSegments/Pull/4D_W0_hPullX");
70  MonitorElement * hPullY_W0 = dbe->get("DT/4DSegments/Pull/4D_W0_hPullY");
71  MonitorElement * hPullBetaRZ_W0 = dbe->get("DT/4DSegments/Pull/4D_W0_hPullBetaRZ");
72  MonitorElement * hPullYRZ_W0 = dbe->get("DT/4DSegments/Pull/4D_W0_hPullYRZ");
73 
74  MonitorElement * hPullAlpha_W1 = dbe->get("DT/4DSegments/Pull/4D_W1_hPullAlpha");
75  MonitorElement * hPullBeta_W1 = dbe->get("DT/4DSegments/Pull/4D_W1_hPullBeta");
76  MonitorElement * hPullX_W1 = dbe->get("DT/4DSegments/Pull/4D_W1_hPullX");
77  MonitorElement * hPullY_W1 = dbe->get("DT/4DSegments/Pull/4D_W1_hPullY");
78  MonitorElement * hPullBetaRZ_W1 = dbe->get("DT/4DSegments/Pull/4D_W1_hPullBetaRZ");
79  MonitorElement * hPullYRZ_W1 = dbe->get("DT/4DSegments/Pull/4D_W1_hPullYRZ");
80 
81  MonitorElement * hPullAlpha_W2 = dbe->get("DT/4DSegments/Pull/4D_W2_hPullAlpha");
82  MonitorElement * hPullBeta_W2 = dbe->get("DT/4DSegments/Pull/4D_W2_hPullBeta");
83  MonitorElement * hPullX_W2 = dbe->get("DT/4DSegments/Pull/4D_W2_hPullX");
84  MonitorElement * hPullY_W2 = dbe->get("DT/4DSegments/Pull/4D_W2_hPullY");
85  MonitorElement * hPullBetaRZ_W2 = dbe->get("DT/4DSegments/Pull/4D_W2_hPullBetaRZ");
86  MonitorElement * hPullYRZ_W2 = dbe->get("DT/4DSegments/Pull/4D_W2_hPullYRZ");
87 
88  Tutils * aux = new Tutils;
89  aux->drawGFit(hResAlpha->getTH1(),-0.2,0.2,-0.1,0.1);
90  aux->drawGFit(hResBeta->getTH1(),-0.2,0.2,-0.1,0.1);
91  aux->drawGFit(hResX->getTH1(),-0.2,0.2,-0.1,0.1);
92  aux->drawGFit(hResY->getTH1(),-0.2,0.2,-0.1,0.1);
93  aux->drawGFit(hResBetaRZ->getTH1(),-0.2,0.2,-0.1,0.1);
94  aux->drawGFit(hResYRZ->getTH1(),-0.2,0.2,-0.1,0.1);
95 
96  aux->drawGFit(hResAlpha_W0->getTH1(),-0.2,0.2,-0.1,0.1);
97  aux->drawGFit(hResBeta_W0->getTH1(),-0.2,0.2,-0.1,0.1);
98  aux->drawGFit(hResX_W0->getTH1(),-0.2,0.2,-0.1,0.1);
99  aux->drawGFit(hResY_W0->getTH1(),-0.2,0.2,-0.1,0.1);
100  aux->drawGFit(hResBetaRZ_W0->getTH1(),-0.2,0.2,-0.1,0.1);
101  aux->drawGFit(hResYRZ_W0->getTH1(),-0.2,0.2,-0.1,0.1);
102 
103  aux->drawGFit(hResAlpha_W1->getTH1(),-0.2,0.2,-0.1,0.1);
104  aux->drawGFit(hResBeta_W1->getTH1(),-0.2,0.2,-0.1,0.1);
105  aux->drawGFit(hResX_W1->getTH1(),-0.2,0.2,-0.1,0.1);
106  aux->drawGFit(hResY_W1->getTH1(),-0.2,0.2,-0.1,0.1);
107  aux->drawGFit(hResBetaRZ_W1->getTH1(),-0.2,0.2,-0.1,0.1);
108  aux->drawGFit(hResYRZ_W1->getTH1(),-0.2,0.2,-0.1,0.1);
109 
110  aux->drawGFit(hResAlpha_W2->getTH1(),-0.2,0.2,-0.1,0.1);
111  aux->drawGFit(hResBeta_W2->getTH1(),-0.2,0.2,-0.1,0.1);
112  aux->drawGFit(hResX_W2->getTH1(),-0.2,0.2,-0.1,0.1);
113  aux->drawGFit(hResY_W2->getTH1(),-0.2,0.2,-0.1,0.1);
114  aux->drawGFit(hResBetaRZ_W2->getTH1(),-0.2,0.2,-0.1,0.1);
115  aux->drawGFit(hResYRZ_W2->getTH1(),-0.2,0.2,-0.1,0.1);
116 
117  aux->drawGFit(hPullAlpha->getTH1(),-0.2,0.2,-0.1,0.1);
118  aux->drawGFit(hPullBeta->getTH1(),-0.2,0.2,-0.1,0.1);
119  aux->drawGFit(hPullX->getTH1(),-0.2,0.2,-0.1,0.1);
120  aux->drawGFit(hPullY->getTH1(),-0.2,0.2,-0.1,0.1);
121  aux->drawGFit(hPullBetaRZ->getTH1(),-0.2,0.2,-0.1,0.1);
122  aux->drawGFit(hPullYRZ->getTH1(),-0.2,0.2,-0.1,0.1);
123 
124  aux->drawGFit(hPullAlpha_W0->getTH1(),-0.2,0.2,-0.1,0.1);
125  aux->drawGFit(hPullBeta_W0->getTH1(),-0.2,0.2,-0.1,0.1);
126  aux->drawGFit(hPullX_W0->getTH1(),-0.2,0.2,-0.1,0.1);
127  aux->drawGFit(hPullY_W0->getTH1(),-0.2,0.2,-0.1,0.1);
128  aux->drawGFit(hPullBetaRZ_W0->getTH1(),-0.2,0.2,-0.1,0.1);
129  aux->drawGFit(hPullYRZ_W0->getTH1(),-0.2,0.2,-0.1,0.1);
130 
131  aux->drawGFit(hPullAlpha_W1->getTH1(),-0.2,0.2,-0.1,0.1);
132  aux->drawGFit(hPullBeta_W1->getTH1(),-0.2,0.2,-0.1,0.1);
133  aux->drawGFit(hPullX_W1->getTH1(),-0.2,0.2,-0.1,0.1);
134  aux->drawGFit(hPullY_W1->getTH1(),-0.2,0.2,-0.1,0.1);
135  aux->drawGFit(hPullBetaRZ_W1->getTH1(),-0.2,0.2,-0.1,0.1);
136  aux->drawGFit(hPullYRZ_W1->getTH1(),-0.2,0.2,-0.1,0.1);
137 
138  aux->drawGFit(hPullAlpha_W2->getTH1(),-0.2,0.2,-0.1,0.1);
139  aux->drawGFit(hPullBeta_W2->getTH1(),-0.2,0.2,-0.1,0.1);
140  aux->drawGFit(hPullX_W2->getTH1(),-0.2,0.2,-0.1,0.1);
141  aux->drawGFit(hPullY_W2->getTH1(),-0.2,0.2,-0.1,0.1);
142  aux->drawGFit(hPullBetaRZ_W2->getTH1(),-0.2,0.2,-0.1,0.1);
143  aux->drawGFit(hPullYRZ_W2->getTH1(),-0.2,0.2,-0.1,0.1);
144 }
145 
146 void DT4DSegmentClients::analyze(const Event& e, const EventSetup& context){
147 
148 }
149 
DT4DSegmentClients(const edm::ParameterSet &ps)
Constructor.
~DT4DSegmentClients()
Destructor.
TH1 * getTH1(void) const
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
void drawGFit(TH1 *h1, float nsigmas, float min, float max)
HLT enums.
void endLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &c)
Definition: utils.h:9