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.

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.

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  }

◆ ~histogram_t()

QualityCutsAnalyzer::histogram_t::~histogram_t ( )
inline

Member Function Documentation

◆ Fill()

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

Definition at line 172 of file QualityCutsAnalyzer.cc.

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

Referenced by QualityCutsAnalyzer::endJob().

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  }
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79

◆ Write()

void QualityCutsAnalyzer::histogram_t::Write ( )
inline

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().