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 96 of file HcalFrontEndMap.h.

Constructor & Destructor Documentation

HcalFrontEndMapAddons::Helper::Helper ( )

Definition at line 42 of file HcalFrontEndMap.cc.

42 {}

Member Function Documentation

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

load a new entry

Definition at line 44 of file HcalFrontEndMap.cc.

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

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

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

Member Data Documentation

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

Definition at line 102 of file HcalFrontEndMap.h.