12 #include "eeSinglePeak.h"
16 Double_t eeSinglePeak ( Double_t *X, Double_t *P )
25 Double_t a = 1.0-P[3];
34 Double_t w2 = P[2]*P[4];
38 a * TMath::Gaus( x, mean, w1, kTRUE ) +
39 b * TMath::Gaus( x, mean, w2, kTRUE );
45 Double_t eeDoublePeak ( Double_t *X, Double_t *P )
48 Double_t P1[] = { P[0], P[1], P[2], P[3], P[4] };
49 Double_t P2[] = { P[5], P[6], P[7], P[8], P[9] };
51 return eeSinglePeak( X, P1 ) + eeSinglePeak( X, P2 );