CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 118 of file QualityCutsAnalyzer.cc.

Constructor & Destructor Documentation

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

Definition at line 133 of file QualityCutsAnalyzer.cc.

References chi2, dta, hits, ips, lip, mergeVDriftHistosByStation::name, HLT_FULL_cff::particleType, pixelhits, pt_1gev, sdl, AlCaHLTBitMon_QueryRunRegistry::string, tip, and indexGen::title.

134  {
136  name = std::string("hits_") + particleType;
137  title = std::string("Hit distribution for ") + particleType;
138  hits = new TH1F(name.c_str(), title.c_str(), 19, -0.5, 18.5);
139 
140  name = std::string("chi2_") + particleType;
141  title = std::string("Chi2 distribution for ") + particleType;
142  chi2 = new TH1F(name.c_str(), title.c_str(), 100, 0., 30.);
143 
144  name = std::string("pixelhits_") + particleType;
145  title = std::string("Pixel hits distribution for ") + particleType;
146  pixelhits = new TH1F(name.c_str(), title.c_str(), 21, -0.5, 20.5);
147 
148  name = std::string("pt_1Gev_") + particleType;
149  title = std::string("Pt distribution close 1Gev for ") + particleType;
150  pt_1gev = new TH1F(name.c_str(), title.c_str(), 100, 0., 2.);
151 
152  name = std::string("tip_") + particleType;
153  title = std::string("Transverse impact parameter distribution for ") + particleType;
154  tip = new TH1F(name.c_str(), title.c_str(), 100, -0.3, 0.3);
155 
156  name = std::string("lip_") + particleType;
157  title = std::string("Longitudinal impact parameter distribution for ") + particleType;
158  lip = new TH1F(name.c_str(), title.c_str(), 100, -1., 1.);
159 
160  name = std::string("ips_") + particleType;
161  title = std::string("IPS distribution for ") + particleType;
162  ips = new TH1F(name.c_str(), title.c_str(), 100, -25.0, 25.0);
163 
164  name = std::string("sdl_") + particleType;
165  title = std::string("Decay length distribution for ") + particleType;
166  sdl = new TH1F(name.c_str(), title.c_str(), 100, -5., 5.);
167 
168  name = std::string("dta_") + particleType;
169  title = std::string("Distance to jet distribution for ") + particleType;
170  dta = new TH1F(name.c_str(), title.c_str(), 100, 0.0, 0.2);
171  }
tuple particleType
QualityCutsAnalyzer::histogram_t::~histogram_t ( )
inline

Member Function Documentation

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

Definition at line 186 of file QualityCutsAnalyzer.cc.

References QualityCutsAnalyzer::histogram_element_t::chi2, chi2, QualityCutsAnalyzer::histogram_element_t::dta, dta, QualityCutsAnalyzer::histogram_element_t::hits, hits, QualityCutsAnalyzer::histogram_element_t::ips, ips, QualityCutsAnalyzer::histogram_element_t::lip, lip, pixelhits, QualityCutsAnalyzer::histogram_element_t::pt, pt_1gev, QualityCutsAnalyzer::histogram_element_t::sdl, sdl, QualityCutsAnalyzer::histogram_element_t::tip, and tip.

Referenced by QualityCutsAnalyzer::endJob().

187  {
188  hits->Fill(data.hits);
189  chi2->Fill(data.chi2);
190  pixelhits->Fill(data.pt);
191  pt_1gev->Fill(data.pt);
192  ips->Fill(data.ips);
193  tip->Fill(data.tip);
194  lip->Fill(data.lip);
195  sdl->Fill(data.sdl);
196  dta->Fill(data.dta);
197  }
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 128 of file QualityCutsAnalyzer.cc.

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

TH1F* QualityCutsAnalyzer::histogram_t::dta
private

Definition at line 122 of file QualityCutsAnalyzer.cc.

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

TH1F* QualityCutsAnalyzer::histogram_t::hits
private

Definition at line 129 of file QualityCutsAnalyzer.cc.

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

TH1F* QualityCutsAnalyzer::histogram_t::ips
private

Definition at line 125 of file QualityCutsAnalyzer.cc.

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

TH1F* QualityCutsAnalyzer::histogram_t::lip
private

Definition at line 124 of file QualityCutsAnalyzer.cc.

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

TH1F* QualityCutsAnalyzer::histogram_t::pixelhits
private

Definition at line 126 of file QualityCutsAnalyzer.cc.

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

TH1F* QualityCutsAnalyzer::histogram_t::pt_1gev
private

Definition at line 127 of file QualityCutsAnalyzer.cc.

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

TH1F* QualityCutsAnalyzer::histogram_t::sdl
private

Definition at line 121 of file QualityCutsAnalyzer.cc.

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

TH1F* QualityCutsAnalyzer::histogram_t::tip
private

Definition at line 123 of file QualityCutsAnalyzer.cc.

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