10 mPItems(helper.mPItems.
begin(),helper.mPItems.
end())
42 return HcalObjectAddons::findByT<PrecisionItem,HcalSiPMCharacteristicsAddons::LessByType>(&
target,
mPItemsByType);
48 float parLin2,
float parLin3,
49 float crossTalk,
int auxi1,
52 parLin2,parLin3,crossTalk,
54 auto iter =
mPItems.find(target);
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";
74 return (item ? item->
pixels_ : 0);
79 std::vector<float> pars;
95 return (item ? item->
auxi1_ : 0);
100 return (item ? item->
auxi2_ : 0);
104 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
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