CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
HcalFrontEndMapAddons::Helper Class Reference

#include <HcalFrontEndMap.h>

Public Member Functions

 Helper ()
 
bool loadObject (DetId fId, int rm, std::string rbx)
 load a new entry More...
 

Public Attributes

std::set< HcalFrontEndMap::PrecisionItem, LessByIdmPItems
 

Detailed Description

Definition at line 90 of file HcalFrontEndMap.h.

Constructor & Destructor Documentation

HcalFrontEndMapAddons::Helper::Helper ( )

Definition at line 48 of file HcalFrontEndMap.cc.

49 {
50 }

Member Function Documentation

bool HcalFrontEndMapAddons::Helper::loadObject ( DetId  fId,
int  rm,
std::string  rbx 
)

load a new entry

Definition at line 52 of file HcalFrontEndMap.cc.

References HcalFrontEndMap::mPItems, DetId::rawId(), submit::rm, and edmPickEvents::target.

Referenced by HcalDbASCIIIO::createObject< HcalFrontEndMap >(), and HcalDbHardcode::makeHardcodeFrontEndMap().

52  {
54  auto iter = mPItems.find(target);
55  if (iter!=mPItems.end()) {
56  edm::LogWarning("HCAL") << "HcalFrontEndMap::loadObject DetId "
57  << HcalDetId(fId) << " already exists with RM "
58  << iter->mRM << " RBX " << iter->mRBX
59  << " new values " << rm << " and " << rbx
60  << " are ignored";
61  return false;
62  } else {
63  mPItems.insert(target);
64  return true;
65  }
66 }
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:47
std::set< HcalFrontEndMap::PrecisionItem, LessById > mPItems
rm
Definition: submit.py:77

Member Data Documentation

std::set<HcalFrontEndMap::PrecisionItem,LessById> HcalFrontEndMapAddons::Helper::mPItems

Definition at line 96 of file HcalFrontEndMap.h.