Added dead layer contribution to P(B)

This commit is contained in:
Bastian M. Wojek
2009-06-16 09:07:19 +00:00
parent 6fe8f1c8cf
commit 8402cba3ca
2 changed files with 21 additions and 5 deletions

View File

@ -127,7 +127,7 @@ if (type == "skg"){ // skewed Gaussian
//-----------
// Constructor that does the P(B) calculation for given analytical inverse of B(z) and its derivative and n(z)
// Parameters: dt[us], dB[G], Energy[keV]
// Parameters: dt[us], dB[G], Energy[keV], Bbg[G], width[us^{-1}], weight[1]
//-----------
TPofBCalc::TPofBCalc( const TBofZCalcInverse &BofZ, const TTrimSPData &dataTrimSP, const vector<double> &para ) : fDT(para[0]), fDB(para[1])
@ -186,6 +186,8 @@ TPofBCalc::TPofBCalc( const TBofZCalcInverse &BofZ, const TTrimSPData &dataTrimS
for (unsigned int i(firstZerosEnd); i<lastZerosStart; i++)
fPB[i] /= pBsum;
AddBackground(para[3], para[4], para[5]);
}