Belle II Software development
TRGCDCLpav Class Reference

TRGCDCLpav class. More...

#include <Lpav.h>

Inheritance diagram for TRGCDCLpav:
TRGCDCLpar

Classes

class  Singular
 exception class, no covarience matrix. More...
 
class  Singular_c
 exception class, no covarience matrix_c More...
 

Public Member Functions

 TRGCDCLpav ()
 Constructor.
 
virtual ~TRGCDCLpav ()
 Destructor.
 
void calculate_average (void)
 member functions for calculation
 
void calculate_average3 (void)
 member functions for calculation
 
void calculate_average (double x, double y, double w=1)
 member functions for calculation
 
void calculate_average3 (double x, double y, double w=1)
 member functions for calculation
 
double calculate_lpar (void)
 member functions for calculation
 
double calculate_lpar3 (void)
 member functions for calculation
 
double fit ()
 member functions for fit
 
double fit (double x, double y, double w=1)
 member functions for fit
 
void clear ()
 member functions for clear
 
void add_point (double x, double y, double w=1)
 member functions to add point
 
void add_point_frac (double x, double y, double w, double f)
 member functions to add point
 
double nc () const
 const member function nc
 
CLHEP::HepSymMatrix cov (int=0) const
 const member function cov
 
CLHEP::HepSymMatrix cov_c (int=0) const
 const member function cov_c
 
int extrapolate (double, double &, double &) const
 const member function for extrapolation
 
double similarity (double, double) const
 const member function similarity
 
double delta_chisq (double x, double y, double w=1) const
 const member function for delta chisq
 
double chisq () const
 get chisq
 
double prob () const
 const member function prob
 
double chi_deg () const
 const member function chi_deg
 
TRGCDCLpavoperator= (const TRGCDCLpav &)
 assignment operator(s)
 
const TRGCDCLpavoperator= (const TRGCDCLpar &)
 assignment operator(s)
 
const TRGCDCLpavoperator+= (const TRGCDCLpav &)
 assignment operator(s)
 
void neg ()
 member functions
 
void circle (double x1, double y1, double x2, double y2, double x3, double y3)
 circle
 
double kappa () const
 const member functions
 
double radius () const
 const member functions
 
CLHEP::HepVector center () const
 const member functions
 
double s (double x, double y) const
 const member functions
 
double s (double r, int dir=0) const
 const member functions
 
double d (double x, double y) const
 const member functions
 
double dr (double x, double y) const
 const member functions
 
double phi (double r, int dir=0) const
 const member functions
 
int sd (double r, double x, double y, double limit, double &s, double &d) const
 const member functions
 
CLHEP::HepVector Hpar (const HepGeom::Point3D< double > &pivot) const
 const member functions
 

Private Member Functions

 TRGCDCLpav (const TRGCDCLpav &)
 Constructors and destructor.
 
bool operator== (const TRGCDCLpav &) const
 comparison operators
 
bool operator!= (const TRGCDCLpav &) const
 comparison operators
 
void sub (double x, double y, double w=1, double a=0, double b=0)
 private member functions
 
void calculate_average_n (double xxav, double yyav, double xyav, double xrrav, double yrrav, double rrrrav)
 private member function calculate_average_n
 
double chisq (double chisq)
 private member function chisq
 
double nc (double nc)
 private member function nc
 
double solve_lambda (void)
 private member function solve_lambda
 
double solve_lambda3 (void)
 private member function solve_lambda3
 
void scale (double s)
 private member functions
 
void rotate (double c, double s)
 private member functions
 
void move (double x, double y)
 private member functions
 
double alpha () const
 private const member functions
 
double beta () const
 private const member functions
 
double gamma () const
 private const member functions
 
double check () const
 private const member functions
 
CLHEP::HepMatrix dldc () const
 private const member functions
 
double d0 (double x, double y) const
 private const member functions
 
double kr2g (double r) const
 private const member functions
 
double x (double r) const
 private const member functions
 
double y (double r) const
 private const member functions
 
void xhyh (double x, double y, double &xh, double &yh) const
 private const member functions
 
double xi2 () const
 private const member functions
 
bool xy (double, double &, double &, int dir=0) const
 private const member functions
 
double r_max () const
 private const member functions
 
double xc () const
 private const member functions
 
double yc () const
 private const member functions
 
double da () const
 private const member functions
 
double arcfun (double xh, double yh) const
 private const member functions
 

Private Attributes

double m_wsum
 data members
 
double m_xsum
 data members
 
double m_ysum
 data members
 
double m_xxsum
 data members
 
double m_yysum
 data members
 
double m_xysum
 data members
 
double m_xrrsum
 data members
 
double m_yrrsum
 data members
 
double m_rrrrsum
 data members
 
double m_wsum_temp
 data members
 
double m_xav
 data members
 
double m_yav
 data members
 
double m_xyavp
 data members
 
double m_rscale
 data members
 
double m_xxavp
 data members
 
double m_yyavp
 data members
 
double m_xrravp
 data members
 
double m_yrravp
 data members
 
double m_rrrravp
 data members
 
double m_sinrot
 data members
 
double m_cosrot
 data members
 
double m_nc
 data members
 
double m_chisq
 data members
 
double m_alpha
 data members
 
double m_beta
 data members
 
double m_gamma
 data members
 
double m_kappa
 data members
 

Static Private Attributes

static const double BELLE_ALPHA
 belle alpha
 

Friends

std::ostream & operator<< (std::ostream &o, const TRGCDCLpav &s)
 ostream operator
 
TRGCDCLpav operator+ (const TRGCDCLpav &, const TRGCDCLpav &)
 

Detailed Description

TRGCDCLpav class.

Definition at line 31 of file Lpav.h.

Member Function Documentation

◆ alpha()

double alpha ( ) const
inlineprivateinherited

private const member functions

Definition at line 139 of file Lpar.h.

139{ return m_alpha; }
double m_alpha
data members
Definition: Lpar.h:174

◆ beta()

double beta ( ) const
inlineprivateinherited

private const member functions

Definition at line 141 of file Lpar.h.

141{ return m_beta; }
double m_beta
data members
Definition: Lpar.h:176

◆ chisq() [1/2]

double chisq ( ) const
inline

get chisq

Definition at line 78 of file Lpav.h.

78{ return m_chisq; }
double m_chisq
data members
Definition: Lpav.h:182

◆ chisq() [2/2]

double chisq ( double  chisq)
inlineprivate

private member function chisq

Definition at line 124 of file Lpav.h.

124{ m_chisq = chisq; return m_chisq; }
double chisq() const
get chisq
Definition: Lpav.h:78

◆ da()

double da ( ) const
inlineprivateinherited

private const member functions

Definition at line 169 of file Lpar.h.

169{ return 2 * gamma() / (std::sqrt(xi2()) + 1); }
double gamma() const
private const member functions
Definition: Lpar.h:143
double xi2() const
private const member functions
Definition: Lpar.h:159

◆ gamma()

double gamma ( ) const
inlineprivateinherited

private const member functions

Definition at line 143 of file Lpar.h.

143{ return m_gamma; }
double m_gamma
data members
Definition: Lpar.h:178

◆ kappa()

double kappa ( ) const
inlineinherited

const member functions

Definition at line 57 of file Lpar.h.

57{ return m_kappa; }
double m_kappa
data members
Definition: Lpar.h:180

◆ kr2g()

double kr2g ( double  r) const
inlineprivateinherited

private const member functions

Definition at line 151 of file Lpar.h.

151{ return m_kappa * r * r + m_gamma; }

◆ nc() [1/2]

double nc ( ) const
inline

const member function nc

Definition at line 66 of file Lpav.h.

66{ return m_nc; }
double m_nc
data members
Definition: Lpav.h:180

◆ nc() [2/2]

double nc ( double  nc)
inlineprivate

private member function nc

Definition at line 126 of file Lpav.h.

126{ m_nc = nc; return m_nc; }
double nc() const
const member function nc
Definition: Lpav.h:66

◆ radius()

double radius ( ) const
inlineinherited

const member functions

Definition at line 59 of file Lpar.h.

59{ return 0.5 / std::fabs(m_kappa);}

◆ scale()

void scale ( double  s)
inlineprivateinherited

private member functions

Definition at line 132 of file Lpar.h.

132{ m_kappa /= s; m_gamma *= s; }
double s(double x, double y) const
const member functions
Definition: Lpar.cc:210

◆ xc()

double xc ( ) const
inlineprivateinherited

private const member functions

Definition at line 165 of file Lpar.h.

165{ return - m_alpha / 2 / m_kappa; }

◆ xi2()

double xi2 ( ) const
inlineprivateinherited

private const member functions

Definition at line 159 of file Lpar.h.

159{ return 1 + 4 * m_kappa * m_gamma; }

◆ yc()

double yc ( ) const
inlineprivateinherited

private const member functions

Definition at line 167 of file Lpar.h.

167{ return - m_beta / 2 / m_kappa; }

Friends And Related Function Documentation

◆ operator+

TRGCDCLpav operator+ ( const TRGCDCLpav la1,
const TRGCDCLpav la2 
)
friend
  • operator

Definition at line 676 of file Lpav.cc.

679 {
680#else
681 {
682 TRGCDCLpav la;
683#endif
684 la.m_wsum = la1.m_wsum + la2.m_wsum;
685 la.m_xsum = la1.m_xsum + la2.m_xsum;
686 la.m_ysum = la1.m_ysum + la2.m_ysum;
687 la.m_xxsum = la1.m_xxsum + la2.m_xxsum;
688 la.m_yysum = la1.m_yysum + la2.m_yysum;
689 la.m_xysum = la1.m_xysum + la2.m_xysum;
690 la.m_xrrsum = la1.m_xrrsum + la2.m_xrrsum;
691 la.m_yrrsum = la1.m_yrrsum + la2.m_yrrsum;
692 la.m_rrrrsum = la1.m_rrrrsum + la2.m_rrrrsum;
693 la.m_nc = la1.m_nc + la2.m_nc;
694 return la;
695 }
TRGCDCLpav()
Constructor.
Definition: Lpav.cc:49

◆ operator<<

std::ostream & operator<< ( std::ostream &  o,
const TRGCDCLpav s 
)
friend

ostream operator

Definition at line 265 of file Lpav.cc.

266 {
267// o << "wsum=" << a.m_wsum << " xsum=" << a.m_xsum << " ysum=" << a.m_ysum
268// << " xxsum=" << a.m_xxsum << " xysum=" << a.m_xysum
269// << " yysum=" << a.m_yysum
270// << " xrrsum=" << a.m_xrrsum << " yrrsum=" << a.m_yrrsum
271// << " rrrrsum=" << a.m_rrrrsum;
272// o << " rscale=" << a.m_rscale
273// << " xxavp=" << a.m_xxavp << " yyavp=" << a.m_yyavp
274// << " xrravp=" << a.m_xrravp << " yrravp=" << a.m_yrravp
275// << " rrrravp=" << a.m_rrrravp << " cosrot=" << a.m_cosrot
276// << " sinrot=" << a.m_sinrot
277// << std::endl;
278 o << " nc=" << a.m_nc << " chisq=" << a.m_chisq << " " << (TRGCDCLpar&) a;
279 return o;
280 }
TRGCDCLpar()
Constructor.
Definition: Lpar.h:195

Member Data Documentation

◆ m_alpha

double m_alpha
privateinherited

data members

Definition at line 174 of file Lpar.h.

◆ m_beta

double m_beta
privateinherited

data members

Definition at line 176 of file Lpar.h.

◆ m_chisq

double m_chisq
private

data members

Definition at line 182 of file Lpav.h.

◆ m_cosrot

double m_cosrot
private

data members

Definition at line 177 of file Lpav.h.

◆ m_gamma

double m_gamma
privateinherited

data members

Definition at line 178 of file Lpar.h.

◆ m_kappa

double m_kappa
privateinherited

data members

Definition at line 180 of file Lpar.h.

◆ m_nc

double m_nc
private

data members

Definition at line 180 of file Lpav.h.

◆ m_rrrravp

double m_rrrravp
private

data members

Definition at line 173 of file Lpav.h.

◆ m_rrrrsum

double m_rrrrsum
private

data members

Definition at line 151 of file Lpav.h.

◆ m_rscale

double m_rscale
private

data members

Definition at line 163 of file Lpav.h.

◆ m_sinrot

double m_sinrot
private

data members

Definition at line 175 of file Lpav.h.

◆ m_wsum

double m_wsum
private

data members

Definition at line 135 of file Lpav.h.

◆ m_wsum_temp

double m_wsum_temp
private

data members

Definition at line 154 of file Lpav.h.

◆ m_xav

double m_xav
private

data members

Definition at line 156 of file Lpav.h.

◆ m_xrravp

double m_xrravp
private

data members

Definition at line 169 of file Lpav.h.

◆ m_xrrsum

double m_xrrsum
private

data members

Definition at line 147 of file Lpav.h.

◆ m_xsum

double m_xsum
private

data members

Definition at line 137 of file Lpav.h.

◆ m_xxavp

double m_xxavp
private

data members

Definition at line 165 of file Lpav.h.

◆ m_xxsum

double m_xxsum
private

data members

Definition at line 141 of file Lpav.h.

◆ m_xyavp

double m_xyavp
private

data members

Definition at line 160 of file Lpav.h.

◆ m_xysum

double m_xysum
private

data members

Definition at line 145 of file Lpav.h.

◆ m_yav

double m_yav
private

data members

Definition at line 158 of file Lpav.h.

◆ m_yrravp

double m_yrravp
private

data members

Definition at line 171 of file Lpav.h.

◆ m_yrrsum

double m_yrrsum
private

data members

Definition at line 149 of file Lpav.h.

◆ m_ysum

double m_ysum
private

data members

Definition at line 139 of file Lpav.h.

◆ m_yyavp

double m_yyavp
private

data members

Definition at line 167 of file Lpav.h.

◆ m_yysum

double m_yysum
private

data members

Definition at line 143 of file Lpav.h.


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