CMS 3D CMS Logo

Public Member Functions | Private Attributes

QualityCutsAnalyzer::histogram_t Class Reference

List of all members.

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, pixelhits, pt_1gev, sdl, tip, and indexGen::title.

        {
            std::string name, title;
            name = std::string("hits_") + particleType;
            title = std::string("Hit distribution for ") + particleType;
            hits = new TH1F(name.c_str(), title.c_str(), 19, -0.5, 18.5);

            name = std::string("chi2_") + particleType;
            title = std::string("Chi2 distribution for ") + particleType;
            chi2 = new TH1F(name.c_str(), title.c_str(), 100, 0., 30.);

            name = std::string("pixelhits_") + particleType;
            title = std::string("Pixel hits distribution for ") + particleType;
            pixelhits = new TH1F(name.c_str(), title.c_str(), 21, -0.5, 20.5);

            name = std::string("pt_1Gev_") + particleType;
            title = std::string("Pt distribution close 1Gev for ") + particleType;
            pt_1gev = new TH1F(name.c_str(), title.c_str(), 100, 0., 2.);

            name = std::string("tip_") + particleType;
            title = std::string("Transverse impact parameter distribution for ") + particleType;
            tip = new TH1F(name.c_str(), title.c_str(), 100, -0.3, 0.3);

            name = std::string("lip_") + particleType;
            title = std::string("Longitudinal impact parameter distribution for ") + particleType;
            lip = new TH1F(name.c_str(), title.c_str(), 100, -1., 1.);

            name = std::string("ips_") + particleType;
            title = std::string("IPS distribution for ") + particleType;
            ips = new TH1F(name.c_str(), title.c_str(), 100, -25.0, 25.0);

            name = std::string("sdl_") + particleType;
            title = std::string("Decay length distribution for ") + particleType;
            sdl = new TH1F(name.c_str(), title.c_str(), 100, -5., 5.);

            name = std::string("dta_") + particleType;
            title = std::string("Distance to jet distribution for ") + particleType;
            dta = new TH1F(name.c_str(), title.c_str(), 100, 0.0, 0.2);
        }
QualityCutsAnalyzer::histogram_t::~histogram_t ( ) [inline]

Definition at line 173 of file QualityCutsAnalyzer.cc.

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

        {
            delete hits;
            delete chi2;
            delete pixelhits;
            delete pt_1gev;
            delete tip;
            delete lip;
            delete ips;
            delete sdl;
            delete dta;
        }

Member Function Documentation

void QualityCutsAnalyzer::histogram_t::Fill ( const histogram_element_t data) [inline]
void QualityCutsAnalyzer::histogram_t::Write ( ) [inline]

Definition at line 199 of file QualityCutsAnalyzer.cc.

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

Referenced by QualityCutsAnalyzer::endJob().

        {
            hits->Write();
            chi2->Write();
            pixelhits->Write();
            pt_1gev->Write();
            ips->Write();
            tip->Write();
            lip->Write();
            sdl->Write();
            dta->Write();
        }

Member Data Documentation

Definition at line 128 of file QualityCutsAnalyzer.cc.

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

Definition at line 122 of file QualityCutsAnalyzer.cc.

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

Definition at line 129 of file QualityCutsAnalyzer.cc.

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

Definition at line 125 of file QualityCutsAnalyzer.cc.

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

Definition at line 124 of file QualityCutsAnalyzer.cc.

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

Definition at line 126 of file QualityCutsAnalyzer.cc.

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

Definition at line 127 of file QualityCutsAnalyzer.cc.

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

Definition at line 121 of file QualityCutsAnalyzer.cc.

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

Definition at line 123 of file QualityCutsAnalyzer.cc.

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