CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

MaterialBudgetHistos Class Reference

#include <MaterialBudgetHistos.h>

Inheritance diagram for MaterialBudgetHistos:
MaterialBudgetFormat

List of all members.

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

TestHistoMgrhmgr
int MAXNUMBERSTEPS
double * theDmb
double * theMateId
double * theVoluId
double * theX
double * theY
double * theZ

Detailed Description

Definition at line 7 of file MaterialBudgetHistos.h.


Constructor & Destructor Documentation

MaterialBudgetHistos::MaterialBudgetHistos ( MaterialBudgetData data,
TestHistoMgr mgr,
const std::string &  fileName 
)
virtual MaterialBudgetHistos::~MaterialBudgetHistos ( ) [inline, virtual]

Definition at line 14 of file MaterialBudgetHistos.h.

References hend().

{ hend(); }

Member Function Documentation

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]
void MaterialBudgetHistos::fillPerStep ( ) [virtual]

Implements MaterialBudgetFormat.

Definition at line 36 of file MaterialBudgetHistos.cc.

{

}
void MaterialBudgetHistos::fillStartTrack ( ) [virtual]

Implements MaterialBudgetFormat.

Definition at line 30 of file MaterialBudgetHistos.cc.

{

}
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 );

}

Member Data Documentation

Definition at line 35 of file MaterialBudgetHistos.h.

Referenced by book(), fillEndTrack(), and hend().

Definition at line 27 of file MaterialBudgetHistos.h.

double* MaterialBudgetHistos::theDmb [private]

Definition at line 28 of file MaterialBudgetHistos.h.

Definition at line 33 of file MaterialBudgetHistos.h.

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.