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

#include <TCouplings.hh>

Public Member Functions

 SpinTwoCouplings ()
 
 SpinTwoCouplings (SpinTwoCouplings const &other)
 
virtual ~SpinTwoCouplings ()
 
void reset ()
 
void copy (SpinTwoCouplings const &other)
 
SpinTwoCouplingsgetRef ()
 
void SetGVVCouplings (unsigned int index, double c_real, double c_imag)
 
void SetGVVpCouplings (unsigned int index, double c_real, double c_imag)
 
void SetGVpVpCouplings (unsigned int index, double c_real, double c_imag)
 
void SetGQQCouplings (unsigned int index, double c_real, double c_imag)
 
void SetGGGCouplings (unsigned int index, double c_real, double c_imag)
 

Public Attributes

double Gvvcoupl [SIZE_GVV][2]
 
double Gvvpcoupl [SIZE_GVV][2]
 
double Gvpvpcoupl [SIZE_GVV][2]
 
double Gqqcoupl [SIZE_GQQ][2]
 
double Gggcoupl [SIZE_GGG][2]
 

Detailed Description

Definition at line 85 of file TCouplings.hh.

Constructor & Destructor Documentation

◆ SpinTwoCouplings() [1/2]

SpinTwoCouplings::SpinTwoCouplings ( )

Definition at line 321 of file TCouplings.cc.

321 { reset(); }

◆ SpinTwoCouplings() [2/2]

SpinTwoCouplings::SpinTwoCouplings ( SpinTwoCouplings const &  other)

Definition at line 322 of file TCouplings.cc.

322 { this->copy(other); }

◆ ~SpinTwoCouplings()

SpinTwoCouplings::~SpinTwoCouplings ( )
virtual

Definition at line 323 of file TCouplings.cc.

323 {}

Member Function Documentation

◆ copy()

void SpinTwoCouplings::copy ( SpinTwoCouplings const &  other)

Definition at line 342 of file TCouplings.cc.

342  {
343  for (int im=0; im<2; im++){
344  for (int ic=0; ic<SIZE_GVV; ic++) Gvvcoupl[ic][im] = (other.Gvvcoupl)[ic][im];
345  for (int ic=0; ic<SIZE_GGG; ic++) Gggcoupl[ic][im] = (other.Gggcoupl)[ic][im];
346  for (int ic=0; ic<SIZE_GQQ; ic++) Gqqcoupl[ic][im] = (other.Gqqcoupl)[ic][im];
347  }
348 }

◆ getRef()

SpinTwoCouplings * SpinTwoCouplings::getRef ( )

Definition at line 349 of file TCouplings.cc.

349 { return this; }

◆ reset()

void SpinTwoCouplings::reset ( )

Definition at line 325 of file TCouplings.cc.

325  {
326  for (int im=0; im<2; im++){
327  for (int ic=0; ic<SIZE_GVV; ic++){
328  Gvvcoupl[ic][im] = 0;
329  Gvvpcoupl[ic][im] = 0;
330  Gvpvpcoupl[ic][im] = 0;
331  }
332  for (int ic=0; ic<SIZE_GGG; ic++) Gggcoupl[ic][im] = 0;
333  for (int ic=0; ic<SIZE_GQQ; ic++) Gqqcoupl[ic][im] = 0;
334  }
335  /*
336  Gggcoupl[0][0]=1.0;
337  Gqqcoupl[0][0]=1.0;
338  Gqqcoupl[1][0]=1.0;
339  Gvvcoupl[0][0]=1.0;
340  */
341 }

◆ SetGGGCouplings()

void SpinTwoCouplings::SetGGGCouplings ( unsigned int  index,
double  c_real,
double  c_imag 
)

Definition at line 379 of file TCouplings.cc.

379  {
380  if (index>=SIZE_GGG) MELAerr << "Cannot set index " << index << " for the Gggcoupl, out of range." << endl;
381  else{
382  Gggcoupl[index][0] = c_real;
383  Gggcoupl[index][1] = c_imag;
384  }
385 }

◆ SetGQQCouplings()

void SpinTwoCouplings::SetGQQCouplings ( unsigned int  index,
double  c_real,
double  c_imag 
)

Definition at line 372 of file TCouplings.cc.

372  {
373  if (index>=SIZE_GQQ) MELAerr << "Cannot set index " << index << " for the Gqqcoupl, out of range." << endl;
374  else{
375  Gqqcoupl[index][0] = c_real;
376  Gqqcoupl[index][1] = c_imag;
377  }
378 }

◆ SetGVpVpCouplings()

void SpinTwoCouplings::SetGVpVpCouplings ( unsigned int  index,
double  c_real,
double  c_imag 
)

Definition at line 365 of file TCouplings.cc.

365  {
366  if (index>=SIZE_GVV) MELAerr << "Cannot set index " << index << " for the Gvpvpcoupl, out of range." << endl;
367  else{
368  Gvpvpcoupl[index][0] = c_real;
369  Gvpvpcoupl[index][1] = c_imag;
370  }
371 }

◆ SetGVVCouplings()

void SpinTwoCouplings::SetGVVCouplings ( unsigned int  index,
double  c_real,
double  c_imag 
)

Definition at line 351 of file TCouplings.cc.

351  {
352  if (index>=SIZE_GVV) MELAerr << "Cannot set index " << index << " for the Gvvcoupl, out of range." << endl;
353  else{
354  Gvvcoupl[index][0] = c_real;
355  Gvvcoupl[index][1] = c_imag;
356  }
357 }

◆ SetGVVpCouplings()

void SpinTwoCouplings::SetGVVpCouplings ( unsigned int  index,
double  c_real,
double  c_imag 
)

Definition at line 358 of file TCouplings.cc.

358  {
359  if (index>=SIZE_GVV) MELAerr << "Cannot set index " << index << " for the Gvvpcoupl, out of range." << endl;
360  else{
361  Gvvpcoupl[index][0] = c_real;
362  Gvvpcoupl[index][1] = c_imag;
363  }
364 }

Member Data Documentation

◆ Gggcoupl

double SpinTwoCouplings::Gggcoupl[SIZE_GGG][2]

Definition at line 105 of file TCouplings.hh.

◆ Gqqcoupl

double SpinTwoCouplings::Gqqcoupl[SIZE_GQQ][2]

Definition at line 104 of file TCouplings.hh.

◆ Gvpvpcoupl

double SpinTwoCouplings::Gvpvpcoupl[SIZE_GVV][2]

Definition at line 103 of file TCouplings.hh.

◆ Gvvcoupl

double SpinTwoCouplings::Gvvcoupl[SIZE_GVV][2]

Definition at line 101 of file TCouplings.hh.

◆ Gvvpcoupl

double SpinTwoCouplings::Gvvpcoupl[SIZE_GVV][2]

Definition at line 102 of file TCouplings.hh.


The documentation for this class was generated from the following files:
SIZE_GVV
@ SIZE_GVV
Definition: raw_couplings.txt:158
SIZE_GGG
@ SIZE_GGG
Definition: raw_couplings.txt:131
SpinTwoCouplings::Gvpvpcoupl
double Gvpvpcoupl[SIZE_GVV][2]
Definition: TCouplings.hh:103
SpinTwoCouplings::reset
void reset()
Definition: TCouplings.cc:325
SpinTwoCouplings::copy
void copy(SpinTwoCouplings const &other)
Definition: TCouplings.cc:342
MELAStreamHelpers::MELAerr
MELAOutputStreamer MELAerr
SpinTwoCouplings::Gvvcoupl
double Gvvcoupl[SIZE_GVV][2]
Definition: TCouplings.hh:101
SpinTwoCouplings::Gqqcoupl
double Gqqcoupl[SIZE_GQQ][2]
Definition: TCouplings.hh:104
SpinTwoCouplings::Gvvpcoupl
double Gvvpcoupl[SIZE_GVV][2]
Definition: TCouplings.hh:102
SpinTwoCouplings::Gggcoupl
double Gggcoupl[SIZE_GGG][2]
Definition: TCouplings.hh:105
SIZE_GQQ
@ SIZE_GQQ
Definition: raw_couplings.txt:121