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 211 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 213 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.

213  {
214  doall_ = doall;
215  std::string pre = "2D_";
216  pre += name;
217  booker.setCurrentFolder("DT/2DSegments/Res/");
218  if (doall) {
219  hRecAngle = booker.book1D(pre + "_hRecAngle", "Distribution of Rec segment angles;angle (rad)",
220  100, -1.5, 1.5);
221  hSimAngle = booker.book1D(pre + "_hSimAngle", "Distribution of segment angles from SimHits;angle (rad)",
222  100, -1.5, 1.5);
223  hRecVsSimAngle = booker.book2D(pre + "_hRecVsSimAngle", "Rec angle vs sim angle;angle (rad)",
224  100, -1.5, 1.5, 100, -1.5, 1.5);
225  hResAngleVsEta = booker.book2D(pre + "_hResAngleVsEta", "Residual on 2D segment angle vs Eta; #eta; res (rad)",
226  100, -2.5, 2.5, 200, -0.2, 0.2);
227  hResAngleVsPhi = booker.book2D(pre + "_hResAngleVsPhi", "Residual on 2D segment angle vs Phi; #phi (rad);res (rad)",
228  100, -3.2, 3.2, 150, -0.2, 0.2);
229  hResPosVsEta = booker.book2D(pre + "_hResPosVsEta", "Residual on 2D segment position vs Eta;#eta;res (cm)",
230  100, -2.5, 2.5, 150, -0.2, 0.2);
231  hResPosVsPhi = booker.book2D(pre + "_hResPosVsPhi", "Residual on 2D segment position vs Phi;#phi (rad);res (cm)",
232  100, -3.2, 3.2, 150, -0.2, 0.2);
233  hResPosVsResAngle = booker.book2D(pre + "_hResPosVsResAngle",
234  "Residual on 2D segment position vs Residual on 2D segment angle;angle (rad);res (cm)",
235  100, -0.3, 0.3, 150, -0.2, 0.2);
236  }
237  hResAngle = booker.book1D(pre + "_hResAngle", "Residual on 2D segment angle;angle_{rec}-angle_{sim} (rad)", 50, -0.01, 0.01);
238  hResPos = booker.book1D(pre + "_hResPos", "Residual on 2D segment position (x at SL center);x_{rec}-x_{sim} (cm)", 150, -0.2, 0.2);
239 
240  booker.setCurrentFolder("DT/2DSegments/Pull/");
241  hPullAngle = booker.book1D(pre + "_hPullAngle", "Pull on 2D segment angle;(angle_{rec}-angle_{sim})/#sigma (rad)", 150, -5, 5);
242  hPullPos = booker.book1D(pre + "_hPullPos", "Pull on 2D segment position (x at SL center);(x_{rec}-x_{sim} (cm))/#sigma", 150, -5, 5);
243  }
ConcurrentMonitorElement hResAngleVsEta
Definition: Histograms.h:277
ConcurrentMonitorElement hResPos
Definition: Histograms.h:279
ConcurrentMonitorElement hResPosVsEta
Definition: Histograms.h:280
void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:268
ConcurrentMonitorElement book2D(Args &&...args)
Definition: DQMStore.h:163
ConcurrentMonitorElement hRecAngle
Definition: Histograms.h:273
ConcurrentMonitorElement book1D(Args &&...args)
Definition: DQMStore.h:160
ConcurrentMonitorElement hPullAngle
Definition: Histograms.h:283
ConcurrentMonitorElement hResPosVsPhi
Definition: Histograms.h:281
ConcurrentMonitorElement hResAngle
Definition: Histograms.h:276
ConcurrentMonitorElement hResAngleVsPhi
Definition: Histograms.h:278
ConcurrentMonitorElement hRecVsSimAngle
Definition: Histograms.h:275
ConcurrentMonitorElement hSimAngle
Definition: Histograms.h:274
ConcurrentMonitorElement hResPosVsResAngle
Definition: Histograms.h:282
bool doall_
Definition: Histograms.h:287
ConcurrentMonitorElement hPullPos
Definition: Histograms.h:284

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 245 of file Histograms.h.

References HRes1DHit::doall_.

Referenced by DTSegment2DQuality::dqmAnalyze().

253  {
254  float resAngle = angleRecSegment-angleSimSegment;
255  hResAngle.fill(resAngle);
256  float resPos = posRecSegment-posSimSegment;
257  hResPos.fill(resPos);
258  hPullAngle.fill(resAngle/sigmaAngle);
259  hPullPos.fill(resPos/sigmaPos);
260  if (doall_) {
261  hRecAngle.fill(angleRecSegment);
262  hSimAngle.fill(angleSimSegment);
263  hRecVsSimAngle.fill(angleSimSegment, angleRecSegment);
264  hResAngleVsEta.fill(etaSimSegment, resAngle);
265  hResAngleVsPhi.fill(phiSimSegment, resAngle);
266  hResPosVsEta.fill(etaSimSegment, resPos);
267  hResPosVsPhi.fill(phiSimSegment, resPos);
268  hResPosVsResAngle.fill(resAngle, resPos);
269  }
270  }
ConcurrentMonitorElement hResAngleVsEta
Definition: Histograms.h:277
ConcurrentMonitorElement hResPos
Definition: Histograms.h:279
ConcurrentMonitorElement hResPosVsEta
Definition: Histograms.h:280
ConcurrentMonitorElement hRecAngle
Definition: Histograms.h:273
ConcurrentMonitorElement hPullAngle
Definition: Histograms.h:283
ConcurrentMonitorElement hResPosVsPhi
Definition: Histograms.h:281
ConcurrentMonitorElement hResAngle
Definition: Histograms.h:276
ConcurrentMonitorElement hResAngleVsPhi
Definition: Histograms.h:278
void fill(Args &&...args) const
ConcurrentMonitorElement hRecVsSimAngle
Definition: Histograms.h:275
double sigmaAngle(double Angle, double sigma2TanAngle)
ConcurrentMonitorElement hSimAngle
Definition: Histograms.h:274
ConcurrentMonitorElement hResPosVsResAngle
Definition: Histograms.h:282
bool doall_
Definition: Histograms.h:287
ConcurrentMonitorElement hPullPos
Definition: Histograms.h:284

Member Data Documentation

bool HRes2DHit::doall_
private

Definition at line 287 of file Histograms.h.

ConcurrentMonitorElement HRes2DHit::hPullAngle
private

Definition at line 283 of file Histograms.h.

ConcurrentMonitorElement HRes2DHit::hPullPos
private

Definition at line 284 of file Histograms.h.

ConcurrentMonitorElement HRes2DHit::hRecAngle
private

Definition at line 273 of file Histograms.h.

ConcurrentMonitorElement HRes2DHit::hRecVsSimAngle
private

Definition at line 275 of file Histograms.h.

ConcurrentMonitorElement HRes2DHit::hResAngle
private

Definition at line 276 of file Histograms.h.

ConcurrentMonitorElement HRes2DHit::hResAngleVsEta
private

Definition at line 277 of file Histograms.h.

ConcurrentMonitorElement HRes2DHit::hResAngleVsPhi
private

Definition at line 278 of file Histograms.h.

ConcurrentMonitorElement HRes2DHit::hResPos
private

Definition at line 279 of file Histograms.h.

ConcurrentMonitorElement HRes2DHit::hResPosVsEta
private

Definition at line 280 of file Histograms.h.

ConcurrentMonitorElement HRes2DHit::hResPosVsPhi
private

Definition at line 281 of file Histograms.h.

ConcurrentMonitorElement HRes2DHit::hResPosVsResAngle
private

Definition at line 282 of file Histograms.h.

ConcurrentMonitorElement HRes2DHit::hSimAngle
private

Definition at line 274 of file Histograms.h.

std::string HRes2DHit::name_
private

Definition at line 286 of file Histograms.h.