CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Public Attributes
CTPPSTrackDistributionPlotter::ArmPlots Struct Reference

Classes

struct  Stat
 

Public Member Functions

 ArmPlots ()
 
void fill (double x_N, double y_N, double x_F, double y_F)
 
void write () const
 

Public Attributes

std::unique_ptr< TH2D > h2_de_x_vs_x
 
std::unique_ptr< TH2D > h2_de_y_vs_de_x
 
std::unique_ptr< TH2D > h2_de_y_vs_x
 
std::unique_ptr< TH1D > h_de_x
 
std::unique_ptr< TH1D > h_de_y
 
std::map< unsigned int, std::map< unsigned int, Stat > > m_stat
 
std::unique_ptr< TProfile2D > p2_de_x_vs_x_y
 
std::unique_ptr< TProfile2D > p2_de_y_vs_x_y
 
std::unique_ptr< TProfile > p_de_x_vs_x
 
std::unique_ptr< TProfile > p_de_y_vs_x
 
unsigned int rpId_F
 
unsigned int rpId_N
 

Detailed Description

Definition at line 99 of file CTPPSTrackDistributionPlotter.cc.

Constructor & Destructor Documentation

CTPPSTrackDistributionPlotter::ArmPlots::ArmPlots ( )
inline

Definition at line 114 of file CTPPSTrackDistributionPlotter.cc.

115  : h_de_x(new TH1D("", ";x^{F} - x^{N}", 100, -1., +1.)),
116  h_de_y(new TH1D("", ";y^{F} - y^{N}", 100, -1., +1.)),
117  p_de_x_vs_x(new TProfile("", ";x^{N};x^{F} - x^{N}", 40, 0., 40.)),
118  p_de_y_vs_x(new TProfile("", ";x^{N};y^{F} - y^{N}", 40, 0., 40.)),
119  p2_de_x_vs_x_y(new TProfile2D("", ";x;y", 40, 0., 40., 40, -20., +20.)),
120  p2_de_y_vs_x_y(new TProfile2D("", ";x;y", 40, 0., 40., 40, -20., +20.)),
121  h2_de_x_vs_x(new TH2D("", ";x^{N};x^{F} - x^{N}", 80, 0., 40., 100, -1., +1.)),
122  h2_de_y_vs_x(new TH2D("", ";x^{N};y^{F} - y^{N}", 80, 0., 40., 100, -1., +1.)),
123  h2_de_y_vs_de_x(new TH2D("", ";x^{F} - x^{N};y^{F} - y^{N}", 100, -1., +1., 100, -1., +1.)) {}

Member Function Documentation

void CTPPSTrackDistributionPlotter::ArmPlots::fill ( double  x_N,
double  y_N,
double  x_F,
double  y_F 
)
inline

Definition at line 125 of file CTPPSTrackDistributionPlotter.cc.

125  {
126  h_de_x->Fill(x_F - x_N);
127  h_de_y->Fill(y_F - y_N);
128 
129  p_de_x_vs_x->Fill(x_N, x_F - x_N);
130  p_de_y_vs_x->Fill(x_N, y_F - y_N);
131 
132  p2_de_x_vs_x_y->Fill(x_N, y_N, x_F - x_N);
133  p2_de_y_vs_x_y->Fill(x_N, y_N, y_F - y_N);
134 
135  h2_de_x_vs_x->Fill(x_N, x_F - x_N);
136  h2_de_y_vs_x->Fill(x_N, y_F - y_N);
137 
138  h2_de_y_vs_de_x->Fill(x_F - x_N, y_F - y_N);
139  }
void CTPPSTrackDistributionPlotter::ArmPlots::write ( ) const
inline

Definition at line 141 of file CTPPSTrackDistributionPlotter.cc.

References g, training_settings::idx, and funct::m.

141  {
142  h_de_x->Write("h_de_x");
143  h_de_y->Write("h_de_y");
144 
145  p_de_x_vs_x->Write("p_de_x_vs_x");
146  p_de_y_vs_x->Write("p_de_y_vs_x");
147 
148  p2_de_x_vs_x_y->Write("p2_de_x_vs_x_y");
149  p2_de_y_vs_x_y->Write("p2_de_y_vs_x_y");
150 
151  h2_de_x_vs_x->Write("h2_de_x_vs_x");
152  h2_de_y_vs_x->Write("h2_de_y_vs_x");
153 
154  h2_de_y_vs_de_x->Write("h2_de_y_vs_de_x");
155 
156  for (const auto& rp : m_stat) {
157  TGraph* g = new TGraph();
158 
159  char buf[100];
160  sprintf(buf, "g_mean_track_mult_run_%u", rp.first);
161  g->SetName(buf);
162 
163  for (const auto& lsp : rp.second) {
164  const int idx = g->GetN();
165  const double m = (lsp.second.s1 > 0) ? double(lsp.second.sN) / lsp.second.s1 : 0.;
166  g->SetPoint(idx, lsp.first, m);
167  }
168 
169  g->Write();
170  }
171  }
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
Definition: Activities.doc:4
std::map< unsigned int, std::map< unsigned int, Stat > > m_stat

Member Data Documentation

std::unique_ptr<TH2D> CTPPSTrackDistributionPlotter::ArmPlots::h2_de_x_vs_x

Definition at line 105 of file CTPPSTrackDistributionPlotter.cc.

std::unique_ptr<TH2D> CTPPSTrackDistributionPlotter::ArmPlots::h2_de_y_vs_de_x

Definition at line 106 of file CTPPSTrackDistributionPlotter.cc.

std::unique_ptr<TH2D> CTPPSTrackDistributionPlotter::ArmPlots::h2_de_y_vs_x

Definition at line 105 of file CTPPSTrackDistributionPlotter.cc.

std::unique_ptr<TH1D> CTPPSTrackDistributionPlotter::ArmPlots::h_de_x

Definition at line 102 of file CTPPSTrackDistributionPlotter.cc.

std::unique_ptr<TH1D> CTPPSTrackDistributionPlotter::ArmPlots::h_de_y

Definition at line 102 of file CTPPSTrackDistributionPlotter.cc.

std::map<unsigned int, std::map<unsigned int, Stat> > CTPPSTrackDistributionPlotter::ArmPlots::m_stat

Definition at line 112 of file CTPPSTrackDistributionPlotter.cc.

std::unique_ptr<TProfile2D> CTPPSTrackDistributionPlotter::ArmPlots::p2_de_x_vs_x_y

Definition at line 104 of file CTPPSTrackDistributionPlotter.cc.

std::unique_ptr<TProfile2D> CTPPSTrackDistributionPlotter::ArmPlots::p2_de_y_vs_x_y

Definition at line 104 of file CTPPSTrackDistributionPlotter.cc.

std::unique_ptr<TProfile> CTPPSTrackDistributionPlotter::ArmPlots::p_de_x_vs_x

Definition at line 103 of file CTPPSTrackDistributionPlotter.cc.

std::unique_ptr<TProfile> CTPPSTrackDistributionPlotter::ArmPlots::p_de_y_vs_x

Definition at line 103 of file CTPPSTrackDistributionPlotter.cc.

unsigned int CTPPSTrackDistributionPlotter::ArmPlots::rpId_F

Definition at line 100 of file CTPPSTrackDistributionPlotter.cc.

unsigned int CTPPSTrackDistributionPlotter::ArmPlots::rpId_N

Definition at line 100 of file CTPPSTrackDistributionPlotter.cc.