FairRoot/PandaRoot
Public Member Functions | Public Attributes | List of all members
chigen::PartonicModel Class Reference

#include <PartonicModel.h>

Inheritance diagram for chigen::PartonicModel:
chigen::models::ColorSingletPartonicModel chigen::models::chi_1 chigen::models::chi_1_0 chigen::models::chi_1_1 chigen::models::chi_2 chigen::models::chi_2_0 chigen::models::chi_2_1 chigen::models::chi_2_2 chigen::models::x3872 chigen::models::x3872_0 chigen::models::x3872_1

Public Member Functions

 PartonicModel (double ecm, int pdgId, EvtId evtId, EvtSpinDensity spinDensity, double mesonMass)
 
virtual ~PartonicModel ()
 
virtual bool next ()
 
virtual bool setKin ()
 
virtual void setSigma ()
 
 ClassDef (PartonicModel, 1)
 

Public Attributes

double eCM
 
int pdgId
 
EvtSpinDensity spinDensity
 
EvtId evtId
 
double mesonMass
 
double mesonMass2
 
double x1
 
double x2
 
double sH
 
double tH
 
double uH
 
double sigma
 
double MaxSigma
 
double MaxSigmaBackup
 
int nCall
 

Detailed Description

Definition at line 15 of file PartonicModel.h.

Constructor & Destructor Documentation

chigen::PartonicModel::PartonicModel ( double  ecm,
int  pdgId,
EvtId  evtId,
EvtSpinDensity  spinDensity,
double  mesonMass 
)

Definition at line 8 of file PartonicModel.cxx.

References eCM, chigen::ensure_chigen_is_initialized(), evt, evtId, m, mesonMass, mesonMass2, pdgId, and spinDensity.

9  {
11  eCM = ecm;
12  pdgId = pdg;
13  evtId = evt;
14  spinDensity = spin;
15  mesonMass = m;
16  mesonMass2 = m*m;
17 }
void ensure_chigen_is_initialized()
__m128 m
Definition: P4_F32vec4.h:28
int evt
Definition: checkhelixhit.C:36
EvtSpinDensity spinDensity
Definition: PartonicModel.h:52
chigen::PartonicModel::~PartonicModel ( )
virtual

Definition at line 19 of file PartonicModel.cxx.

19  {
20 }

Member Function Documentation

chigen::PartonicModel::ClassDef ( PartonicModel  ,
 
)
bool chigen::PartonicModel::next ( )
virtual

Calculates the partonic cross section

Definition at line 22 of file PartonicModel.cxx.

References __chigen_cout__, i, chigen::random::random_engine, and sigma.

22  {
23  nCall = 0;
24  // trying 1000 attempts
25  for (int i = 0; i < 1000; ++i) {
26  ++nCall;
27  if (!setKin()) {
28  continue;
29  };
30  setSigma();
31  if (sigma > MaxSigma) {
32  //todo add proper info
34  "sigma=" << std::setiosflags(ios::scientific) << sigma <<
35  " > MasSigma=" << std::setiosflags(ios::scientific) << MaxSigma <<
36  " Efct=" << sigma / MaxSigma << endl;
37  MaxSigma = sigma;
38  continue;
39  };
40  if (sigma / MaxSigma > chigen::random::random_engine->flat()) return true;
41 
42  }
43  sigma = -1;
44  return false;
45 }
virtual bool setKin()
Definition: PartonicModel.h:29
Int_t i
Definition: run_full.C:25
virtual void setSigma()
Definition: PartonicModel.h:36
ChiGenRandomEngine * random_engine
#define __chigen_cout__
virtual bool chigen::PartonicModel::setKin ( )
inlinevirtual

fills kinematic variables

Reimplemented in chigen::models::ColorSingletPartonicModel.

Definition at line 29 of file PartonicModel.h.

29  {
30  return false;
31  };
virtual void chigen::PartonicModel::setSigma ( )
inlinevirtual

calculate f1*f2*dSigma/dT of the hard process for the selected kinematics

Reimplemented in chigen::models::ColorSingletPartonicModel.

Definition at line 36 of file PartonicModel.h.

36  {
37  };

Member Data Documentation

double chigen::PartonicModel::eCM
EvtId chigen::PartonicModel::evtId

EvtGen id

Definition at line 56 of file PartonicModel.h.

Referenced by PartonicModel().

double chigen::PartonicModel::MaxSigma

Maximal sigma

Definition at line 76 of file PartonicModel.h.

Referenced by chigen::models::ColorSingletPartonicModel::ColorSingletPartonicModel().

double chigen::PartonicModel::MaxSigmaBackup
double chigen::PartonicModel::mesonMass

Meson mass and its squared

Definition at line 60 of file PartonicModel.h.

Referenced by PartonicModel(), and chigen::PndChiGenExclusive::PndChiGenExclusive().

double chigen::PartonicModel::mesonMass2
int chigen::PartonicModel::nCall

number of attempts

Definition at line 81 of file PartonicModel.h.

int chigen::PartonicModel::pdgId

Meson id

Definition at line 48 of file PartonicModel.h.

Referenced by PartonicModel().

double chigen::PartonicModel::sH

Mandelstam variables of the hard process

Definition at line 68 of file PartonicModel.h.

double chigen::PartonicModel::sigma

dsdt

Definition at line 72 of file PartonicModel.h.

EvtSpinDensity chigen::PartonicModel::spinDensity

Spin density corresponding to this polarization

Definition at line 52 of file PartonicModel.h.

Referenced by PartonicModel().

double chigen::PartonicModel::tH

Definition at line 68 of file PartonicModel.h.

double chigen::PartonicModel::uH

Definition at line 68 of file PartonicModel.h.

double chigen::PartonicModel::x1

Momentum fractions of the incoming partons

Definition at line 64 of file PartonicModel.h.

double chigen::PartonicModel::x2

Definition at line 64 of file PartonicModel.h.


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