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

#include <ColorSingletModels.h>

Inheritance diagram for chigen::models::chi_2_1:
chigen::models::ColorSingletPartonicModel chigen::PartonicModel

Public Member Functions

 chi_2_1 ()
 
 chi_2_1 (double ecm)
 
virtual double dsdt ()
 
 ClassDef (chi_2_1, 1)
 
virtual void setSigma ()
 
virtual bool setKin ()
 
bool setTrialKin ()
 
 ClassDef (ColorSingletPartonicModel, 1)
 
 ClassDef (PartonicModel, 1)
 
virtual bool next ()
 

Public Attributes

double __S__
 
double R20
 
double alpS
 
double Xmin
 
double Xmax
 
double Pfct
 
double PhSp
 
double sH2
 
double tH2
 
double uH2
 
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 251 of file ColorSingletModels.h.

Constructor & Destructor Documentation

chigen::models::chi_2_1::chi_2_1 ( )
inline

Definition at line 254 of file ColorSingletModels.h.

254  :
257  createSpinDensity(2, 1), CHI2_MASS, R20_CHI, 1.58e-06) {
258  }
#define CHI2_MASS
Definition: ChiGenContext.h:34
#define R20_CHI
Definition: ChiGenContext.h:32
ColorSingletPartonicModel(double ecm, int pdgId, EvtId evtId, EvtSpinDensity spinDensity, double mesonMass, double particleR20, double particleMaxSigma)
EvtSpinDensity createSpinDensity(int spin, int projection)
#define CHI2_PDG_ID
Definition: ChiGenContext.h:49
chigen::models::chi_2_1::chi_2_1 ( double  ecm)
inline

Definition at line 260 of file ColorSingletModels.h.

260  :
263  createSpinDensity(2, 1), CHI2_MASS, R20_CHI, 1.58e-06) {
264  }
#define CHI2_MASS
Definition: ChiGenContext.h:34
#define R20_CHI
Definition: ChiGenContext.h:32
ColorSingletPartonicModel(double ecm, int pdgId, EvtId evtId, EvtSpinDensity spinDensity, double mesonMass, double particleR20, double particleMaxSigma)
EvtSpinDensity createSpinDensity(int spin, int projection)
#define CHI2_PDG_ID
Definition: ChiGenContext.h:49

Member Function Documentation

chigen::PartonicModel::ClassDef ( PartonicModel  ,
 
)
inherited
chigen::models::ColorSingletPartonicModel::ClassDef ( ColorSingletPartonicModel  ,
 
)
inherited
chigen::models::chi_2_1::ClassDef ( chi_2_1  ,
 
)
virtual double chigen::models::chi_2_1::dsdt ( )
inlinevirtual

d sigma/ dt

Returns
d sigma/ dt

Reimplemented from chigen::models::ColorSingletPartonicModel.

Definition at line 266 of file ColorSingletModels.h.

bool chigen::PartonicModel::next ( )
virtualinherited

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__
bool chigen::models::ColorSingletPartonicModel::setKin ( )
virtualinherited

fills kinematic variables

Reimplemented from chigen::PartonicModel.

Definition at line 86 of file ColorSingletModels.cxx.

References exp(), chigen::ChiGenRandomEngine::flat(), log(), chigen::random::random_engine, sqrt(), X, and Y.

86  {
87  PhSp = 1;
88 
89  //double Pfct = -1;
90  double Amin = pow(Xmin, -Pfct), Amax = pow(Xmax, -Pfct);
91  double X = pow(Amin + chigen::random::random_engine->flat()*(Amax - Amin), -1 / Pfct);
92  PhSp *= -1 / Pfct * (Amax - Amin) * pow(X, Pfct + 1);
93  sH = X*__S__;
94 
95 
96 
97  // double Xmin = 1.1 * mChi2 / S;
98  // double Xmax=1;
99  // double X = Xmin + (1 - Xmin) * rndm.flat();
100  // PhSp *= (1 - Xmin);
101 
102  double Ymax = log(1 / X) / 2;
103  double Y = Ymax * (2 * chigen::random::random_engine->flat() - 1);
104  PhSp *= 2 * Ymax;
105 
106  x1 = sqrt(X) * exp(Y);
107  x2 = sqrt(X) * exp(-Y);
108 
109  if (x1 * x2 * __S__ < mesonMass2) {
110  return false;
111  }
112 
113  sH = x1 * x2*__S__;
114 
116  PhSp = PhSp * (sH - mesonMass2);
117  uH = mesonMass2 - sH - tH;
118  sH2 = pow2(sH);
119  tH2 = pow2(tH);
120  uH2 = pow2(uH);
121  return true;
122 }
friend F32vec4 exp(const F32vec4 &a)
Definition: P4_F32vec4.h:109
friend F32vec4 sqrt(const F32vec4 &a)
Definition: P4_F32vec4.h:29
friend F32vec4 log(const F32vec4 &a)
Definition: P4_F32vec4.h:110
double Y
Definition: anaLmdDigi.C:68
double X
Definition: anaLmdDigi.C:68
ChiGenRandomEngine * random_engine
void chigen::models::ColorSingletPartonicModel::setSigma ( )
virtualinherited

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

Reimplemented from chigen::PartonicModel.

Definition at line 77 of file ColorSingletModels.cxx.

References chigen::pythia::pdf, and sigma.

77  {
78  // hard cross section
79  sigma = dsdt();
80  // Multiply by PDF's
82  // Correct on change of integration variables
83  sigma = sigma*PhSp;
84 }
Pythia8::PDF * pdf
bool chigen::models::ColorSingletPartonicModel::setTrialKin ( )
inherited

Calculates trial kinematics

Definition at line 124 of file ColorSingletModels.cxx.

References exp(), log(), chigen::random::random_engine, sigma, sqrt(), X, xmin, and Y.

124  {
125  PhSp = 1;
126 
127  double xmin = 0.67;
128  double X = 1.1 * xmin;
129  PhSp *= (1 - xmin);
130  double Ymax = log(1 / xmin) / 2;
131  double Y = 0;
132  PhSp *= 2 * Ymax;
133 
134 
135  x1 = sqrt(X) * exp(Y);
136  x2 = sqrt(X) * exp(-Y);
137 
138  if (x1 * x2 * __S__ < mesonMass2) {
139  return false;
140  }
141  sH = X*__S__;
143  PhSp = PhSp * (sH - mesonMass2);
144  uH = mesonMass2 - sH - tH;
145 
146  // MaxSigma = 100000*setSigma();
147  setSigma();
148  MaxSigma = 16 * 10000 * sigma;
150  return true;
151 }
friend F32vec4 exp(const F32vec4 &a)
Definition: P4_F32vec4.h:109
friend F32vec4 sqrt(const F32vec4 &a)
Definition: P4_F32vec4.h:29
friend F32vec4 log(const F32vec4 &a)
Definition: P4_F32vec4.h:110
double Y
Definition: anaLmdDigi.C:68
double X
Definition: anaLmdDigi.C:68
Double_t xmin
ChiGenRandomEngine * random_engine

Member Data Documentation

double chigen::models::ColorSingletPartonicModel::__S__
inherited

Proton mass take into account

Definition at line 61 of file ColorSingletModels.h.

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

double chigen::models::ColorSingletPartonicModel::alpS
inherited
double chigen::PartonicModel::eCM
inherited
EvtId chigen::PartonicModel::evtId
inherited

EvtGen id

Definition at line 56 of file PartonicModel.h.

Referenced by chigen::PartonicModel::PartonicModel().

double chigen::PartonicModel::MaxSigma
inherited

Maximal sigma

Definition at line 76 of file PartonicModel.h.

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

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

Meson mass and its squared

Definition at line 60 of file PartonicModel.h.

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

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

number of attempts

Definition at line 81 of file PartonicModel.h.

int chigen::PartonicModel::pdgId
inherited

Meson id

Definition at line 48 of file PartonicModel.h.

Referenced by chigen::PartonicModel::PartonicModel().

double chigen::models::ColorSingletPartonicModel::Pfct
inherited
double chigen::models::ColorSingletPartonicModel::PhSp
inherited

Definition at line 66 of file ColorSingletModels.h.

double chigen::models::ColorSingletPartonicModel::R20
inherited
double chigen::PartonicModel::sH
inherited

Mandelstam variables of the hard process

Definition at line 68 of file PartonicModel.h.

double chigen::models::ColorSingletPartonicModel::sH2
inherited

Definition at line 67 of file ColorSingletModels.h.

double chigen::PartonicModel::sigma
inherited

dsdt

Definition at line 72 of file PartonicModel.h.

EvtSpinDensity chigen::PartonicModel::spinDensity
inherited

Spin density corresponding to this polarization

Definition at line 52 of file PartonicModel.h.

Referenced by chigen::PartonicModel::PartonicModel().

double chigen::PartonicModel::tH
inherited

Definition at line 68 of file PartonicModel.h.

double chigen::models::ColorSingletPartonicModel::tH2
inherited

Definition at line 67 of file ColorSingletModels.h.

double chigen::PartonicModel::uH
inherited

Definition at line 68 of file PartonicModel.h.

double chigen::models::ColorSingletPartonicModel::uH2
inherited

Definition at line 67 of file ColorSingletModels.h.

double chigen::PartonicModel::x1
inherited

Momentum fractions of the incoming partons

Definition at line 64 of file PartonicModel.h.

double chigen::PartonicModel::x2
inherited

Definition at line 64 of file PartonicModel.h.

double chigen::models::ColorSingletPartonicModel::Xmax
inherited
double chigen::models::ColorSingletPartonicModel::Xmin
inherited

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