CMS 3D CMS Logo

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

#include <HcalSiPMCharacteristics.h>

Public Member Functions

 Helper ()
 
bool loadObject (int type, int pixels, float parLin1, float parLin2, float parLin3, float crossTalk, int auxi1=0, float auxi2=0)
 

Public Attributes

std::set< HcalSiPMCharacteristics::PrecisionItem, LessByTypemPItems
 

Detailed Description

Definition at line 106 of file HcalSiPMCharacteristics.h.

Constructor & Destructor Documentation

◆ Helper()

HcalSiPMCharacteristicsAddons::Helper::Helper ( )

Definition at line 53 of file HcalSiPMCharacteristics.cc.

53 {}

Member Function Documentation

◆ loadObject()

bool HcalSiPMCharacteristicsAddons::Helper::loadObject ( int  type,
int  pixels,
float  parLin1,
float  parLin2,
float  parLin3,
float  crossTalk,
int  auxi1 = 0,
float  auxi2 = 0 
)

Definition at line 55 of file HcalSiPMCharacteristics.cc.

56  {
57  HcalSiPMCharacteristics::PrecisionItem target(type, pixels, parLin1, parLin2, parLin3, crossTalk, auxi1, auxi2);
58  auto iter = mPItems.find(target);
59  if (iter != mPItems.end()) {
60  edm::LogWarning("HCAL") << "HcalSiPMCharacteristics::loadObject type " << type << " already exists with pixels "
61  << iter->pixels_ << " NoLinearity parameters " << iter->parLin1_ << ":" << iter->parLin2_
62  << ":" << iter->parLin3_ << " CrossTalk parameter " << iter->crossTalk_ << " new values "
63  << pixels << ", " << parLin1 << ", " << parLin2 << ", " << parLin3 << ", " << crossTalk
64  << ", " << auxi1 << " and " << auxi2 << " are ignored";
65  return false;
66  } else {
67  mPItems.insert(target);
68  return true;
69  }
70 }

References filterCSVwithJSON::target.

Referenced by HcalDbASCIIIO::createObject< HcalSiPMCharacteristics >(), and HcalDbHardcode::makeHardcodeSiPMCharacteristics().

Member Data Documentation

◆ mPItems

std::set<HcalSiPMCharacteristics::PrecisionItem, LessByType> HcalSiPMCharacteristicsAddons::Helper::mPItems

Definition at line 119 of file HcalSiPMCharacteristics.h.

HcalSiPMCharacteristics::PrecisionItem
Definition: HcalSiPMCharacteristics.h:20
edm::LogWarning
Log< level::Warning, false > LogWarning
Definition: MessageLogger.h:122
type
type
Definition: SiPixelVCal_PayloadInspector.cc:37
HcalSiPMCharacteristicsAddons::Helper::mPItems
std::set< HcalSiPMCharacteristics::PrecisionItem, LessByType > mPItems
Definition: HcalSiPMCharacteristics.h:119
filterCSVwithJSON.target
target
Definition: filterCSVwithJSON.py:32