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

HcalSiPMCharacteristicsAddons::Helper::Helper ( )

Definition at line 53 of file HcalSiPMCharacteristics.cc.

53 {}

Member Function Documentation

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.

References HcalSiPMCharacteristics::mPItems, and filterCSVwithJSON::target.

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

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 }
type
Definition: HCALResponse.h:21
std::set< HcalSiPMCharacteristics::PrecisionItem, LessByType > mPItems

Member Data Documentation

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

Definition at line 119 of file HcalSiPMCharacteristics.h.