1 #ifndef __AMPSFLEXIFASTCPV_H__ 2 #define __AMPSFLEXIFASTCPV_H__ 53 std::cout <<
"intA = " <<
_intA << std::endl;
54 std::cout <<
"intAbar = " <<
_intAbar << std::endl;
55 std::cout <<
"intAAbar = " <<
_intAAbar.real() << std::endl;
67 double r = (double)
_r;
68 const std::complex<double> phase_diff = std::polar((
double)r,((
double)
_delta -(
double)
_gamma*f)/360.*2*
pi);
73 const double val = exp(-fabs(t)/(
double)
_tau) *
75 (2.-fabs(q))*(norm(amp) + norm(amp_bar))*cosh((
double)
_dGamma/2.*t)
76 +f*q*(1.-2.*w)*(norm(amp) - norm(amp_bar)) *cos((
double)
_dm*t)
77 -(2.-fabs(q))*2.0*real(amp_bar*conj(amp))*sinh((
double)
_dGamma/2.*t)
78 -f*2.0*q*(1.-2.*w)*imag(amp_bar*conj(amp))*sin((
double)
_dm*t)
89 double r = (double)
_r;
90 const double Gamma = 1./((double)
_tau);
91 const std::complex<double> phase_diff = std::polar((
double)r,((
double)
_delta -(
double)
_gamma*f)/360.*2*
pi);
92 const double int_interference = (phase_diff*
_intAAbar).real();
95 std::cout <<
"AmpsPdfFlexiFastCPV:: _norm = -1, should not have happened." << std::endl;
96 throw "can't deal with that";
106 if(0 == evt)
return 0;
110 if(0 == evt)
return 0;
114 if(0 == evt)
return 0;
121 const std::string& fnameROOT=
"fitFractions"){
double un_normalised_noPs(IDalitzEvent &evt)
virtual double getVal_noPs(IDalitzEvent &evt)
AmpsPdfFlexiFast * _amps1
std::complex< double > _intAAbar
MINT::FitParameter & _dGamma
AmpsPdfFlexiFast * _ampsSum
double getIntegralValue() const
MINT::FitParameter & _tau
virtual double getVal_noPs(IDalitzEvent *evt)
MINT::FitParameter & _delta
AmpsPdfFlexiFastCPV(AmpsPdfFlexiFast *amps1, AmpsPdfFlexiFast *amps2, AmpsPdfFlexiFast *ampsSum, MINT::FitParameter &r, MINT::FitParameter &delta, MINT::FitParameter &gamma, MINT::FitParameter &tau, MINT::FitParameter &dGamma, MINT::FitParameter &dm, MINT::FitParameter &eff_tag, MINT::FitParameter &w)
virtual double getVal(IDalitzEvent *evt)
std::complex< double > ComplexSumForMatchingPatterns(bool match)
virtual double getVal_withPs(IDalitzEvent *evt)
virtual double getValueFromVector(unsigned int i) const =0
double integralForMatchingPatterns(bool match, int pattern_sign)
virtual DalitzHistoSet histoSet() const
virtual double getVal(IDalitzEvent &evt)
MINT::FitParameter & _eff_tag
std::complex< double > ComplexVal_un_normalised_noPs(IDalitzEvent &evt)
void doFinalStatsAndSaveForAmp12(MINT::Minimiser *min=0, const std::string &fname="FitAmpResults", const std::string &fnameROOT="fitFractions")
AmpsPdfFlexiFast * _amps2
void doFinalStatsAndSave(MINT::Minimiser *min=0, const std::string &fname="FitAmpResults.txt", const std::string &fnameROOT="fitFractions.root")
virtual DalitzHistoSet histoSet()
virtual double getVal_withPs(IDalitzEvent &evt)
MINT::FitParameter & _gamma