#include <MaterialBudgetHistos.h>
Public Member Functions | |
virtual void | fillEndTrack () |
virtual void | fillPerStep () |
virtual void | fillStartTrack () |
MaterialBudgetHistos (MaterialBudgetData *data, TestHistoMgr *mgr, const std::string &fileName) | |
virtual | ~MaterialBudgetHistos () |
Private Member Functions | |
virtual void | book () |
virtual void | hend () |
Private Attributes | |
TestHistoMgr * | hmgr |
int | MAXNUMBERSTEPS |
double * | theDmb |
double * | theMateId |
double * | theVoluId |
double * | theX |
double * | theY |
double * | theZ |
Definition at line 7 of file MaterialBudgetHistos.h.
MaterialBudgetHistos::MaterialBudgetHistos | ( | MaterialBudgetData * | data, |
TestHistoMgr * | mgr, | ||
const std::string & | fileName | ||
) |
Definition at line 5 of file MaterialBudgetHistos.cc.
References book(), convertXMLtoSQLite_cfg::fileName, and MaterialBudgetFormat::theFileName.
: MaterialBudgetFormat( data ), hmgr(mgr) { theFileName = fileName; book(); }
virtual MaterialBudgetHistos::~MaterialBudgetHistos | ( | ) | [inline, virtual] |
void MaterialBudgetHistos::book | ( | ) | [private, virtual] |
Definition at line 15 of file MaterialBudgetHistos.cc.
References TestHistoMgr::addHisto1(), TestHistoMgr::addHisto2(), TestHistoMgr::addHistoProf1(), TestHistoMgr::addHistoProf2(), gather_cfg::cout, and hmgr.
Referenced by MaterialBudgetHistos().
{ std::cout << "=== booking user histos ===" << std::endl; hmgr->addHistoProf1( new TProfile("10", "MB prof Eta ", 250, -5., 5. ) ); hmgr->addHisto1( new TH1F("11", "Eta " , 501, -5., 5. ) ); hmgr->addHistoProf1( new TProfile("20", "MB prof Phi ", 180, -3.1416, 3.1416 ) ); hmgr->addHisto1( new TH1F("21", "Phi " , 360, -3.1416, 3.1416 ) ); hmgr->addHistoProf2( new TProfile2D("30", "MB prof Eta Phi ", 250, -5., 5., 180, -3.1416, 3.1416 ) ); hmgr->addHisto2( new TH2F("31", "Eta vs Phi " , 501, -5., 5., 180, -3.1416, 3.1416 ) ); std::cout << "=== booking user histos done ===" << std::endl; }
void MaterialBudgetHistos::fillEndTrack | ( | ) | [virtual] |
Implements MaterialBudgetFormat.
Definition at line 42 of file MaterialBudgetHistos.cc.
References MaterialBudgetData::getEta(), TestHistoMgr::getHisto1(), TestHistoMgr::getHisto2(), TestHistoMgr::getHistoProf1(), TestHistoMgr::getHistoProf2(), MaterialBudgetData::getPhi(), MaterialBudgetData::getTotalMB(), hmgr, and MaterialBudgetFormat::theData.
{ hmgr->getHisto1(11)->Fill(theData->getEta()); hmgr->getHisto1(21)->Fill(theData->getPhi()); hmgr->getHisto2(31)->Fill(theData->getEta(),theData->getPhi()); hmgr->getHistoProf1(10)->Fill(theData->getEta(),theData->getTotalMB()); hmgr->getHistoProf1(20)->Fill(theData->getPhi(),theData->getTotalMB()); hmgr->getHistoProf2(30)->Fill(theData->getEta(),theData->getPhi(),theData->getTotalMB()); }
void MaterialBudgetHistos::fillPerStep | ( | ) | [virtual] |
void MaterialBudgetHistos::fillStartTrack | ( | ) | [virtual] |
void MaterialBudgetHistos::hend | ( | ) | [private, virtual] |
Definition at line 55 of file MaterialBudgetHistos.cc.
References gather_cfg::cout, hmgr, TestHistoMgr::save(), and MaterialBudgetFormat::theFileName.
Referenced by ~MaterialBudgetHistos().
{ std::cout << "=== save user histos ===" << std::endl; hmgr->save( theFileName ); }
TestHistoMgr* MaterialBudgetHistos::hmgr [private] |
Definition at line 35 of file MaterialBudgetHistos.h.
Referenced by book(), fillEndTrack(), and hend().
int MaterialBudgetHistos::MAXNUMBERSTEPS [private] |
Definition at line 27 of file MaterialBudgetHistos.h.
double* MaterialBudgetHistos::theDmb [private] |
Definition at line 28 of file MaterialBudgetHistos.h.
double* MaterialBudgetHistos::theMateId [private] |
Definition at line 33 of file MaterialBudgetHistos.h.
double* MaterialBudgetHistos::theVoluId [private] |
Definition at line 32 of file MaterialBudgetHistos.h.
double* MaterialBudgetHistos::theX [private] |
Definition at line 29 of file MaterialBudgetHistos.h.
double* MaterialBudgetHistos::theY [private] |
Definition at line 30 of file MaterialBudgetHistos.h.
double* MaterialBudgetHistos::theZ [private] |
Definition at line 31 of file MaterialBudgetHistos.h.