24 float & cog ,
float & err ) :
25 detId_(detid), firstStrip_(range.
first->
strip())
32 std::cout <<
"==range.first->strip() = " << range.first->strip() << std::endl;
33 std::cout <<
"==range.second->strip() = " << range.second->strip() << std::endl;
50 std::cout <<
" current striprange = " << striprange << std::endl;
65 std::cout <<
" current strip = " <<
i->strip() <<
" amp = " << amp << std::endl;
70 sumx +=
i->stripH()*amp;
71 sumy +=
i->stripHW()*amp;
73 sumxx += (
i->stripH()) * (
i->stripH()) * amp;
74 sumyy += (
i->stripHW()) * (
i->stripHW()) * amp;
76 else if(xytype == 2) {
77 sumx +=
i->stripV()*amp;
78 sumy +=
i->stripVW()*amp;
80 sumxx += (
i->stripV()) * (
i->stripV()) * amp;
81 sumyy += (
i->stripVW()) * (
i->stripVW()) * amp;
84 std::cout <<
" ClusterFP420: wrong xytype = " << xytype << std::endl;
88 std::cout <<
" current sumx = " << sumx << std::endl;
89 std::cout <<
" current sumy = " << sumy << std::endl;
90 std::cout <<
" current suma = " << suma << std::endl;
91 std::cout <<
" current barycenter = " << (sumx /
static_cast<float>(suma) ) << std::endl;
92 std::cout <<
" current barycenterW= " << (sumy /
static_cast<float>(suma) ) << std::endl;
125 std::cout <<
"AT end: striprange = " << striprange << std::endl;
230 int sScale = myrn0*mypn0, dScale = myrn0*mypn0*mysn0;
232 int det = (
detId_-1)/dScale + 1;
233 int sector = (
detId_-1- dScale*(det - 1))/sScale + 1;
236 std::cout <<
"sector = " << sector <<
" det= " << det << std::endl;
251 a = 0.0026+((0.0075-0.0026)/7.)*(mypn0-2);
255 else if(mysn0 == 3) {
257 a = 0.0011+((0.0030-0.0011)/7.)*(mypn0-2);
260 a = 0.0022+((0.0068-0.0022)/7.)*(mypn0-2);
263 else if(mysn0 == 4) {
265 a = 0.0009+((0.0024-0.0009)/7.)*(mypn0-2);
268 a = 0.0018+((0.0050-0.0018)/7.)*(mypn0-2);
271 a = 0.0026+((0.0075-0.0026)/7.)*(mypn0-2);
319 std::cout <<
"AT end: err = " << err<<
" detId_= " <<
detId_ << std::endl;
std::vector< HDigiFP420 >::const_iterator HDigiFP420Iter
std::pair< HDigiFP420Iter, HDigiFP420Iter > HDigiFP420Range
std::vector< short > amplitudes_
static float constW_ps1s2[3]
static float const_ps1s2[3]