MINT2
Public Member Functions | Private Attributes | List of all members
PhaseDifferenceCalc Class Reference

#include <PhaseDifferenceCalc.h>

Public Member Functions

 PhaseDifferenceCalc (const DalitzEventPattern &, const char *fname=0)
 
double phase_difference (IDalitzEvent &)
 
std::complex< double > cross_term (IDalitzEvent &)
 
const FitAmpSummodel () const
 
const FitAmpSumcp_model () const
 

Private Attributes

FitAmpSum m_model
 
FitAmpSum m_cpmodel
 

Detailed Description

Definition at line 10 of file PhaseDifferenceCalc.h.

Constructor & Destructor Documentation

◆ PhaseDifferenceCalc()

PhaseDifferenceCalc::PhaseDifferenceCalc ( const DalitzEventPattern pat,
const char *  fname = 0 
)

Definition at line 3 of file PhaseDifferenceCalc.cpp.

3  :
4  m_model(pat, fname),
6 {}
static DalitzEventPattern anti(DalitzEventPattern pat)
Take the CP conjugate of the head of the decay pattern.

Member Function Documentation

◆ cp_model()

const FitAmpSum & PhaseDifferenceCalc::cp_model ( ) const

Definition at line 28 of file PhaseDifferenceCalc.cpp.

28  {
29  return m_cpmodel ;
30 }

◆ cross_term()

std::complex< double > PhaseDifferenceCalc::cross_term ( IDalitzEvent evt)

Definition at line 18 of file PhaseDifferenceCalc.cpp.

18  {
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 }
virtual std::complex< double > ComplexVal(IDalitzEvent &evt)
Definition: FitAmpSum.h:122

◆ model()

const FitAmpSum & PhaseDifferenceCalc::model ( ) const

Definition at line 24 of file PhaseDifferenceCalc.cpp.

24  {
25  return m_model ;
26 }

◆ phase_difference()

double PhaseDifferenceCalc::phase_difference ( IDalitzEvent evt)

Definition at line 10 of file PhaseDifferenceCalc.cpp.

10  {
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 }
virtual std::complex< double > ComplexVal(IDalitzEvent &evt)
Definition: FitAmpSum.h:122

Member Data Documentation

◆ m_cpmodel

FitAmpSum PhaseDifferenceCalc::m_cpmodel
private

Definition at line 26 of file PhaseDifferenceCalc.h.

◆ m_model

FitAmpSum PhaseDifferenceCalc::m_model
private

Definition at line 25 of file PhaseDifferenceCalc.h.


The documentation for this class was generated from the following files: