CMS 3D CMS Logo

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

#include <GeometryHelper.h>

Static Public Member Functions

static const MeInfoget (MonitorElement *me)
 
static void set (MonitorElement *me, ObjectType otype, BinningType btype, int ism)
 

Static Private Attributes

static std::map< std::string,
MeInfo
infos
 

Detailed Description

Definition at line 42 of file GeometryHelper.h.

Member Function Documentation

const MeInfo * ecaldqm::MeInfoMap::get ( MonitorElement me)
static

Definition at line 36 of file GeometryHelper.cc.

References end, MonitorElement::getFullname(), infos, and NULL.

Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), ecaldqm::fillME(), ecaldqm::getBinContentME(), ecaldqm::getBinEntriesME(), ecaldqm::getBinErrorME(), ecaldqm::getBinME(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), ecaldqm::setBinContentME(), ecaldqm::setBinEntriesME(), and ecaldqm::setBinErrorME().

37  {
38  if( !me ) return NULL;
39 
40  std::map<std::string, MeInfo>::const_iterator it = MeInfoMap::infos.find( me->getFullname() );
41 
42  if( it == MeInfoMap::infos.end() ) return NULL;
43 
44  return &(it->second);
45  }
#define NULL
Definition: scimark2.h:8
#define end
Definition: vmac.h:37
const std::string getFullname(void) const
get full name of ME including Pathname
static std::map< std::string, MeInfo > infos
void ecaldqm::MeInfoMap::set ( MonitorElement me,
ObjectType  otype,
BinningType  btype,
int  ism 
)
static

Definition at line 21 of file GeometryHelper.cc.

References ecaldqm::MeInfo::btype, MonitorElement::getFullname(), info(), infos, ecaldqm::MeInfo::ism, ecalpyutils::ism(), and ecaldqm::MeInfo::otype.

Referenced by ecaldqm::bookME(), and betterConfigParser.BetterConfigParser::getGeneral().

22  {
23 
24  if( !me ) return;
25 
26  MeInfo info;
27  info.otype = otype;
28  info.btype = btype;
29  info.ism = ism;
30 
32 
33  }
static const TGPicture * info(bool iBackgroundIsBlack)
const std::string getFullname(void) const
get full name of ME including Pathname
int ism(int ieta, int iphi)
Definition: EcalPyUtils.cc:56
static std::map< std::string, MeInfo > infos

Member Data Documentation

std::map< std::string, MeInfo > ecaldqm::MeInfoMap::infos
staticprivate

Definition at line 49 of file GeometryHelper.h.

Referenced by get(), and set().