9 SpyJPfreq:: SpyJPfreq(){
16 SpyJPfreq::sense(FILE *fd) {
20 int ib= h->GetMaximumBin();
21 float yMax=h->GetBinContent(ib);
22 ib= h->GetMinimumBin();
23 float yMin=h->GetBinContent(ib);
29 er=r*TMath::Sqrt(1/yMax + 1/yMin);
31 bool isBad=( r+er <maxR ) && ( yMax+yMin >150);
33 fprintf(fd,
"\nSpyJPfreq: min/max=%.3f +/- %.3f (Nmin=%.0f Nmax=%.0f)\n",r,er,yMin, yMax);
35 fprintf(fd,
" EEMC JP ratio <%.1f I S B A D !!\n",maxR);