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

Constructor & Destructor Documentation

◆ ArmPlots()

CTPPSTrackDistributionPlotter::ArmPlots::ArmPlots ( )
inline

Definition at line 120 of file CTPPSTrackDistributionPlotter.cc.

122  {N};x^{F} - x^{N}", 80, 0., 40., 100, -1., +1.)),
123  h2_de_y_vs_x(new TH2D("", ";x^{N};y^{F} - y^{N}", 80, 0., 40., 100, -1., +1.)),
124  h2_de_y_vs_de_x(new TH2D("", ";x^{F} - x^{N};y^{F} - y^{N}", 100, -1., +1., 100, -1., +1.)) {}
125 
126  void fill(double x_N, double y_N, double x_F, double y_F) {
127  h_de_x->Fill(x_F - x_N);
128  h_de_y->Fill(y_F - y_N);
129 

Member Function Documentation

◆ fill()

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

Definition at line 131 of file CTPPSTrackDistributionPlotter.cc.

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

◆ write()

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

Definition at line 147 of file CTPPSTrackDistributionPlotter.cc.

157  : m_stat) {
158  TGraph* g = new TGraph();
159 
160  char buf[100];
161  sprintf(buf, "g_mean_track_mult_run_%u", rp.first);
162  g->SetName(buf);
163 
164  for (const auto& lsp : rp.second) {
165  const int idx = g->GetN();
166  const double m = (lsp.second.s1 > 0) ? double(lsp.second.sN) / lsp.second.s1 : 0.;
167  g->SetPoint(idx, lsp.first, m);
168  }
169 
170  g->Write();
171  }
172  }
173  };
174 
175  std::map<unsigned int, ArmPlots> armPlots;
176 };
177 

References visDQMUpload::buf, g, heavyIonCSV_trainingSettings::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 111 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 112 of file CTPPSTrackDistributionPlotter.cc.

◆ h2_de_y_vs_x

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

Definition at line 111 of file CTPPSTrackDistributionPlotter.cc.

◆ h_de_x

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

Definition at line 108 of file CTPPSTrackDistributionPlotter.cc.

◆ h_de_y

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

Definition at line 108 of file CTPPSTrackDistributionPlotter.cc.

◆ m_stat

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

Definition at line 118 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 110 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 110 of file CTPPSTrackDistributionPlotter.cc.

◆ p_de_x_vs_x

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

Definition at line 109 of file CTPPSTrackDistributionPlotter.cc.

◆ p_de_y_vs_x

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

Definition at line 109 of file CTPPSTrackDistributionPlotter.cc.

◆ rpId_F

unsigned int CTPPSTrackDistributionPlotter::ArmPlots::rpId_F

Definition at line 106 of file CTPPSTrackDistributionPlotter.cc.

◆ rpId_N

unsigned int CTPPSTrackDistributionPlotter::ArmPlots::rpId_N

Definition at line 106 of file CTPPSTrackDistributionPlotter.cc.

DDAxes::y
DDAxes::x
heavyIonCSV_trainingSettings.idx
idx
Definition: heavyIonCSV_trainingSettings.py:5
F
static uInt32 F(BLOWFISH_CTX *ctx, uInt32 x)
Definition: blowfish.cc:163
CTPPSTrackDistributionPlotter::armPlots
std::map< unsigned int, ArmPlots > armPlots
Definition: CTPPSTrackDistributionPlotter.cc:180
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:108
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:118
visDQMUpload.buf
buf
Definition: visDQMUpload.py:154
CTPPSTrackDistributionPlotter::ArmPlots::h_de_y
std::unique_ptr< TH1D > h_de_y
Definition: CTPPSTrackDistributionPlotter.cc:108
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