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

◆ Helper()

HcalFrontEndMapAddons::Helper::Helper ( )

Definition at line 42 of file HcalFrontEndMap.cc.

42 {}

Member Function Documentation

◆ loadObject()

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

load a new entry

Definition at line 44 of file HcalFrontEndMap.cc.

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 }

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

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

Member Data Documentation

◆ mPItems

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

Definition at line 102 of file HcalFrontEndMap.h.

HcalFrontEndMapAddons::Helper::mPItems
std::set< HcalFrontEndMap::PrecisionItem, LessById > mPItems
Definition: HcalFrontEndMap.h:102
submit.rm
rm
Definition: submit.py:77
edm::LogWarning
Definition: MessageLogger.h:141
HcalDetId
Definition: HcalDetId.h:12
HcalFrontEndMap::PrecisionItem
Definition: HcalFrontEndMap.h:25
DetId::rawId
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:57
filterCSVwithJSON.target
target
Definition: filterCSVwithJSON.py:32