CMS 3D CMS Logo

Static Public Member Functions | Static Private Attributes

EcalErrorMask Class Reference

#include <EcalErrorMask.h>

List of all members.

Static Public Member Functions

static void fetchDataSet (std::map< EcalLogicID, RunCrystalErrorsDat > *fillMap)
static void fetchDataSet (std::map< EcalLogicID, RunMemTTErrorsDat > *fillMap)
static void fetchDataSet (std::map< EcalLogicID, RunMemChErrorsDat > *fillMap)
static void fetchDataSet (std::map< EcalLogicID, RunPNErrorsDat > *fillMap)
static void fetchDataSet (std::map< EcalLogicID, RunTTErrorsDat > *fillMap)
static void readDB (EcalCondDBInterface *eConn, RunIOV *runIOV) throw ( std::runtime_error )

Static Private Attributes

static std::map< EcalLogicID,
RunCrystalErrorsDat
mapCrystalErrors_
static std::map< EcalLogicID,
RunMemChErrorsDat
mapMemChErrors_
static std::map< EcalLogicID,
RunMemTTErrorsDat
mapMemTTErrors_
static std::map< EcalLogicID,
RunPNErrorsDat
mapPNErrors_
static std::map< EcalLogicID,
RunTTErrorsDat
mapTTErrors_
static int runNb_ = -1

Detailed Description

Definition at line 18 of file EcalErrorMask.h.


Member Function Documentation

void EcalErrorMask::fetchDataSet ( std::map< EcalLogicID, RunCrystalErrorsDat > *  fillMap) [static]
void EcalErrorMask::fetchDataSet ( std::map< EcalLogicID, RunMemTTErrorsDat > *  fillMap) [static]

Definition at line 115 of file EcalErrorMask.cc.

References mapMemTTErrors_.

                                                                                   {

  fillMap->clear();
  *fillMap = EcalErrorMask::mapMemTTErrors_;
  return;

}
void EcalErrorMask::fetchDataSet ( std::map< EcalLogicID, RunMemChErrorsDat > *  fillMap) [static]

Definition at line 107 of file EcalErrorMask.cc.

References mapMemChErrors_.

                                                                                   {

  fillMap->clear();
  *fillMap = EcalErrorMask::mapMemChErrors_;
  return;

}
void EcalErrorMask::fetchDataSet ( std::map< EcalLogicID, RunPNErrorsDat > *  fillMap) [static]

Definition at line 99 of file EcalErrorMask.cc.

References mapPNErrors_.

                                                                                {

  fillMap->clear();
  *fillMap = EcalErrorMask::mapPNErrors_;
  return;

}
void EcalErrorMask::fetchDataSet ( std::map< EcalLogicID, RunTTErrorsDat > *  fillMap) [static]

Definition at line 91 of file EcalErrorMask.cc.

References mapTTErrors_.

                                                                                {

  fillMap->clear();
  *fillMap = EcalErrorMask::mapTTErrors_;
  return;

}
void EcalErrorMask::readDB ( EcalCondDBInterface eConn,
RunIOV runIOV 
) throw ( std::runtime_error ) [static]

Definition at line 26 of file EcalErrorMask.cc.

References gather_cfg::cout, ExpressReco_HICollisions_FallBack::e, LocationDef::getLocation(), RunTag::getLocationDef(), RunIOV::getRunNumber(), tests::location, mapCrystalErrors_, mapMemChErrors_, mapMemTTErrors_, mapPNErrors_, mapTTErrors_, and runNb_.

Referenced by popcon::EcalChannelStatusHandler::getNewObjects().

                                                                                                 {

  if( eConn ) {

    RunIOV validIOV;
    RunTag runTag = runIOV->getRunTag();

    std::string location = runTag.getLocationDef().getLocation();

    std::cout << std::endl;
    std::cout << " RunCrystalErrorsDat: ";
    try {
      eConn->fetchValidDataSet( &EcalErrorMask::mapCrystalErrors_, &validIOV, location, runIOV->getRunNumber() );
      std::cout << "found" << std::endl;
    } catch ( std::runtime_error &e ) {
      std::cout << "not found" << std::endl;
      throw( std::runtime_error( e.what() ) );
    }

    // use the IOV for CrystalErrors as reference
    EcalErrorMask::runNb_ = validIOV.getRunNumber();

    std::cout << " RunTTErrorsDat:      ";
    try {
      eConn->fetchValidDataSet( &EcalErrorMask::mapTTErrors_,      &validIOV, location, runIOV->getRunNumber() );
      std::cout << "found" << std::endl;
    } catch ( std::runtime_error &e ) {
      std::cout << "not found" << std::endl;
    }
    std::cout << " RunPNErrorsDat:      ";
    try {
      eConn->fetchValidDataSet( &EcalErrorMask::mapPNErrors_,      &validIOV, location, runIOV->getRunNumber() );
      std::cout << "found" << std::endl;
    } catch ( std::runtime_error &e ) {
      std::cout << "not found" << std::endl;
    }
    std::cout << " RunMemChErrorsDat:   ";
    try {
      eConn->fetchValidDataSet( &EcalErrorMask::mapMemChErrors_,   &validIOV, location, runIOV->getRunNumber() );
      std::cout << "found" << std::endl;
    } catch ( std::runtime_error &e ) {
      std::cout << "not found" << std::endl;
    }
    std::cout << " RunMemTTErrorsDat:   ";
    try {
      eConn->fetchValidDataSet( &EcalErrorMask::mapMemTTErrors_,   &validIOV, location, runIOV->getRunNumber() );
      std::cout << "found" << std::endl;
    } catch ( std::runtime_error &e ) {
      std::cout << "not found" << std::endl;
    }

    std::cout << std::endl;

  }

}

Member Data Documentation

Definition at line 34 of file EcalErrorMask.h.

Referenced by fetchDataSet(), and readDB().

Definition at line 37 of file EcalErrorMask.h.

Referenced by fetchDataSet(), and readDB().

Definition at line 38 of file EcalErrorMask.h.

Referenced by fetchDataSet(), and readDB().

std::map< EcalLogicID, RunPNErrorsDat > EcalErrorMask::mapPNErrors_ [static, private]

Definition at line 36 of file EcalErrorMask.h.

Referenced by fetchDataSet(), and readDB().

std::map< EcalLogicID, RunTTErrorsDat > EcalErrorMask::mapTTErrors_ [static, private]

Definition at line 35 of file EcalErrorMask.h.

Referenced by fetchDataSet(), and readDB().

int EcalErrorMask::runNb_ = -1 [static, private]

Definition at line 32 of file EcalErrorMask.h.

Referenced by readDB().