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(), eostools::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
edm::LogWarning
Log< level::Warning, false > LogWarning
Definition: MessageLogger.h:122
HcalDetId
Definition: HcalDetId.h:12
HcalFrontEndMap::PrecisionItem
Definition: HcalFrontEndMap.h:25
eostools.rm
def rm(path, rec=False)
Definition: eostools.py:363
DetId::rawId
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:57
filterCSVwithJSON.target
target
Definition: filterCSVwithJSON.py:32