10 mPItems(helper.mPItems.
begin(),helper.mPItems.
end())
46 if(type==iter->type_) retItem = iter;
58 float parLin2,
float parLin3,
59 float crossTalk,
int auxi1,
62 parLin2,parLin3,crossTalk,
64 auto iter =
mPItems.find(target);
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";
84 return (item ? item->
pixels_ : 0);
89 std::vector<float> pars;
105 return (item ? item->
auxi1_ : 0);
110 return (item ? item->
auxi2_ : 0);
114 HcalObjectAddons::sortByT<PrecisionItem,HcalSiPMCharacteristicsAddons::LessByType>(
mPItems,
mPItemsByType);
~HcalSiPMCharacteristics()
HcalSiPMCharacteristics()
void swap(HcalSiPMCharacteristics &other)
float getCrossTalk(int type) const
get cross talk
HcalSiPMCharacteristics & operator=(const HcalSiPMCharacteristics &rhs)
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
const PrecisionItem * findByType(int type) const
unsigned int getTypes() const
get # of types
int getAuxi1(int type) const
get auxiliary words
bool loadObject(int type, int pixels, float parLin1, float parLin2, float parLin3, float crossTalk, int auxi1=0, float auxi2=0)
std::vector< float > getNonLinearities(int type) const
get nonlinearity constants
float getAuxi2(int type) const
std::vector< const PrecisionItem * > mPItemsByType
int getPixels(int type) const
get # of pixels
std::vector< PrecisionItem > mPItems