CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
HRes2DHit Class Reference

#include <Histograms.h>

Public Member Functions

void fill (float angleSimSegment, float angleRecSegment, float posSimSegment, float posRecSegment, float etaSimSegment, float phiSimSegment, float sigmaPos, float sigmaAngle)
 
 HRes2DHit (const std::string &name, DQMStore::ConcurrentBooker &booker, bool doall=true, bool local=true)
 

Private Attributes

bool doall_
 
ConcurrentMonitorElement hPullAngle
 
ConcurrentMonitorElement hPullPos
 
ConcurrentMonitorElement hRecAngle
 
ConcurrentMonitorElement hRecVsSimAngle
 
ConcurrentMonitorElement hResAngle
 
ConcurrentMonitorElement hResAngleVsEta
 
ConcurrentMonitorElement hResAngleVsPhi
 
ConcurrentMonitorElement hResPos
 
ConcurrentMonitorElement hResPosVsEta
 
ConcurrentMonitorElement hResPosVsPhi
 
ConcurrentMonitorElement hResPosVsResAngle
 
ConcurrentMonitorElement hSimAngle
 
std::string name_
 

Detailed Description

Definition at line 208 of file Histograms.h.

Constructor & Destructor Documentation

HRes2DHit::HRes2DHit ( const std::string &  name,
DQMStore::ConcurrentBooker booker,
bool  doall = true,
bool  local = true 
)
inline

Definition at line 210 of file Histograms.h.

References DQMStore::ConcurrentBooker::book1D(), DQMStore::ConcurrentBooker::book2D(), DTRecHitClients_cfi::doall, HRes1DHit::doall_, dataset::name, DQMStore::IBooker::setCurrentFolder(), and AlCaHLTBitMon_QueryRunRegistry::string.

210  {
211  doall_ = doall;
212  std::string pre = "2D_";
213  pre += name;
214  booker.setCurrentFolder("DT/2DSegments/Res/");
215  if (doall) {
216  hRecAngle = booker.book1D(pre + "_hRecAngle", "Distribution of Rec segment angles;angle (rad)", 100, -1.5, 1.5);
217  hSimAngle =
218  booker.book1D(pre + "_hSimAngle", "Distribution of segment angles from SimHits;angle (rad)", 100, -1.5, 1.5);
220  booker.book2D(pre + "_hRecVsSimAngle", "Rec angle vs sim angle;angle (rad)", 100, -1.5, 1.5, 100, -1.5, 1.5);
221  hResAngleVsEta = booker.book2D(pre + "_hResAngleVsEta",
222  "Residual on 2D segment angle vs Eta; #eta; res (rad)",
223  100,
224  -2.5,
225  2.5,
226  200,
227  -0.2,
228  0.2);
229  hResAngleVsPhi = booker.book2D(pre + "_hResAngleVsPhi",
230  "Residual on 2D segment angle vs Phi; #phi (rad);res (rad)",
231  100,
232  -3.2,
233  3.2,
234  150,
235  -0.2,
236  0.2);
237  hResPosVsEta = booker.book2D(
238  pre + "_hResPosVsEta", "Residual on 2D segment position vs Eta;#eta;res (cm)", 100, -2.5, 2.5, 150, -0.2, 0.2);
239  hResPosVsPhi = booker.book2D(pre + "_hResPosVsPhi",
240  "Residual on 2D segment position vs Phi;#phi (rad);res (cm)",
241  100,
242  -3.2,
243  3.2,
244  150,
245  -0.2,
246  0.2);
247  hResPosVsResAngle = booker.book2D(pre + "_hResPosVsResAngle",
248  "Residual on 2D segment position vs Residual on 2D "
249  "segment angle;angle (rad);res (cm)",
250  100,
251  -0.3,
252  0.3,
253  150,
254  -0.2,
255  0.2);
256  }
257  hResAngle = booker.book1D(
258  pre + "_hResAngle", "Residual on 2D segment angle;angle_{rec}-angle_{sim} (rad)", 50, -0.01, 0.01);
259  hResPos = booker.book1D(
260  pre + "_hResPos", "Residual on 2D segment position (x at SL center);x_{rec}-x_{sim} (cm)", 150, -0.2, 0.2);
261 
262  booker.setCurrentFolder("DT/2DSegments/Pull/");
263  hPullAngle = booker.book1D(
264  pre + "_hPullAngle", "Pull on 2D segment angle;(angle_{rec}-angle_{sim})/#sigma (rad)", 150, -5, 5);
265  hPullPos = booker.book1D(pre + "_hPullPos",
266  "Pull on 2D segment position (x at SL "
267  "center);(x_{rec}-x_{sim} (cm))/#sigma",
268  150,
269  -5,
270  5);
271  }
ConcurrentMonitorElement hResAngleVsEta
Definition: Histograms.h:304
ConcurrentMonitorElement hResPos
Definition: Histograms.h:306
ConcurrentMonitorElement hResPosVsEta
Definition: Histograms.h:307
void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:268
ConcurrentMonitorElement book2D(Args &&...args)
Definition: DQMStore.h:163
ConcurrentMonitorElement hRecAngle
Definition: Histograms.h:300
ConcurrentMonitorElement book1D(Args &&...args)
Definition: DQMStore.h:160
ConcurrentMonitorElement hPullAngle
Definition: Histograms.h:310
ConcurrentMonitorElement hResPosVsPhi
Definition: Histograms.h:308
ConcurrentMonitorElement hResAngle
Definition: Histograms.h:303
ConcurrentMonitorElement hResAngleVsPhi
Definition: Histograms.h:305
ConcurrentMonitorElement hRecVsSimAngle
Definition: Histograms.h:302
ConcurrentMonitorElement hSimAngle
Definition: Histograms.h:301
ConcurrentMonitorElement hResPosVsResAngle
Definition: Histograms.h:309
bool doall_
Definition: Histograms.h:314
ConcurrentMonitorElement hPullPos
Definition: Histograms.h:311

Member Function Documentation

void HRes2DHit::fill ( float  angleSimSegment,
float  angleRecSegment,
float  posSimSegment,
float  posRecSegment,
float  etaSimSegment,
float  phiSimSegment,
float  sigmaPos,
float  sigmaAngle 
)
inline

Definition at line 273 of file Histograms.h.

References HRes1DHit::doall_.

Referenced by DTSegment2DQuality::dqmAnalyze().

280  {
281  float resAngle = angleRecSegment - angleSimSegment;
282  hResAngle.fill(resAngle);
283  float resPos = posRecSegment - posSimSegment;
284  hResPos.fill(resPos);
285  hPullAngle.fill(resAngle / sigmaAngle);
286  hPullPos.fill(resPos / sigmaPos);
287  if (doall_) {
288  hRecAngle.fill(angleRecSegment);
289  hSimAngle.fill(angleSimSegment);
290  hRecVsSimAngle.fill(angleSimSegment, angleRecSegment);
291  hResAngleVsEta.fill(etaSimSegment, resAngle);
292  hResAngleVsPhi.fill(phiSimSegment, resAngle);
293  hResPosVsEta.fill(etaSimSegment, resPos);
294  hResPosVsPhi.fill(phiSimSegment, resPos);
295  hResPosVsResAngle.fill(resAngle, resPos);
296  }
297  }
ConcurrentMonitorElement hResAngleVsEta
Definition: Histograms.h:304
ConcurrentMonitorElement hResPos
Definition: Histograms.h:306
ConcurrentMonitorElement hResPosVsEta
Definition: Histograms.h:307
ConcurrentMonitorElement hRecAngle
Definition: Histograms.h:300
ConcurrentMonitorElement hPullAngle
Definition: Histograms.h:310
ConcurrentMonitorElement hResPosVsPhi
Definition: Histograms.h:308
ConcurrentMonitorElement hResAngle
Definition: Histograms.h:303
ConcurrentMonitorElement hResAngleVsPhi
Definition: Histograms.h:305
void fill(Args &&...args) const
ConcurrentMonitorElement hRecVsSimAngle
Definition: Histograms.h:302
double sigmaAngle(double Angle, double sigma2TanAngle)
ConcurrentMonitorElement hSimAngle
Definition: Histograms.h:301
ConcurrentMonitorElement hResPosVsResAngle
Definition: Histograms.h:309
bool doall_
Definition: Histograms.h:314
ConcurrentMonitorElement hPullPos
Definition: Histograms.h:311

Member Data Documentation

bool HRes2DHit::doall_
private

Definition at line 314 of file Histograms.h.

ConcurrentMonitorElement HRes2DHit::hPullAngle
private

Definition at line 310 of file Histograms.h.

ConcurrentMonitorElement HRes2DHit::hPullPos
private

Definition at line 311 of file Histograms.h.

ConcurrentMonitorElement HRes2DHit::hRecAngle
private

Definition at line 300 of file Histograms.h.

ConcurrentMonitorElement HRes2DHit::hRecVsSimAngle
private

Definition at line 302 of file Histograms.h.

ConcurrentMonitorElement HRes2DHit::hResAngle
private

Definition at line 303 of file Histograms.h.

ConcurrentMonitorElement HRes2DHit::hResAngleVsEta
private

Definition at line 304 of file Histograms.h.

ConcurrentMonitorElement HRes2DHit::hResAngleVsPhi
private

Definition at line 305 of file Histograms.h.

ConcurrentMonitorElement HRes2DHit::hResPos
private

Definition at line 306 of file Histograms.h.

ConcurrentMonitorElement HRes2DHit::hResPosVsEta
private

Definition at line 307 of file Histograms.h.

ConcurrentMonitorElement HRes2DHit::hResPosVsPhi
private

Definition at line 308 of file Histograms.h.

ConcurrentMonitorElement HRes2DHit::hResPosVsResAngle
private

Definition at line 309 of file Histograms.h.

ConcurrentMonitorElement HRes2DHit::hSimAngle
private

Definition at line 301 of file Histograms.h.

std::string HRes2DHit::name_
private

Definition at line 313 of file Histograms.h.