28 if (etatow_.size() != 42)
std::cout <<
" HCALProperties::eta2ieta - WARNING: here we expect 42 entries instead of " << etatow_.size() <<
"; is the change intentional?" << std::endl;
30 if (hcalDepthLam_.size() != etatow_.size()-1)
std::cout <<
" HCALProperties::eta2ieta - WARNING: the sizes of HCALetatow and HCALDepthLam should differ by 1 unit! HCALDepthLam has size " << hcalDepthLam_.size()<<
" and HCALetatow has size " << etatow_.size() << std::endl;
61 for (iter = 0; iter <
size ; iter++) {
63 if( curr >= size || curr < 1 )
64 std::cout <<
" HCALProperties::eta2ieta - wrong current index = "
65 << curr <<
" !!!" << std::endl;
69 if(x >
etatow_[curr]) {actudir = 1;}
71 if(prevdir * actudir < 0) {
if(step > 1) step /= 2;}
72 curr += actudir *
step;
73 if(curr > size) curr =
size;
74 else {
if(curr < 1) {curr = 1;}}
std::vector< double > etatow_
T getParameter(std::string const &) const
int eta2ieta(double eta) const
double HCALradiationLengthIncm_
HCALProperties(const edm::ParameterSet &fastDet)
double HCALcriticalEnergy_
double HCALinteractionLength_
double getHcalDepth(double) const
double HCALmoliereRadius_
std::vector< double > hcalDepthLam_
tuple size
Write out results.