CMS 3D CMS Logo

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 88 of file AlignmentMonitorMuonSystemMap1D.cc.

Constructor & Destructor Documentation

◆ MuonSystemMapPlot1D()

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

Definition at line 505 of file AlignmentMonitorMuonSystemMap1D.cc.

References LaserClient_cfi::high, LaserClient_cfi::low, m_1d, m_bins, m_dxdz_2d, m_dydz_2d, m_name, m_x_1d, m_x_2d, m_xy, m_y_2d, callgraph::module, LaserClient_cfi::nbins, and svgfig::window().

507  : m_name(name), m_bins(bins), m_xy(xy), m_1d(add_1d) {
508  m_x_2d = m_y_2d = m_dxdz_2d = m_dydz_2d = nullptr;
509  std::stringstream name_x_2d, name_y_2d, name_dxdz_2d, name_dydz_2d;
510  name_x_2d << m_name << "_x_2d";
511  name_y_2d << m_name << "_y_2d";
512  name_dxdz_2d << m_name << "_dxdz_2d";
513  name_dydz_2d << m_name << "_dydz_2d";
514 
515  const int nbins = 200;
516  const double window = 100.;
517 
518  m_x_2d = module->book2D("/iterN/", name_x_2d.str(), "", m_bins, low, high, nbins, -window, window);
519  if (m_xy)
520  m_y_2d = module->book2D("/iterN/", name_y_2d.str(), "", m_bins, low, high, nbins, -window, window);
521  m_dxdz_2d = module->book2D("/iterN/", name_dxdz_2d.str(), "", m_bins, low, high, nbins, -window, window);
522  if (m_xy)
523  m_dydz_2d = module->book2D("/iterN/", name_dydz_2d.str(), "", m_bins, low, high, nbins, -window, window);
524 
525  m_x_1d = nullptr;
526  if (m_1d) {
527  std::stringstream name_x_1d; //, name_y_1d, name_dxdz_1d, name_dydz_1d;
528  name_x_1d << m_name << "_x_1d";
529  m_x_1d = module->book1D("/iterN/", name_x_1d.str(), "", nbins, -window, window);
530  }
531 }
def window(xmin, xmax, ymin, ymax, x=0, y=0, width=100, height=100, xlogbase=None, ylogbase=None, minusInfinity=-1000, flipx=False, flipy=True)
Definition: svgfig.py:643

Member Function Documentation

◆ fill_dxdz()

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

Definition at line 559 of file AlignmentMonitorMuonSystemMap1D.cc.

References hltPixelTracks_cff::chi2.

Referenced by AlignmentMonitorMuonSystemMap1D::processMuonResidualsFromTrack().

560  {
561  if (chi2 > 0.) {
562  double residual = slopex * 1000.;
563  //double weight = dof / chi2;
564  m_dxdz_2d->Fill(abscissa, residual);
565  }
566 }

◆ fill_dydz()

void AlignmentMonitorMuonSystemMap1D::MuonSystemMapPlot1D::fill_dydz ( char  charge,
double  abscissa,
double  slopey,
double  chi2,
int  dof 
)

Definition at line 568 of file AlignmentMonitorMuonSystemMap1D.cc.

References hltPixelTracks_cff::chi2.

Referenced by AlignmentMonitorMuonSystemMap1D::processMuonResidualsFromTrack().

569  {
570  if (m_xy && chi2 > 0.) {
571  double residual = slopey * 1000.;
572  //double weight = dof / chi2;
573  m_dydz_2d->Fill(abscissa, residual);
574  }
575 }

◆ fill_x()

void AlignmentMonitorMuonSystemMap1D::MuonSystemMapPlot1D::fill_x ( char  charge,
double  abscissa,
double  residx,
double  chi2,
int  dof 
)

Definition at line 541 of file AlignmentMonitorMuonSystemMap1D.cc.

References hltPixelTracks_cff::chi2.

Referenced by AlignmentMonitorMuonSystemMap1D::processMuonResidualsFromTrack().

542  {
543  if (chi2 > 0.) {
544  double residual = residx * 10.;
545  //double weight = dof / chi2;
546  m_x_2d->Fill(abscissa, residual);
547  }
548 }

◆ fill_x_1d()

void AlignmentMonitorMuonSystemMap1D::MuonSystemMapPlot1D::fill_x_1d ( double  residx,
double  chi2,
int  dof 
)

Definition at line 533 of file AlignmentMonitorMuonSystemMap1D.cc.

References hltPixelTracks_cff::chi2.

Referenced by AlignmentMonitorMuonSystemMap1D::processMuonResidualsFromTrack().

533  {
534  if (m_1d && chi2 > 0.) {
535  // assume that residx was in radians
536  double residual = residx * 1000.;
537  m_x_1d->Fill(residual);
538  }
539 }

◆ fill_y()

void AlignmentMonitorMuonSystemMap1D::MuonSystemMapPlot1D::fill_y ( char  charge,
double  abscissa,
double  residy,
double  chi2,
int  dof 
)

Definition at line 550 of file AlignmentMonitorMuonSystemMap1D.cc.

References hltPixelTracks_cff::chi2.

Referenced by AlignmentMonitorMuonSystemMap1D::processMuonResidualsFromTrack().

551  {
552  if (m_xy && chi2 > 0.) {
553  double residual = residy * 10.;
554  //double weight = dof / chi2;
555  m_y_2d->Fill(abscissa, residual);
556  }
557 }

Member Data Documentation

◆ m_1d

bool AlignmentMonitorMuonSystemMap1D::MuonSystemMapPlot1D::m_1d
private

Definition at line 108 of file AlignmentMonitorMuonSystemMap1D.cc.

Referenced by MuonSystemMapPlot1D().

◆ m_bins

int AlignmentMonitorMuonSystemMap1D::MuonSystemMapPlot1D::m_bins
private

Definition at line 106 of file AlignmentMonitorMuonSystemMap1D.cc.

Referenced by MuonSystemMapPlot1D().

◆ m_dxdz_2d

TH2F * AlignmentMonitorMuonSystemMap1D::MuonSystemMapPlot1D::m_dxdz_2d
private

Definition at line 110 of file AlignmentMonitorMuonSystemMap1D.cc.

Referenced by MuonSystemMapPlot1D().

◆ m_dydz_2d

TH2F * AlignmentMonitorMuonSystemMap1D::MuonSystemMapPlot1D::m_dydz_2d
private

Definition at line 110 of file AlignmentMonitorMuonSystemMap1D.cc.

Referenced by MuonSystemMapPlot1D().

◆ m_name

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

Definition at line 105 of file AlignmentMonitorMuonSystemMap1D.cc.

Referenced by MuonSystemMapPlot1D().

◆ m_x_1d

TH1F* AlignmentMonitorMuonSystemMap1D::MuonSystemMapPlot1D::m_x_1d
private

Definition at line 109 of file AlignmentMonitorMuonSystemMap1D.cc.

Referenced by MuonSystemMapPlot1D().

◆ m_x_2d

TH2F* AlignmentMonitorMuonSystemMap1D::MuonSystemMapPlot1D::m_x_2d
private

Definition at line 110 of file AlignmentMonitorMuonSystemMap1D.cc.

Referenced by MuonSystemMapPlot1D().

◆ m_xy

bool AlignmentMonitorMuonSystemMap1D::MuonSystemMapPlot1D::m_xy
private

Definition at line 107 of file AlignmentMonitorMuonSystemMap1D.cc.

Referenced by MuonSystemMapPlot1D().

◆ m_y_2d

TH2F * AlignmentMonitorMuonSystemMap1D::MuonSystemMapPlot1D::m_y_2d
private

Definition at line 110 of file AlignmentMonitorMuonSystemMap1D.cc.

Referenced by MuonSystemMapPlot1D().