JHUGen MELA  JHUGen v7.5.6, MELA v2.4.2
Matrix element calculations as used in JHUGen.
SpinOneCouplings Class Reference

#include <TCouplings.hh>

Public Member Functions

 SpinOneCouplings ()
 
 SpinOneCouplings (SpinOneCouplings const &other)
 
virtual ~SpinOneCouplings ()
 
void reset ()
 
void copy (SpinOneCouplings const &other)
 
SpinOneCouplingsgetRef ()
 
void SetZVVCouplings (unsigned int index, double c_real, double c_imag)
 
void SetZQQCouplings (unsigned int index, double c_real, double c_imag)
 

Public Attributes

double Zvvcoupl [SIZE_ZVV][2]
 
double Zqqcoupl [SIZE_ZQQ][2]
 

Detailed Description

Definition at line 68 of file TCouplings.hh.

Constructor & Destructor Documentation

◆ SpinOneCouplings() [1/2]

SpinOneCouplings::SpinOneCouplings ( )

Definition at line 281 of file TCouplings.cc.

281 { reset(); }

◆ SpinOneCouplings() [2/2]

SpinOneCouplings::SpinOneCouplings ( SpinOneCouplings const &  other)

Definition at line 282 of file TCouplings.cc.

282 { this->copy(other); }

◆ ~SpinOneCouplings()

SpinOneCouplings::~SpinOneCouplings ( )
virtual

Definition at line 283 of file TCouplings.cc.

283 {}

Member Function Documentation

◆ copy()

void SpinOneCouplings::copy ( SpinOneCouplings const &  other)

Definition at line 296 of file TCouplings.cc.

296  {
297  for (int im=0; im<2; im++){
298  for (int ic=0; ic<SIZE_ZVV; ic++) Zvvcoupl[ic][im] = (other.Zvvcoupl)[ic][im];
299  for (int ic=0; ic<SIZE_ZQQ; ic++) Zqqcoupl[ic][im] = (other.Zqqcoupl)[ic][im];
300  }
301 }

◆ getRef()

SpinOneCouplings * SpinOneCouplings::getRef ( )

Definition at line 302 of file TCouplings.cc.

302 { return this; }

◆ reset()

void SpinOneCouplings::reset ( )

Definition at line 285 of file TCouplings.cc.

285  {
286  for (int im=0; im<2; im++){
287  for (int ic=0; ic<SIZE_ZVV; ic++) Zvvcoupl[ic][im] = 0;
288  for (int ic=0; ic<SIZE_ZQQ; ic++) Zqqcoupl[ic][im] = 0;
289  }
290  /*
291  Zvvcoupl[0][0]=1.0;
292  Zqqcoupl[0][0]=1.0;
293  Zqqcoupl[1][0]=1.0;
294  */
295 }

◆ SetZQQCouplings()

void SpinOneCouplings::SetZQQCouplings ( unsigned int  index,
double  c_real,
double  c_imag 
)

Definition at line 311 of file TCouplings.cc.

311  {
312  if (index>=SIZE_ZQQ) MELAerr << "Cannot set index " << index << " for the Zqqcoupl, out of range." << endl;
313  else{
314  Zqqcoupl[index][0] = c_real;
315  Zqqcoupl[index][1] = c_imag;
316  }
317 }

◆ SetZVVCouplings()

void SpinOneCouplings::SetZVVCouplings ( unsigned int  index,
double  c_real,
double  c_imag 
)

Definition at line 304 of file TCouplings.cc.

304  {
305  if (index>=SIZE_ZVV) MELAerr << "Cannot set index " << index << " for the Zvvcoupl, out of range." << endl;
306  else{
307  Zvvcoupl[index][0] = c_real;
308  Zvvcoupl[index][1] = c_imag;
309  }
310 }

Member Data Documentation

◆ Zqqcoupl

double SpinOneCouplings::Zqqcoupl[SIZE_ZQQ][2]

Definition at line 82 of file TCouplings.hh.

◆ Zvvcoupl

double SpinOneCouplings::Zvvcoupl[SIZE_ZVV][2]

Definition at line 81 of file TCouplings.hh.


The documentation for this class was generated from the following files:
SpinOneCouplings::Zqqcoupl
double Zqqcoupl[SIZE_ZQQ][2]
Definition: TCouplings.hh:82
SIZE_ZQQ
@ SIZE_ZQQ
Definition: raw_couplings.txt:107
SpinOneCouplings::Zvvcoupl
double Zvvcoupl[SIZE_ZVV][2]
Definition: TCouplings.hh:81
SIZE_ZVV
@ SIZE_ZVV
Definition: raw_couplings.txt:114
SpinOneCouplings::copy
void copy(SpinOneCouplings const &other)
Definition: TCouplings.cc:296
MELAStreamHelpers::MELAerr
MELAOutputStreamer MELAerr
SpinOneCouplings::reset
void reset()
Definition: TCouplings.cc:285