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 104 of file CTPPSTrackDistributionPlotter.cc.

Constructor & Destructor Documentation

◆ ArmPlots()

CTPPSTrackDistributionPlotter::ArmPlots::ArmPlots ( )
inline

Definition at line 119 of file CTPPSTrackDistributionPlotter.cc.

121  {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.)) {}
124 
125  void fill(double x_N, double y_N, double x_F, double y_F) {
126  h_de_x->Fill(x_F - x_N);
127  h_de_y->Fill(y_F - y_N);
128 

Member Function Documentation

◆ fill()

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

Definition at line 130 of file CTPPSTrackDistributionPlotter.cc.

141  {
142  h_de_x->Write("h_de_x");
143  h_de_y->Write("h_de_y");
144 

◆ write()

void CTPPSTrackDistributionPlotter::ArmPlots::write ( ) const
inline

Definition at line 146 of file CTPPSTrackDistributionPlotter.cc.

156  : 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  }
172  };
173 
174  std::map<unsigned int, ArmPlots> armPlots;
175 };
176 

References visDQMUpload::buf, g, training_settings::idx, and visualization-live-secondInstance_cfg::m.

Member Data Documentation

◆ h2_de_x_vs_x

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

Definition at line 110 of file CTPPSTrackDistributionPlotter.cc.

◆ h2_de_y_vs_de_x

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

Definition at line 111 of file CTPPSTrackDistributionPlotter.cc.

◆ h2_de_y_vs_x

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

Definition at line 110 of file CTPPSTrackDistributionPlotter.cc.

◆ h_de_x

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

Definition at line 107 of file CTPPSTrackDistributionPlotter.cc.

◆ h_de_y

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

Definition at line 107 of file CTPPSTrackDistributionPlotter.cc.

◆ m_stat

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

Definition at line 117 of file CTPPSTrackDistributionPlotter.cc.

◆ p2_de_x_vs_x_y

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

Definition at line 109 of file CTPPSTrackDistributionPlotter.cc.

◆ p2_de_y_vs_x_y

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

Definition at line 109 of file CTPPSTrackDistributionPlotter.cc.

◆ p_de_x_vs_x

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

Definition at line 108 of file CTPPSTrackDistributionPlotter.cc.

◆ p_de_y_vs_x

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

Definition at line 108 of file CTPPSTrackDistributionPlotter.cc.

◆ rpId_F

unsigned int CTPPSTrackDistributionPlotter::ArmPlots::rpId_F

Definition at line 105 of file CTPPSTrackDistributionPlotter.cc.

◆ rpId_N

unsigned int CTPPSTrackDistributionPlotter::ArmPlots::rpId_N

Definition at line 105 of file CTPPSTrackDistributionPlotter.cc.

DDAxes::y
DDAxes::x
training_settings.idx
idx
Definition: training_settings.py:16
F
static uInt32 F(BLOWFISH_CTX *ctx, uInt32 x)
Definition: blowfish.cc:163
CTPPSTrackDistributionPlotter::armPlots
std::map< unsigned int, ArmPlots > armPlots
Definition: CTPPSTrackDistributionPlotter.cc:179
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:72
CTPPSTrackDistributionPlotter::ArmPlots::h_de_x
std::unique_ptr< TH1D > h_de_x
Definition: CTPPSTrackDistributionPlotter.cc:107
N
#define N
Definition: blowfish.cc:9
CTPPSTrackDistributionPlotter::ArmPlots::m_stat
std::map< unsigned int, std::map< unsigned int, Stat > > m_stat
Definition: CTPPSTrackDistributionPlotter.cc:117
visDQMUpload.buf
buf
Definition: visDQMUpload.py:154
CTPPSTrackDistributionPlotter::ArmPlots::h_de_y
std::unique_ptr< TH1D > h_de_y
Definition: CTPPSTrackDistributionPlotter.cc:107
g
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