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

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

Definition at line 121 of file QualityCutsAnalyzer.cc.

References dataset::name, objects.autophobj::particleType, AlCaHLTBitMon_QueryRunRegistry::string, and fftjetcommon_cfi::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  }
QualityCutsAnalyzer::histogram_t::~histogram_t ( )
inline

Member Function Documentation

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

Definition at line 172 of file QualityCutsAnalyzer.cc.

References QualityCutsAnalyzer::histogram_element_t::chi2, QualityCutsAnalyzer::histogram_element_t::dta, QualityCutsAnalyzer::histogram_element_t::hits, QualityCutsAnalyzer::histogram_element_t::ips, QualityCutsAnalyzer::histogram_element_t::lip, QualityCutsAnalyzer::histogram_element_t::pt, QualityCutsAnalyzer::histogram_element_t::sdl, and QualityCutsAnalyzer::histogram_element_t::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:82
void QualityCutsAnalyzer::histogram_t::Write ( )
inline

Member Data Documentation

TH1F* QualityCutsAnalyzer::histogram_t::chi2
private

Definition at line 117 of file QualityCutsAnalyzer.cc.

TH1F* QualityCutsAnalyzer::histogram_t::dta
private

Definition at line 111 of file QualityCutsAnalyzer.cc.

TH1F* QualityCutsAnalyzer::histogram_t::hits
private

Definition at line 118 of file QualityCutsAnalyzer.cc.

TH1F* QualityCutsAnalyzer::histogram_t::ips
private

Definition at line 114 of file QualityCutsAnalyzer.cc.

TH1F* QualityCutsAnalyzer::histogram_t::lip
private

Definition at line 113 of file QualityCutsAnalyzer.cc.

TH1F* QualityCutsAnalyzer::histogram_t::pixelhits
private

Definition at line 115 of file QualityCutsAnalyzer.cc.

TH1F* QualityCutsAnalyzer::histogram_t::pt_1gev
private

Definition at line 116 of file QualityCutsAnalyzer.cc.

TH1F* QualityCutsAnalyzer::histogram_t::sdl
private

Definition at line 110 of file QualityCutsAnalyzer.cc.

TH1F* QualityCutsAnalyzer::histogram_t::tip
private

Definition at line 112 of file QualityCutsAnalyzer.cc.