#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 (std::string name_, DQMStore *dbe_, bool doall=true, bool local=true) | |
~HRes2DHit () | |
Public Attributes | |
bool | _doall |
MonitorElement * | hPullAngle |
MonitorElement * | hPullPos |
MonitorElement * | hRecAngle |
MonitorElement * | hRecVsSimAngle |
MonitorElement * | hResAngle |
MonitorElement * | hResAngleVsEta |
MonitorElement * | hResAngleVsPhi |
MonitorElement * | hResPos |
MonitorElement * | hResPosVsEta |
MonitorElement * | hResPosVsPhi |
MonitorElement * | hResPosVsResAngle |
MonitorElement * | hSimAngle |
TString | name |
Definition at line 332 of file Histograms.h.
HRes2DHit::HRes2DHit | ( | std::string | name_, |
DQMStore * | dbe_, | ||
bool | doall = true , |
||
bool | local = true |
||
) | [inline] |
Definition at line 334 of file Histograms.h.
References _doall, DQMStore::book1D(), DQMStore::book2D(), hPullAngle, hPullPos, hRecAngle, hRecVsSimAngle, hResAngle, hResAngleVsEta, hResAngleVsPhi, hResPos, hResPosVsEta, hResPosVsPhi, hResPosVsResAngle, hSimAngle, and DQMStore::setCurrentFolder().
{ _doall = doall; std::string pre ="2D_"; pre += name_; if(local) dbe_->setCurrentFolder("DT/2DSegments/"); else dbe_->setCurrentFolder("DT/2DSegments/Res/"); if(doall){ hRecAngle=0;hRecAngle = dbe_->book1D (pre+"_hRecAngle", "Distribution of Rec segment angles;angle (rad)",100, -3.5, 3.5); hSimAngle=0;hSimAngle = dbe_->book1D (pre+"_hSimAngle", "Distribution of segment angles from SimHits;angle (rad)",100, -3.5, 3.5); hRecVsSimAngle=0;hRecVsSimAngle = dbe_->book2D (pre+"_hRecVsSimAngle", "Rec angle vs sim angle;angle (rad)",100, -3.5, 3.5, 100, -3.5, 3.5); hResAngleVsEta=0;hResAngleVsEta = dbe_->book2D (pre+"_hResAngleVsEta", "Residual on 2D segment angle vs Eta; #eta; res (rad)",100, -2.5, 2.5, 200, -0.2, 0.2); hResAngleVsPhi=0;hResAngleVsPhi = dbe_->book2D (pre+"_hResAngleVsPhi", "Residual on 2D segment angle vs Phi; #phi (rad);res (rad)", 100, -3.2, 3.2, 150, -0.2, 0.2); hResPosVsEta=0;hResPosVsEta = dbe_->book2D (pre+"_hResPosVsEta", "Residual on 2D segment position vs Eta;#eta;res (cm)", 100, -2.5, 2.5, 150, -0.2, 0.2); hResPosVsPhi=0;hResPosVsPhi = dbe_->book2D (pre+"_hResPosVsPhi", "Residual on 2D segment position vs Phi;#phi (rad);res (cm)", 100, -3.2, 3.2, 150, -0.2, 0.2); hResPosVsResAngle=0;hResPosVsResAngle = dbe_->book2D(pre+"_hResPosVsResAngle", "Residual on 2D segment position vs Residual on 2D segment angle;angle (rad);res (cm)", 100, -0.3, 0.3, 150, -0.2, 0.2); } hResAngle=0; hResAngle = dbe_->book1D (pre+"_hResAngle", "Residual on 2D segment angle;angle_{rec}-angle_{sim} (rad)", 50, -0.01, 0.01); hResPos=0;hResPos = dbe_->book1D (pre+"_hResPos", "Residual on 2D segment position (x at SL center);x_{rec}-x_{sim} (cm)", 150, -0.2, 0.2); if(!local) dbe_->setCurrentFolder("DT/2DSegments/Pull/"); hPullAngle=0;hPullAngle = dbe_->book1D (pre+"_hPullAngle", "Pull on 2D segment angle;(angle_{rec}-angle_{sim})/#sigma (rad)", 150, -5, 5); hPullPos=0;hPullPos = dbe_->book1D (pre+"_hPullPos", "Pull on 2D segment position (x at SL center);(x_{rec}-x_{sim} (cm))/#sigma", 150, -5, 5); }
HRes2DHit::~HRes2DHit | ( | ) | [inline] |
Definition at line 388 of file Histograms.h.
{ }
void HRes2DHit::Fill | ( | float | angleSimSegment, |
float | angleRecSegment, | ||
float | posSimSegment, | ||
float | posRecSegment, | ||
float | etaSimSegment, | ||
float | phiSimSegment, | ||
float | sigmaPos, | ||
float | sigmaAngle | ||
) | [inline] |
Definition at line 391 of file Histograms.h.
References _doall, MonitorElement::Fill(), hPullAngle, hPullPos, hRecAngle, hRecVsSimAngle, hResAngle, hResAngleVsEta, hResAngleVsPhi, hResPos, hResPosVsEta, hResPosVsPhi, hResPosVsResAngle, and hSimAngle.
Referenced by DTSegment2DQuality::analyze().
{ float resAngle = angleRecSegment-angleSimSegment; hResAngle->Fill(resAngle); float resPos = posRecSegment-posSimSegment; hResPos->Fill(resPos); hPullAngle->Fill(resAngle/sigmaAngle); hPullPos->Fill(resPos/sigmaPos); if(_doall){ hRecAngle->Fill(angleRecSegment); hSimAngle->Fill(angleSimSegment); hRecVsSimAngle->Fill(angleSimSegment, angleRecSegment); hResAngleVsEta->Fill(etaSimSegment, resAngle); hResAngleVsPhi->Fill(phiSimSegment, resAngle); hResPosVsEta->Fill(etaSimSegment, resPos); hResPosVsPhi->Fill(phiSimSegment, resPos); hResPosVsResAngle->Fill(resAngle, resPos); } }
bool HRes2DHit::_doall |
Definition at line 449 of file Histograms.h.
Referenced by Fill(), and HRes2DHit().
Definition at line 446 of file Histograms.h.
Referenced by Fill(), and HRes2DHit().
Definition at line 447 of file Histograms.h.
Referenced by Fill(), and HRes2DHit().
Definition at line 436 of file Histograms.h.
Referenced by Fill(), and HRes2DHit().
Definition at line 438 of file Histograms.h.
Referenced by Fill(), and HRes2DHit().
Definition at line 439 of file Histograms.h.
Referenced by Fill(), and HRes2DHit().
Definition at line 440 of file Histograms.h.
Referenced by Fill(), and HRes2DHit().
Definition at line 441 of file Histograms.h.
Referenced by Fill(), and HRes2DHit().
Definition at line 442 of file Histograms.h.
Referenced by Fill(), and HRes2DHit().
Definition at line 443 of file Histograms.h.
Referenced by Fill(), and HRes2DHit().
Definition at line 444 of file Histograms.h.
Referenced by Fill(), and HRes2DHit().
Definition at line 445 of file Histograms.h.
Referenced by Fill(), and HRes2DHit().
Definition at line 437 of file Histograms.h.
Referenced by Fill(), and HRes2DHit().
TString HRes2DHit::name |
Definition at line 448 of file Histograms.h.