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

45 {}

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

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

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

50  {
52  parLin2,parLin3,crossTalk,
53  auxi1,auxi2);
54  auto iter = mPItems.find(target);
55  if (iter!=mPItems.end()) {
56  edm::LogWarning("HCAL") << "HcalSiPMCharacteristics::loadObject type "
57  << type << " already exists with pixels "
58  << iter->pixels_ << " NoLinearity parameters "
59  << iter->parLin1_ << ":" << iter->parLin2_ << ":"
60  << iter->parLin3_ << " CrossTalk parameter "
61  << iter->crossTalk_ << " new values " << pixels
62  << ", " << parLin1 << ", " << parLin2 << ", "
63  << parLin3 << ", " << crossTalk << ", " << auxi1
64  << " 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 103 of file HcalSiPMCharacteristics.h.