CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
QualityCutsAnalyzer::histogram_t Class Reference

Public Member Functions

void Fill (const histogram_element_t &data)
 
 histogram_t (const std::string &particleType)
 
void Write ()
 
 ~histogram_t ()
 

Private Attributes

TH1F * chi2
 
TH1F * dta
 
TH1F * hits
 
TH1F * ips
 
TH1F * lip
 
TH1F * pixelhits
 
TH1F * pt_1gev
 
TH1F * sdl
 
TH1F * tip
 

Detailed Description

Definition at line 109 of file QualityCutsAnalyzer.cc.

Constructor & Destructor Documentation

◆ histogram_t()

QualityCutsAnalyzer::histogram_t::histogram_t ( const std::string &  particleType)
inline

Definition at line 121 of file QualityCutsAnalyzer.cc.

121  {
123  name = std::string("hits_") + particleType;
124  title = std::string("Hit distribution for ") + particleType;
125  hits = new TH1F(name.c_str(), title.c_str(), 19, -0.5, 18.5);
126 
127  name = std::string("chi2_") + particleType;
128  title = std::string("Chi2 distribution for ") + particleType;
129  chi2 = new TH1F(name.c_str(), title.c_str(), 100, 0., 30.);
130 
131  name = std::string("pixelhits_") + particleType;
132  title = std::string("Pixel hits distribution for ") + particleType;
133  pixelhits = new TH1F(name.c_str(), title.c_str(), 21, -0.5, 20.5);
134 
135  name = std::string("pt_1Gev_") + particleType;
136  title = std::string("Pt distribution close 1Gev for ") + particleType;
137  pt_1gev = new TH1F(name.c_str(), title.c_str(), 100, 0., 2.);
138 
139  name = std::string("tip_") + particleType;
140  title = std::string("Transverse impact parameter distribution for ") + particleType;
141  tip = new TH1F(name.c_str(), title.c_str(), 100, -0.3, 0.3);
142 
143  name = std::string("lip_") + particleType;
144  title = std::string("Longitudinal impact parameter distribution for ") + particleType;
145  lip = new TH1F(name.c_str(), title.c_str(), 100, -1., 1.);
146 
147  name = std::string("ips_") + particleType;
148  title = std::string("IPS distribution for ") + particleType;
149  ips = new TH1F(name.c_str(), title.c_str(), 100, -25.0, 25.0);
150 
151  name = std::string("sdl_") + particleType;
152  title = std::string("Decay length distribution for ") + particleType;
153  sdl = new TH1F(name.c_str(), title.c_str(), 100, -5., 5.);
154 
155  name = std::string("dta_") + particleType;
156  title = std::string("Distance to jet distribution for ") + particleType;
157  dta = new TH1F(name.c_str(), title.c_str(), 100, 0.0, 0.2);
158  }

References chi2, dta, hits, ips, lip, Skims_PA_cff::name, PbPb_ZMuSkimMuonDPG_cff::particleType, pixelhits, pt_1gev, sdl, AlCaHLTBitMon_QueryRunRegistry::string, tip, and runGCPTkAlMap::title.

◆ ~histogram_t()

QualityCutsAnalyzer::histogram_t::~histogram_t ( )
inline

Definition at line 160 of file QualityCutsAnalyzer.cc.

160  {
161  delete hits;
162  delete chi2;
163  delete pixelhits;
164  delete pt_1gev;
165  delete tip;
166  delete lip;
167  delete ips;
168  delete sdl;
169  delete dta;
170  }

References chi2, dta, hits, ips, lip, pixelhits, pt_1gev, sdl, and tip.

Member Function Documentation

◆ Fill()

void QualityCutsAnalyzer::histogram_t::Fill ( const histogram_element_t data)
inline

Definition at line 172 of file QualityCutsAnalyzer.cc.

172  {
173  hits->Fill(data.hits);
174  chi2->Fill(data.chi2);
175  pixelhits->Fill(data.pt);
176  pt_1gev->Fill(data.pt);
177  ips->Fill(data.ips);
178  tip->Fill(data.tip);
179  lip->Fill(data.lip);
180  sdl->Fill(data.sdl);
181  dta->Fill(data.dta);
182  }

References chi2, data, dta, hits, ips, lip, pixelhits, pt_1gev, sdl, and tip.

Referenced by QualityCutsAnalyzer::endJob().

◆ Write()

void QualityCutsAnalyzer::histogram_t::Write ( )
inline

Definition at line 184 of file QualityCutsAnalyzer.cc.

184  {
185  hits->Write();
186  chi2->Write();
187  pixelhits->Write();
188  pt_1gev->Write();
189  ips->Write();
190  tip->Write();
191  lip->Write();
192  sdl->Write();
193  dta->Write();
194  }

References chi2, dta, hits, ips, lip, pixelhits, pt_1gev, sdl, and tip.

Referenced by QualityCutsAnalyzer::endJob().

Member Data Documentation

◆ chi2

TH1F* QualityCutsAnalyzer::histogram_t::chi2
private

Definition at line 117 of file QualityCutsAnalyzer.cc.

Referenced by Fill(), histogram_t(), Write(), and ~histogram_t().

◆ dta

TH1F* QualityCutsAnalyzer::histogram_t::dta
private

Definition at line 111 of file QualityCutsAnalyzer.cc.

Referenced by Fill(), histogram_t(), Write(), and ~histogram_t().

◆ hits

TH1F* QualityCutsAnalyzer::histogram_t::hits
private

Definition at line 118 of file QualityCutsAnalyzer.cc.

Referenced by Fill(), histogram_t(), Write(), and ~histogram_t().

◆ ips

TH1F* QualityCutsAnalyzer::histogram_t::ips
private

Definition at line 114 of file QualityCutsAnalyzer.cc.

Referenced by Fill(), histogram_t(), Write(), and ~histogram_t().

◆ lip

TH1F* QualityCutsAnalyzer::histogram_t::lip
private

Definition at line 113 of file QualityCutsAnalyzer.cc.

Referenced by Fill(), histogram_t(), Write(), and ~histogram_t().

◆ pixelhits

TH1F* QualityCutsAnalyzer::histogram_t::pixelhits
private

Definition at line 115 of file QualityCutsAnalyzer.cc.

Referenced by Fill(), histogram_t(), Write(), and ~histogram_t().

◆ pt_1gev

TH1F* QualityCutsAnalyzer::histogram_t::pt_1gev
private

Definition at line 116 of file QualityCutsAnalyzer.cc.

Referenced by Fill(), histogram_t(), Write(), and ~histogram_t().

◆ sdl

TH1F* QualityCutsAnalyzer::histogram_t::sdl
private

Definition at line 110 of file QualityCutsAnalyzer.cc.

Referenced by Fill(), histogram_t(), Write(), and ~histogram_t().

◆ tip

TH1F* QualityCutsAnalyzer::histogram_t::tip
private

Definition at line 112 of file QualityCutsAnalyzer.cc.

Referenced by Fill(), histogram_t(), Write(), and ~histogram_t().

QualityCutsAnalyzer::histogram_t::sdl
TH1F * sdl
Definition: QualityCutsAnalyzer.cc:110
runGCPTkAlMap.title
string title
Definition: runGCPTkAlMap.py:94
QualityCutsAnalyzer::histogram_t::lip
TH1F * lip
Definition: QualityCutsAnalyzer.cc:113
QualityCutsAnalyzer::histogram_t::pt_1gev
TH1F * pt_1gev
Definition: QualityCutsAnalyzer.cc:116
QualityCutsAnalyzer::histogram_t::dta
TH1F * dta
Definition: QualityCutsAnalyzer.cc:111
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
QualityCutsAnalyzer::histogram_t::hits
TH1F * hits
Definition: QualityCutsAnalyzer.cc:118
QualityCutsAnalyzer::histogram_t::tip
TH1F * tip
Definition: QualityCutsAnalyzer.cc:112
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
QualityCutsAnalyzer::histogram_t::pixelhits
TH1F * pixelhits
Definition: QualityCutsAnalyzer.cc:115
PbPb_ZMuSkimMuonDPG_cff.particleType
particleType
Definition: PbPb_ZMuSkimMuonDPG_cff.py:27
QualityCutsAnalyzer::histogram_t::ips
TH1F * ips
Definition: QualityCutsAnalyzer.cc:114
QualityCutsAnalyzer::histogram_t::chi2
TH1F * chi2
Definition: QualityCutsAnalyzer.cc:117