CMS 3D CMS Logo

Public Member Functions | Private Attributes

AlignmentMonitorMuonSystemMap1D::MuonSystemMapPlot1D Class Reference

List of all members.

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 75 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 484 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().

   : m_name(name), m_bins(bins), m_xy(xy), m_1d(add_1d)
{
  m_x_2d = m_y_2d = m_dxdz_2d = m_dydz_2d = NULL;
  std::stringstream name_x_2d, name_y_2d, name_dxdz_2d, name_dydz_2d;
  name_x_2d << m_name << "_x_2d";
  name_y_2d << m_name << "_y_2d";
  name_dxdz_2d << m_name << "_dxdz_2d";
  name_dydz_2d << m_name << "_dydz_2d";

  const int nbins = 200;
  const double window = 100.;

  m_x_2d = module->book2D("/iterN/", name_x_2d.str().c_str(), "", m_bins, low, high, nbins, -window, window);
  if (m_xy) m_y_2d = module->book2D("/iterN/", name_y_2d.str().c_str(), "", m_bins, low, high, nbins, -window, window);
  m_dxdz_2d = module->book2D("/iterN/", name_dxdz_2d.str().c_str(), "", m_bins, low, high, nbins, -window, window);
  if (m_xy) m_dydz_2d = module->book2D("/iterN/", name_dydz_2d.str().c_str(), "", m_bins, low, high, nbins, -window, window);

  m_x_1d = NULL;
  if (m_1d) {
    std::stringstream name_x_1d;//, name_y_1d, name_dxdz_1d, name_dydz_1d;
    name_x_1d << m_name << "_x_1d";
    m_x_1d = module->book1D("/iterN/", name_x_1d.str().c_str(), "", nbins, -window, window);
  }
}

Member Function Documentation

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

Definition at line 541 of file AlignmentMonitorMuonSystemMap1D.cc.

Referenced by AlignmentMonitorMuonSystemMap1D::processMuonResidualsFromTrack().

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

Definition at line 551 of file AlignmentMonitorMuonSystemMap1D.cc.

Referenced by AlignmentMonitorMuonSystemMap1D::processMuonResidualsFromTrack().

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

Definition at line 521 of file AlignmentMonitorMuonSystemMap1D.cc.

Referenced by AlignmentMonitorMuonSystemMap1D::processMuonResidualsFromTrack().

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

Definition at line 511 of file AlignmentMonitorMuonSystemMap1D.cc.

Referenced by AlignmentMonitorMuonSystemMap1D::processMuonResidualsFromTrack().

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

Definition at line 531 of file AlignmentMonitorMuonSystemMap1D.cc.

Referenced by AlignmentMonitorMuonSystemMap1D::processMuonResidualsFromTrack().

{
  if (m_xy  &&  chi2 > 0.) {
    double residual = residy * 10.;
    //double weight = dof / chi2;
    m_y_2d->Fill(abscissa, residual);
  }
}

Member Data Documentation

Definition at line 90 of file AlignmentMonitorMuonSystemMap1D.cc.

Referenced by MuonSystemMapPlot1D().

Definition at line 88 of file AlignmentMonitorMuonSystemMap1D.cc.

Referenced by MuonSystemMapPlot1D().

Definition at line 92 of file AlignmentMonitorMuonSystemMap1D.cc.

Referenced by MuonSystemMapPlot1D().

Definition at line 92 of file AlignmentMonitorMuonSystemMap1D.cc.

Referenced by MuonSystemMapPlot1D().

Definition at line 87 of file AlignmentMonitorMuonSystemMap1D.cc.

Referenced by MuonSystemMapPlot1D().

Definition at line 91 of file AlignmentMonitorMuonSystemMap1D.cc.

Referenced by MuonSystemMapPlot1D().

Definition at line 92 of file AlignmentMonitorMuonSystemMap1D.cc.

Referenced by MuonSystemMapPlot1D().

Definition at line 89 of file AlignmentMonitorMuonSystemMap1D.cc.

Referenced by MuonSystemMapPlot1D().

Definition at line 92 of file AlignmentMonitorMuonSystemMap1D.cc.

Referenced by MuonSystemMapPlot1D().