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 Member Functions | Private Attributes | Friends
HcalAssistant Class Reference

#include <CaloOnlineTools/HcalOnlineDb/interface/HcalAssistant.h>

Public Member Functions

int a_to_i (char *inbuf)
 
int addQuotes ()
 
int getDepth (int _rawid)
 
int getIeta (int _rawid)
 
int getIphi (int _rawid)
 
int getListOfChannelsFromDb ()
 
std::string getRandomQuote (void)
 
int getRawId (HcalSubdetector _det, int _ieta, int _iphi, int _depth)
 
HcalSubdetector getSubdetector (std::string _det)
 
int getSubdetector (int _rawid)
 
std::string getSubdetectorString (HcalSubdetector _det)
 
std::string getUserName (void)
 
HcalZDCDetId::Section getZDCSection (std::string _section)
 
std::string getZDCSectionString (HcalZDCDetId::Section _section)
 
 HcalAssistant ()
 
virtual ~HcalAssistant ()
 

Private Member Functions

int getGeomId (HcalSubdetector _det, int _ieta, int _iphi, int _depth)
 
int getGeomId (int _rawid)
 
int getHcalDepth (int _geomId)
 
int getHcalIeta (int _geomId)
 
int getHcalIphi (int _geomId)
 
HcalSubdetector getHcalSubdetector (int _geomId)
 
int getRawId (int _geomId)
 
int getRawIdFromCmssw (int _geomId)
 
std::string getSubdetectorString (int _geomId)
 

Private Attributes

std::map< int, int > geom_to_rawid
 
bool listIsRead
 
std::vector< std::string > quotes
 
std::map< int, int > rawid_to_geom
 

Friends

class HcalChannelQualityXml
 

Detailed Description

Description: Various helper functions

Usage: <usage>

Definition at line 35 of file HcalAssistant.h.

Constructor & Destructor Documentation

HcalAssistant::HcalAssistant ( )

Definition at line 33 of file HcalAssistant.cc.

HcalAssistant::~HcalAssistant ( )
virtual

Definition at line 41 of file HcalAssistant.cc.

Member Function Documentation

int HcalAssistant::a_to_i ( char *  inbuf)

Definition at line 305 of file HcalAssistant.cc.

int HcalAssistant::addQuotes ( )

Definition at line 46 of file HcalAssistant.cc.

int HcalAssistant::getDepth ( int  _rawid)

Definition at line 292 of file HcalAssistant.cc.

int HcalAssistant::getGeomId ( HcalSubdetector  _det,
int  _ieta,
int  _iphi,
int  _depth 
)
private

Definition at line 87 of file HcalAssistant.cc.

int HcalAssistant::getGeomId ( int  _rawid)
private

Definition at line 224 of file HcalAssistant.cc.

int HcalAssistant::getHcalDepth ( int  _geomId)
private

Definition at line 112 of file HcalAssistant.cc.

int HcalAssistant::getHcalIeta ( int  _geomId)
private

Definition at line 100 of file HcalAssistant.cc.

int HcalAssistant::getHcalIphi ( int  _geomId)
private

Definition at line 106 of file HcalAssistant.cc.

HcalSubdetector HcalAssistant::getHcalSubdetector ( int  _geomId)
private

Definition at line 118 of file HcalAssistant.cc.

int HcalAssistant::getIeta ( int  _rawid)

Definition at line 280 of file HcalAssistant.cc.

int HcalAssistant::getIphi ( int  _rawid)

Definition at line 286 of file HcalAssistant.cc.

int HcalAssistant::getListOfChannelsFromDb ( )

Definition at line 187 of file HcalAssistant.cc.

std::string HcalAssistant::getRandomQuote ( void  )

Definition at line 72 of file HcalAssistant.cc.

int HcalAssistant::getRawId ( HcalSubdetector  _det,
int  _ieta,
int  _iphi,
int  _depth 
)

Definition at line 298 of file HcalAssistant.cc.

int HcalAssistant::getRawId ( int  _geomId)
private

Definition at line 237 of file HcalAssistant.cc.

int HcalAssistant::getRawIdFromCmssw ( int  _geomId)
private

Definition at line 249 of file HcalAssistant.cc.

HcalSubdetector HcalAssistant::getSubdetector ( std::string  _det)

Definition at line 145 of file HcalAssistant.cc.

int HcalAssistant::getSubdetector ( int  _rawid)

Definition at line 275 of file HcalAssistant.cc.

std::string HcalAssistant::getSubdetectorString ( HcalSubdetector  _det)

Definition at line 154 of file HcalAssistant.cc.

std::string HcalAssistant::getSubdetectorString ( int  _geomId)
private

Definition at line 130 of file HcalAssistant.cc.

std::string HcalAssistant::getUserName ( void  )

Definition at line 79 of file HcalAssistant.cc.

HcalZDCDetId::Section HcalAssistant::getZDCSection ( std::string  _section)

Definition at line 177 of file HcalAssistant.cc.

std::string HcalAssistant::getZDCSectionString ( HcalZDCDetId::Section  _section)

Definition at line 166 of file HcalAssistant.cc.

Friends And Related Function Documentation

friend class HcalChannelQualityXml
friend

Definition at line 39 of file HcalAssistant.h.

Member Data Documentation

std::map<int,int> HcalAssistant::geom_to_rawid
private

Definition at line 65 of file HcalAssistant.h.

bool HcalAssistant::listIsRead
private

Definition at line 67 of file HcalAssistant.h.

std::vector<std::string> HcalAssistant::quotes
private

Definition at line 64 of file HcalAssistant.h.

std::map<int,int> HcalAssistant::rawid_to_geom
private

Definition at line 66 of file HcalAssistant.h.