11 : m_name(name), m_bins(bins), m_twodimensional(twodimensional)
17 std::stringstream name_x_prof, name_y_prof, name_dxdz_prof, name_dydz_prof;
18 std::stringstream name_x_profPos, name_y_profPos, name_dxdz_profPos, name_dydz_profPos;
19 std::stringstream name_x_profNeg, name_y_profNeg, name_dxdz_profNeg, name_dydz_profNeg;
20 std::stringstream name_x_2d, name_y_2d, name_dxdz_2d, name_dydz_2d;
21 std::stringstream name_x_2dweight, name_y_2dweight, name_dxdz_2dweight, name_dydz_2dweight;
22 std::stringstream name_x_hist, name_y_hist, name_dxdz_hist, name_dydz_hist;
23 std::stringstream name_x_weights, name_y_weights, name_dxdz_weights, name_dydz_weights;
24 std::stringstream name_x_valweights, name_y_valweights, name_dxdz_valweights, name_dydz_valweights;
26 name_x_prof <<
m_name <<
"_x_prof";
27 name_y_prof << m_name <<
"_y_prof";
28 name_dxdz_prof << m_name <<
"_dxdz_prof";
29 name_dydz_prof << m_name <<
"_dydz_prof";
30 name_x_profPos << m_name <<
"_x_profPos";
31 name_y_profPos << m_name <<
"_y_profPos";
32 name_dxdz_profPos << m_name <<
"_dxdz_profPos";
33 name_dydz_profPos << m_name <<
"_dydz_profPos";
34 name_x_profNeg << m_name <<
"_x_profNeg";
35 name_y_profNeg << m_name <<
"_y_profNeg";
36 name_dxdz_profNeg << m_name <<
"_dxdz_profNeg";
37 name_dydz_profNeg << m_name <<
"_dydz_profNeg";
38 name_x_2d << m_name <<
"_x_2d";
39 name_y_2d << m_name <<
"_y_2d";
40 name_dxdz_2d << m_name <<
"_dxdz_2d";
41 name_dydz_2d << m_name <<
"_dydz_2d";
42 name_x_2dweight << m_name <<
"_x_2dweight";
43 name_y_2dweight << m_name <<
"_y_2dweight";
44 name_dxdz_2dweight << m_name <<
"_dxdz_2dweight";
45 name_dydz_2dweight << m_name <<
"_dydz_2dweight";
46 name_x_hist << m_name <<
"_x_hist";
47 name_y_hist << m_name <<
"_y_hist";
48 name_dxdz_hist << m_name <<
"_dxdz_hist";
49 name_dydz_hist << m_name <<
"_dydz_hist";
50 name_x_weights << m_name <<
"_x_weights";
51 name_y_weights << m_name <<
"_y_weights";
52 name_dxdz_weights << m_name <<
"_dxdz_weights";
53 name_dydz_weights << m_name <<
"_dydz_weights";
54 name_x_valweights << m_name <<
"_x_valweights";
55 name_y_valweights << m_name <<
"_y_valweights";
56 name_dxdz_valweights << m_name <<
"_dxdz_valweights";
57 name_dydz_valweights << m_name <<
"_dydz_valweights";
71 m_x_2d = module->
book2D(
"/iterN/", name_x_2d.str().c_str(),
"",
m_bins, low, high, 80, -40., 40.);
73 m_dxdz_2d = module->
book2D(
"/iterN/", name_dxdz_2d.str().c_str(),
"",
m_bins, low, high, 80, -40., 40.);
92 m_x_prof->SetAxisRange(-10., 10.,
"Y");
109 if (chi2 > 0. && TMath::Prob(chi2, dof) < 0.95) {
110 double residual = residx * 10.;
111 double weight = dof / chi2;
115 if (charge > 0)
m_x_profPos->Fill(abscissa, residual);
121 m_x_2d->Fill(abscissa, residual);
129 double residual = residy * 10.;
130 double weight = dof / chi2;
134 if (charge > 0)
m_y_profPos->Fill(abscissa, residual);
140 m_y_2d->Fill(abscissa, residual);
147 if (chi2 > 0. && TMath::Prob(chi2, dof) < 0.95) {
148 double residual = slopex * 1000.;
149 double weight = dof / chi2;
167 double residual = slopey * 1000.;
168 double weight = dof / chi2;
TProfile * m_dxdz_profPos
TProfile * m_dxdz_profNeg
const double MuonSystemMapPlot1D_dydzrange
TProfile * m_dydz_profNeg
TH2F * book2D(std::string dir, std::string name, std::string title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
void fill_y(char charge, double abscissa, double residy, double chi2, int dof)
TProfile * bookProfile(std::string dir, std::string name, std::string title, int nchX, double lowX, double highX, int nchY=1, double lowY=0., double highY=0., const char *option="s")
void fill_x(char charge, double abscissa, double residx, double chi2, int dof)
const double MuonSystemMapPlot1D_xrange
TH1F * book1D(std::string dir, std::string name, std::string title, int nchX, double lowX, double highX)
TProfile * m_dydz_profPos
const double MuonSystemMapPlot1D_yrange
void fill_dydz(char charge, double abscissa, double slopey, double chi2, int dof)
void fill_dxdz(char charge, double abscissa, double slopex, double chi2, int dof)
const double MuonSystemMapPlot1D_dxdzrange
MuonSystemMapPlot1D(std::string name, AlignmentMonitorMuonSystemMap1D *module, int bins, double low, double high, bool twodimensional)