Belle II Software light-2406-ragdoll
KsfwMoments Class Reference

Moment-calculation of the k_sfw improved Super-Fox-Wolfram moments. More...

#include <KsfwMoments.h>

Public Member Functions

 KsfwMoments ()
 Initialize KSFW moments, et, and mm2 to 0.
 
 KsfwMoments (double Hso0_max, std::vector< std::pair< ROOT::Math::XYZVector, int > > p3_cms_q_sigA, std::vector< std::pair< ROOT::Math::XYZVector, int > > p3_cms_q_sigB, std::vector< std::pair< ROOT::Math::XYZVector, int > > p3_cms_q_roe, const ROOT::Math::PxPyPzEVector &p_cms_missA, const ROOT::Math::PxPyPzEVector &p_cms_missB, const double et[2])
 Constructor.
 
 ~KsfwMoments ()
 Destructor.
 
int usefinal (int uf)
 Sets the flag that specifiies we are using the finalstate for signal.
 
int usefinal () const
 Return the flag that specifiies we are using the finalstate for signal.
 
double mm2 (int uf=-1) const
 Returns calculated missing mass squared.
 
double et (int uf=-1) const
 Returns calculated transverse energy.
 
double Hoo (int i, int uf=-1) const
 Returns calculated KSFW Moments.
 
double Hso (int i, int j, int uf=-1) const
 Returns calculated KSFW Moments.
 
double var (int i)
 Returns calculated KSFW Moments i is the index ordered as in Belle.
 

Private Attributes

int m_uf
 Flag that specifiies we are using the final state for signal.
 
double m_Hso [2][3][5]
 KSFW moments.
 
double m_Hoo [2][5]
 KSFW moments.
 
double m_et [2]
 Transverse energy.
 
double m_mm2 [2]
 Missing mass squared.
 

Detailed Description

Moment-calculation of the k_sfw improved Super-Fox-Wolfram moments.

Definition at line 35 of file KsfwMoments.h.

Constructor & Destructor Documentation

◆ KsfwMoments()

KsfwMoments ( )
inline

Initialize KSFW moments, et, and mm2 to 0.

Definition at line 41 of file KsfwMoments.h.

41 : m_uf(0)
42 {
43 for (int i = 0; i < 2; i++)
44 for (int j = 0; j < 3; j++)
45 for (int k = 0; k < 5; k++)
46 m_Hso[i][j][k] = 0.0;
47
48 for (int i = 0; i < 2; i++)
49 for (int j = 0; j < 5; j++)
50 m_Hoo[i][j] = 0.0;
51
52 for (int i = 0; i < 2; i++) {
53 m_et[i] = 0.0;
54 m_mm2[i] = 0.0;
55 }
56 };
double m_et[2]
Transverse energy.
Definition: KsfwMoments.h:127
int m_uf
Flag that specifiies we are using the final state for signal.
Definition: KsfwMoments.h:124
double m_Hso[2][3][5]
KSFW moments.
Definition: KsfwMoments.h:125
double m_mm2[2]
Missing mass squared.
Definition: KsfwMoments.h:128
double m_Hoo[2][5]
KSFW moments.
Definition: KsfwMoments.h:126

◆ ~KsfwMoments()

~KsfwMoments ( )
inline

Destructor.

Definition at line 73 of file KsfwMoments.h.

73{};

Member Function Documentation

◆ et()

double et ( int  uf = -1) const
inline

Returns calculated transverse energy.

Definition at line 93 of file KsfwMoments.h.

93{ return m_et[uf < 0 ? m_uf : uf]; }

◆ Hoo()

double Hoo ( int  i,
int  uf = -1 
) const
inline

Returns calculated KSFW Moments.

Definition at line 98 of file KsfwMoments.h.

98{ return m_Hoo[uf < 0 ? m_uf : uf][i]; }

◆ Hso()

double Hso ( int  i,
int  j,
int  uf = -1 
) const
inline

Returns calculated KSFW Moments.

Definition at line 103 of file KsfwMoments.h.

103{ return m_Hso[uf < 0 ? m_uf : uf][i][j]; }

◆ mm2()

double mm2 ( int  uf = -1) const
inline

Returns calculated missing mass squared.

Definition at line 88 of file KsfwMoments.h.

88{ return m_mm2[uf < 0 ? m_uf : uf]; }

◆ usefinal() [1/2]

int usefinal ( ) const
inline

Return the flag that specifiies we are using the finalstate for signal.

Definition at line 83 of file KsfwMoments.h.

83{ return m_uf; }

◆ usefinal() [2/2]

int usefinal ( int  uf)
inline

Sets the flag that specifiies we are using the finalstate for signal.

Definition at line 78 of file KsfwMoments.h.

78{ if (uf == 0 || uf == 1) m_uf = uf; return m_uf; }

◆ var()

double var ( int  i)
inline

Returns calculated KSFW Moments i is the index ordered as in Belle.

Definition at line 110 of file KsfwMoments.h.

111 {
112 if (i < 0) return 0;
113 if (i < 1) return et();
114 if (i < 4) return Hso(i - 1, 0);
115 if (i < 5) return Hso(0, 1);
116 if (i < 8) return Hso(i - 5, 2);
117 if (i < 9) return Hso(0, 3);
118 if (i < 12) return Hso(i - 9, 4);
119 if (i < 17) return Hoo(i - 12);
120 return 0;
121 }
double et(int uf=-1) const
Returns calculated transverse energy.
Definition: KsfwMoments.h:93
double Hso(int i, int j, int uf=-1) const
Returns calculated KSFW Moments.
Definition: KsfwMoments.h:103
double Hoo(int i, int uf=-1) const
Returns calculated KSFW Moments.
Definition: KsfwMoments.h:98

Member Data Documentation

◆ m_et

double m_et[2]
private

Transverse energy.

Definition at line 127 of file KsfwMoments.h.

◆ m_Hoo

double m_Hoo[2][5]
private

KSFW moments.

Definition at line 126 of file KsfwMoments.h.

◆ m_Hso

double m_Hso[2][3][5]
private

KSFW moments.

Definition at line 125 of file KsfwMoments.h.

◆ m_mm2

double m_mm2[2]
private

Missing mass squared.

Definition at line 128 of file KsfwMoments.h.

◆ m_uf

int m_uf
private

Flag that specifiies we are using the final state for signal.

Definition at line 124 of file KsfwMoments.h.


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