CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Private Attributes
HistoManager Class Reference

#include <HistoManager.h>

Public Types

enum  EventType {
  UNKNOWN =0, PEDESTAL =1, LED =2, LASER =3,
  BEAM =4, NUMEVTTYPES =5
}
 
enum  HistType {
  ENERGY =0, TIME =1, PULSE =2, ADC =3,
  NUMHISTTYPES =4
}
 

Public Member Functions

TH1 * GetAHistogram (const MyHcalDetId &id, HistType ht, EventType et)
 
TH1 * GetAHistogram (const MyElectronicsId &id, HistType ht, EventType et)
 
std::vector< MyHcalDetIdgetDetIdsForType (HistType ht, EventType et)
 
std::vector< MyElectronicsIdgetElecIdsForType (HistType ht, EventType et)
 
 HistoManager (TDirectory *parent)
 

Static Public Member Functions

static std::string nameForEvent (EventType et)
 
static std::string nameForFlavor (HistType ht)
 

Private Attributes

TDirectory * beamHistDir
 
TDirectory * laserHistDir
 
TDirectory * ledHistDir
 
bool m_writeMode
 
TDirectory * otherHistDir
 
TDirectory * pedHistDir
 

Detailed Description

Definition at line 8 of file HistoManager.h.

Member Enumeration Documentation

Enumerator
UNKNOWN 
PEDESTAL 
LED 
LASER 
BEAM 
NUMEVTTYPES 

Definition at line 11 of file HistoManager.h.

Enumerator
ENERGY 
TIME 
PULSE 
ADC 
NUMHISTTYPES 

Definition at line 10 of file HistoManager.h.

Constructor & Destructor Documentation

HistoManager::HistoManager ( TDirectory *  parent)

Definition at line 5 of file HistoManager.cc.

Member Function Documentation

TH1 * HistoManager::GetAHistogram ( const MyHcalDetId id,
HistType  ht,
EventType  et 
)

Definition at line 36 of file HistoManager.cc.

TH1 * HistoManager::GetAHistogram ( const MyElectronicsId id,
HistType  ht,
EventType  et 
)

Definition at line 88 of file HistoManager.cc.

std::vector< MyHcalDetId > HistoManager::getDetIdsForType ( HistType  ht,
EventType  et 
)

Definition at line 132 of file HistoManager.cc.

std::vector< MyElectronicsId > HistoManager::getElecIdsForType ( HistType  ht,
EventType  et 
)

Definition at line 185 of file HistoManager.cc.

std::string HistoManager::nameForEvent ( EventType  et)
static

Definition at line 25 of file HistoManager.cc.

std::string HistoManager::nameForFlavor ( HistType  ht)
static

Definition at line 14 of file HistoManager.cc.

Member Data Documentation

TDirectory* HistoManager::beamHistDir
private

Definition at line 34 of file HistoManager.h.

TDirectory* HistoManager::laserHistDir
private

Definition at line 33 of file HistoManager.h.

TDirectory* HistoManager::ledHistDir
private

Definition at line 32 of file HistoManager.h.

bool HistoManager::m_writeMode
private

Definition at line 30 of file HistoManager.h.

TDirectory* HistoManager::otherHistDir
private

Definition at line 35 of file HistoManager.h.

TDirectory* HistoManager::pedHistDir
private

Definition at line 31 of file HistoManager.h.