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.

References DetId::rawId(), eostools::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 }
def rm(path, rec=False)
Definition: eostools.py:363
std::set< HcalFrontEndMap::PrecisionItem, LessById > mPItems
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:57
Log< level::Warning, false > LogWarning

Member Data Documentation

◆ mPItems

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

Definition at line 102 of file HcalFrontEndMap.h.