Submission of forgotten code...

This commit is contained in:
Bastian M. Wojek
2009-06-12 19:21:26 +00:00
parent ac7ff10e32
commit 63fbe53722
9 changed files with 635 additions and 36 deletions

View File

@ -372,12 +372,12 @@ void TPofBCalc::AddBackground(double B, double s, double w) {
return;
unsigned int sizePB(fPB.size());
double BsSq(s*s/gBar/gBar/4.0/pi/pi);
double BsSq(s*s/(gBar*gBar*4.0*pi*pi));
// calculate Gaussian background
vector<double> bg;
for(unsigned int i(0); i < sizePB; i++) {
bg.push_back(exp(-(fB[i]-B)*(fB[i]-B)/2.0/BsSq));
bg.push_back(exp(-(fB[i]-B)*(fB[i]-B)/(2.0*BsSq)));
}
// normalize background