CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
AlignmentMonitorMuonSystemMap1D::MuonSystemMapPlot1D Class Reference

Public Member Functions

void fill_dxdz (char charge, double abscissa, double slopex, double chi2, int dof)
 
void fill_dydz (char charge, double abscissa, double slopey, double chi2, int dof)
 
void fill_x (char charge, double abscissa, double residx, double chi2, int dof)
 
void fill_x_1d (double residx, double chi2, int dof)
 
void fill_y (char charge, double abscissa, double residy, double chi2, int dof)
 
 MuonSystemMapPlot1D (std::string name, AlignmentMonitorMuonSystemMap1D *module, int bins, double low, double high, bool xy, bool add_1d)
 

Private Attributes

bool m_1d
 
int m_bins
 
TH2F * m_dxdz_2d
 
TH2F * m_dydz_2d
 
std::string m_name
 
TH1F * m_x_1d
 
TH2F * m_x_2d
 
bool m_xy
 
TH2F * m_y_2d
 

Detailed Description

Definition at line 81 of file AlignmentMonitorMuonSystemMap1D.cc.

Constructor & Destructor Documentation

AlignmentMonitorMuonSystemMap1D::MuonSystemMapPlot1D::MuonSystemMapPlot1D ( std::string  name,
AlignmentMonitorMuonSystemMap1D module,
int  bins,
double  low,
double  high,
bool  xy,
bool  add_1d 
)

Definition at line 499 of file AlignmentMonitorMuonSystemMap1D.cc.

References AlignmentMonitorBase::book1D(), AlignmentMonitorBase::book2D(), m_1d, m_bins, m_dxdz_2d, m_dydz_2d, m_name, m_x_1d, m_x_2d, m_xy, m_y_2d, pileupCalc::nbins, NULL, and svgfig::window().

500  : m_name(name), m_bins(bins), m_xy(xy), m_1d(add_1d)
501 {
503  std::stringstream name_x_2d, name_y_2d, name_dxdz_2d, name_dydz_2d;
504  name_x_2d << m_name << "_x_2d";
505  name_y_2d << m_name << "_y_2d";
506  name_dxdz_2d << m_name << "_dxdz_2d";
507  name_dydz_2d << m_name << "_dydz_2d";
508 
509  const int nbins = 200;
510  const double window = 100.;
511 
512  m_x_2d = module->book2D("/iterN/", name_x_2d.str().c_str(), "", m_bins, low, high, nbins, -window, window);
513  if (m_xy) m_y_2d = module->book2D("/iterN/", name_y_2d.str().c_str(), "", m_bins, low, high, nbins, -window, window);
514  m_dxdz_2d = module->book2D("/iterN/", name_dxdz_2d.str().c_str(), "", m_bins, low, high, nbins, -window, window);
515  if (m_xy) m_dydz_2d = module->book2D("/iterN/", name_dydz_2d.str().c_str(), "", m_bins, low, high, nbins, -window, window);
516 
517  m_x_1d = NULL;
518  if (m_1d) {
519  std::stringstream name_x_1d;//, name_y_1d, name_dxdz_1d, name_dydz_1d;
520  name_x_1d << m_name << "_x_1d";
521  m_x_1d = module->book1D("/iterN/", name_x_1d.str().c_str(), "", nbins, -window, window);
522  }
523 }
def window
Definition: svgfig.py:642
TH2F * book2D(std::string dir, std::string name, std::string title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
#define NULL
Definition: scimark2.h:8
TH1F * book1D(std::string dir, std::string name, std::string title, int nchX, double lowX, double highX)

Member Function Documentation

void AlignmentMonitorMuonSystemMap1D::MuonSystemMapPlot1D::fill_dxdz ( char  charge,
double  abscissa,
double  slopex,
double  chi2,
int  dof 
)

Definition at line 556 of file AlignmentMonitorMuonSystemMap1D.cc.

Referenced by AlignmentMonitorMuonSystemMap1D::processMuonResidualsFromTrack().

557 {
558  if (chi2 > 0.) {
559  double residual = slopex * 1000.;
560  //double weight = dof / chi2;
561  m_dxdz_2d->Fill(abscissa, residual);
562  }
563 }
void AlignmentMonitorMuonSystemMap1D::MuonSystemMapPlot1D::fill_dydz ( char  charge,
double  abscissa,
double  slopey,
double  chi2,
int  dof 
)

Definition at line 566 of file AlignmentMonitorMuonSystemMap1D.cc.

Referenced by AlignmentMonitorMuonSystemMap1D::processMuonResidualsFromTrack().

567 {
568  if (m_xy && chi2 > 0.) {
569  double residual = slopey * 1000.;
570  //double weight = dof / chi2;
571  m_dydz_2d->Fill(abscissa, residual);
572  }
573 }
void AlignmentMonitorMuonSystemMap1D::MuonSystemMapPlot1D::fill_x ( char  charge,
double  abscissa,
double  residx,
double  chi2,
int  dof 
)

Definition at line 536 of file AlignmentMonitorMuonSystemMap1D.cc.

Referenced by AlignmentMonitorMuonSystemMap1D::processMuonResidualsFromTrack().

537 {
538  if (chi2 > 0.) {
539  double residual = residx * 10.;
540  //double weight = dof / chi2;
541  m_x_2d->Fill(abscissa, residual);
542  }
543 }
void AlignmentMonitorMuonSystemMap1D::MuonSystemMapPlot1D::fill_x_1d ( double  residx,
double  chi2,
int  dof 
)

Definition at line 526 of file AlignmentMonitorMuonSystemMap1D.cc.

Referenced by AlignmentMonitorMuonSystemMap1D::processMuonResidualsFromTrack().

527 {
528  if (m_1d && chi2 > 0.) {
529  // assume that residx was in radians
530  double residual = residx * 1000.;
531  m_x_1d->Fill(residual);
532  }
533 }
void AlignmentMonitorMuonSystemMap1D::MuonSystemMapPlot1D::fill_y ( char  charge,
double  abscissa,
double  residy,
double  chi2,
int  dof 
)

Definition at line 546 of file AlignmentMonitorMuonSystemMap1D.cc.

Referenced by AlignmentMonitorMuonSystemMap1D::processMuonResidualsFromTrack().

547 {
548  if (m_xy && chi2 > 0.) {
549  double residual = residy * 10.;
550  //double weight = dof / chi2;
551  m_y_2d->Fill(abscissa, residual);
552  }
553 }

Member Data Documentation

bool AlignmentMonitorMuonSystemMap1D::MuonSystemMapPlot1D::m_1d
private

Definition at line 96 of file AlignmentMonitorMuonSystemMap1D.cc.

Referenced by MuonSystemMapPlot1D().

int AlignmentMonitorMuonSystemMap1D::MuonSystemMapPlot1D::m_bins
private

Definition at line 94 of file AlignmentMonitorMuonSystemMap1D.cc.

Referenced by MuonSystemMapPlot1D().

TH2F * AlignmentMonitorMuonSystemMap1D::MuonSystemMapPlot1D::m_dxdz_2d
private

Definition at line 98 of file AlignmentMonitorMuonSystemMap1D.cc.

Referenced by MuonSystemMapPlot1D().

TH2F * AlignmentMonitorMuonSystemMap1D::MuonSystemMapPlot1D::m_dydz_2d
private

Definition at line 98 of file AlignmentMonitorMuonSystemMap1D.cc.

Referenced by MuonSystemMapPlot1D().

std::string AlignmentMonitorMuonSystemMap1D::MuonSystemMapPlot1D::m_name
private

Definition at line 93 of file AlignmentMonitorMuonSystemMap1D.cc.

Referenced by MuonSystemMapPlot1D().

TH1F* AlignmentMonitorMuonSystemMap1D::MuonSystemMapPlot1D::m_x_1d
private

Definition at line 97 of file AlignmentMonitorMuonSystemMap1D.cc.

Referenced by MuonSystemMapPlot1D().

TH2F* AlignmentMonitorMuonSystemMap1D::MuonSystemMapPlot1D::m_x_2d
private

Definition at line 98 of file AlignmentMonitorMuonSystemMap1D.cc.

Referenced by MuonSystemMapPlot1D().

bool AlignmentMonitorMuonSystemMap1D::MuonSystemMapPlot1D::m_xy
private

Definition at line 95 of file AlignmentMonitorMuonSystemMap1D.cc.

Referenced by MuonSystemMapPlot1D().

TH2F * AlignmentMonitorMuonSystemMap1D::MuonSystemMapPlot1D::m_y_2d
private

Definition at line 98 of file AlignmentMonitorMuonSystemMap1D.cc.

Referenced by MuonSystemMapPlot1D().