MINT2
PhaseDifferenceCalc.cpp
Go to the documentation of this file.
2 
4  m_model(pat, fname),
5  m_cpmodel(TimeDependentGenerator::anti(pat), fname)
6 {}
7 
8 // Can't be made const as IReturnComplexForEvent::ComplexVal is not const.
9 // Returns the phase of A/Abar for the given point in phase space.
11  std::complex<double> val = m_model.ComplexVal(evt) ;
12  std::complex<double> cpval = m_cpmodel.ComplexVal(evt) ;
13  val /= cpval ;
14  return std::arg(val) ;
15 }
16 
17 // Returns the cross term A* x Abar fro the given point in phase space.
18 std::complex<double> PhaseDifferenceCalc::cross_term(IDalitzEvent& evt) {
19  std::complex<double> val = m_model.ComplexVal(evt) ;
20  std::complex<double> cpval = m_cpmodel.ComplexVal(evt) ;
21  return std::conj(val) * cpval ;
22 }
23 
25  return m_model ;
26 }
27 
29  return m_cpmodel ;
30 }
void anti(DecayTree &dt)
Definition: DecayTree.cpp:16
virtual std::complex< double > ComplexVal(IDalitzEvent &evt)
Definition: FitAmpSum.h:122
const FitAmpSum & cp_model() const
const FitAmpSum & model() const
PhaseDifferenceCalc(const DalitzEventPattern &, const char *fname=0)
std::complex< double > cross_term(IDalitzEvent &)
double phase_difference(IDalitzEvent &)