CMS 3D CMS Logo

Static Public Member Functions | Static Private Attributes

ecaldqm::MeInfoMap Class Reference

#include <GeometryHelper.h>

List of all members.

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 44 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 ecaldqm::fillME(), ecaldqm::getBinContentME(), ecaldqm::getBinEntriesME(), ecaldqm::getBinErrorME(), ecaldqm::getBinME(), ecaldqm::setBinContentME(), ecaldqm::setBinEntriesME(), and ecaldqm::setBinErrorME().

  {
    if( !me ) return NULL;

    std::map<std::string, MeInfo>::const_iterator it = MeInfoMap::infos.find( me->getFullname() );

    if( it == MeInfoMap::infos.end() ) return NULL;

    return &(it->second);
  }
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, ecalpyutils::ism(), ecaldqm::MeInfo::ism, and ecaldqm::MeInfo::otype.

Referenced by ecaldqm::bookME().

  {

    if( !me ) return;

    MeInfo info;
    info.otype = otype;
    info.btype = btype;
    info.ism = ism;

    MeInfoMap::infos[ me->getFullname() ] = info;

  }

Member Data Documentation

std::map< std::string, MeInfo > ecaldqm::MeInfoMap::infos [static, private]

Definition at line 51 of file GeometryHelper.h.

Referenced by get(), and set().