CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
CTPPSProtonReconstructionPlotter::SingleRPPlots Struct Reference

Public Member Functions

void fill (const reco::ForwardProton &p, unsigned int nTracks, bool n1f1)
 
 SingleRPPlots ()
 
void write () const
 

Public Attributes

std::unique_ptr< TH2D > h2_th_y_vs_xi
 
std::unique_ptr< TH1D > h_multiplicity
 
std::unique_ptr< TH1D > h_xi
 
std::unique_ptr< TH1D > h_xi_n1f1
 
std::map< unsigned int, TH1D * > m_h_xi_nTracks
 
std::unique_ptr< TProfile > p_th_y_vs_xi
 

Detailed Description

Definition at line 95 of file CTPPSProtonReconstructionPlotter.cc.

Constructor & Destructor Documentation

◆ SingleRPPlots()

CTPPSProtonReconstructionPlotter::SingleRPPlots::SingleRPPlots ( )
inline

Definition at line 104 of file CTPPSProtonReconstructionPlotter.cc.

104  : h_multiplicity(new TH1D("", ";reconstructed protons", 11, -0.5, 10.5)),
105  h_xi(new TH1D("", ";#xi", 100, 0., 0.3)),
106  h2_th_y_vs_xi(new TH2D("", ";#xi;#theta_{y} (rad)", 100, 0., 0.3, 100, -500E-6, +500E-6)),
107  p_th_y_vs_xi(new TProfile("", ";#xi;#theta_{y} (rad)", 100, 0., 0.3)),
108  h_xi_n1f1(new TH1D("", ";#xi", 100, 0., 0.3)) {
109  for (unsigned int n = 2; n <= 10; ++n)
110  m_h_xi_nTracks[n] = new TH1D(*h_xi);
111  }
112 

References h_xi, m_h_xi_nTracks, and dqmiodumpmetadata::n.

Member Function Documentation

◆ fill()

void CTPPSProtonReconstructionPlotter::SingleRPPlots::fill ( const reco::ForwardProton p,
unsigned int  nTracks,
bool  n1f1 
)
inline

Definition at line 114 of file CTPPSProtonReconstructionPlotter.cc.

114  {
115  h_xi->Fill(p.xi());
116 
117  const double th_y = p.thetaY();
118  h2_th_y_vs_xi->Fill(p.xi(), th_y);
119  p_th_y_vs_xi->Fill(p.xi(), th_y);
120 
121  auto it = m_h_xi_nTracks.find(nTracks);
122  if (it != m_h_xi_nTracks.end())
123  it->second->Fill(p.xi());
124 
125  if (n1f1)
126  h_xi_n1f1->Fill(p.xi());
127  }
128  }
129 

References h2_th_y_vs_xi, h_xi, h_xi_n1f1, m_h_xi_nTracks, BeamSpotPI::nTracks, AlCaHLTBitMon_ParallelJobs::p, and p_th_y_vs_xi.

◆ write()

void CTPPSProtonReconstructionPlotter::SingleRPPlots::write ( ) const
inline

Definition at line 131 of file CTPPSProtonReconstructionPlotter.cc.

140  : m_h_xi_nTracks) {
141  char buf[100];
142  sprintf(buf, "h_xi_nTracks_%u", p.first);
143  p.second->Write(buf);
144  }
145 
146  gDirectory = d_top;
147 
148  h_xi_n1f1->Write("h_xi_n1f1");
149  }
150  };

References visDQMUpload::buf, and AlCaHLTBitMon_ParallelJobs::p.

Member Data Documentation

◆ h2_th_y_vs_xi

std::unique_ptr<TH2D> CTPPSProtonReconstructionPlotter::SingleRPPlots::h2_th_y_vs_xi

Definition at line 98 of file CTPPSProtonReconstructionPlotter.cc.

Referenced by fill().

◆ h_multiplicity

std::unique_ptr<TH1D> CTPPSProtonReconstructionPlotter::SingleRPPlots::h_multiplicity

Definition at line 96 of file CTPPSProtonReconstructionPlotter.cc.

◆ h_xi

std::unique_ptr<TH1D> CTPPSProtonReconstructionPlotter::SingleRPPlots::h_xi

Definition at line 97 of file CTPPSProtonReconstructionPlotter.cc.

Referenced by fill(), and SingleRPPlots().

◆ h_xi_n1f1

std::unique_ptr<TH1D> CTPPSProtonReconstructionPlotter::SingleRPPlots::h_xi_n1f1

Definition at line 102 of file CTPPSProtonReconstructionPlotter.cc.

Referenced by fill().

◆ m_h_xi_nTracks

std::map<unsigned int, TH1D *> CTPPSProtonReconstructionPlotter::SingleRPPlots::m_h_xi_nTracks

Definition at line 101 of file CTPPSProtonReconstructionPlotter.cc.

Referenced by fill(), and SingleRPPlots().

◆ p_th_y_vs_xi

std::unique_ptr<TProfile> CTPPSProtonReconstructionPlotter::SingleRPPlots::p_th_y_vs_xi

Definition at line 99 of file CTPPSProtonReconstructionPlotter.cc.

Referenced by fill().

CTPPSProtonReconstructionPlotter::SingleRPPlots::h2_th_y_vs_xi
std::unique_ptr< TH2D > h2_th_y_vs_xi
Definition: CTPPSProtonReconstructionPlotter.cc:98
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
CTPPSProtonReconstructionPlotter::SingleRPPlots::h_xi
std::unique_ptr< TH1D > h_xi
Definition: CTPPSProtonReconstructionPlotter.cc:97
CTPPSProtonReconstructionPlotter::SingleRPPlots::m_h_xi_nTracks
std::map< unsigned int, TH1D * > m_h_xi_nTracks
Definition: CTPPSProtonReconstructionPlotter.cc:101
BeamSpotPI::nTracks
Definition: BeamSpotPayloadInspectorHelper.h:41
CTPPSProtonReconstructionPlotter::SingleRPPlots::h_xi_n1f1
std::unique_ptr< TH1D > h_xi_n1f1
Definition: CTPPSProtonReconstructionPlotter.cc:102
visDQMUpload.buf
buf
Definition: visDQMUpload.py:154
CTPPSProtonReconstructionPlotter::SingleRPPlots::p_th_y_vs_xi
std::unique_ptr< TProfile > p_th_y_vs_xi
Definition: CTPPSProtonReconstructionPlotter.cc:99
CTPPSProtonReconstructionPlotter::SingleRPPlots::h_multiplicity
std::unique_ptr< TH1D > h_multiplicity
Definition: CTPPSProtonReconstructionPlotter.cc:96