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 95 of file HcalSiPMCharacteristics.h.

Constructor & Destructor Documentation

HcalSiPMCharacteristicsAddons::Helper::Helper ( )

Definition at line 55 of file HcalSiPMCharacteristics.cc.

55 {}

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 57 of file HcalSiPMCharacteristics.cc.

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

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

60  {
62  parLin2,parLin3,crossTalk,
63  auxi1,auxi2);
64  auto iter = mPItems.find(target);
65  if (iter!=mPItems.end()) {
66  edm::LogWarning("HCAL") << "HcalSiPMCharacteristics::loadObject type "
67  << type << " already exists with pixels "
68  << iter->pixels_ << " NoLinearity parameters "
69  << iter->parLin1_ << ":" << iter->parLin2_ << ":"
70  << iter->parLin3_ << " CrossTalk parameter "
71  << iter->crossTalk_ << " new values " << pixels
72  << ", " << parLin1 << ", " << parLin2 << ", "
73  << parLin3 << ", " << crossTalk << ", " << auxi1
74  << " and " << auxi2 << " are ignored";
75  return false;
76  } else {
77  mPItems.insert(target);
78  return true;
79  }
80 }
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 103 of file HcalSiPMCharacteristics.h.