Skip to content

Commit 35cea23

Browse files
jackal1-66shahor02
authored andcommitted
Configurable center-of-mass energy + atomic number
Changed hardcoded gamma with centre-of-mass energy and replaced hardcoded atomic number of Lead82 in calculation with variable Z
1 parent 701506c commit 35cea23

File tree

6 files changed

+20
-15
lines changed

6 files changed

+20
-15
lines changed

TEPEMGEN/TEpEmGen.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
#endif
5151

5252
extern "C" {
53-
void ee_init (Double_t &ymin, Double_t &ymax, Double_t &xmin, Double_t &xmax);
53+
void ee_init (Double_t &ymin, Double_t &ymax, Double_t &xmin, Double_t &xmax, Double_t &cm_energy, Double_t &Z);
5454
void ee_event (Double_t &ymin, Double_t &ymax, Double_t &xmin, Double_t &xmax,
5555
Double_t &yE, Double_t &yP, Double_t &xE, Double_t &xP,
5656
Double_t &phi, Double_t &w);
@@ -94,12 +94,12 @@ void TEpEmGen::GenerateEvent(Double_t ymin, Double_t ymax, Double_t ptmin, Doubl
9494
}
9595

9696
//______________________________________________________________________________
97-
void TEpEmGen::Initialize(Double_t ymin, Double_t ymax, Double_t ptmin, Double_t ptmax)
97+
void TEpEmGen::Initialize(Double_t ymin, Double_t ymax, Double_t ptmin, Double_t ptmax, Double_t cm_energy, Double_t Z)
9898
{
9999
// Initialize EpEmGen
100100
Double_t ptminMeV = ptmin*1000;
101101
Double_t ptmaxMeV = ptmax*1000;
102-
ee_init(ymin,ymax,ptminMeV,ptmaxMeV);
102+
ee_init(ymin,ymax,ptminMeV,ptmaxMeV,cm_energy,Z);
103103
}
104104

105105
//______________________________________________________________________________

TEPEMGEN/TEpEmGen.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class TEpEmGen : public TGenerator {
2727
TEpEmGen();
2828
virtual ~TEpEmGen();
2929

30-
void Initialize (Double_t ymin, Double_t ymax, Double_t ptmin, Double_t ptmax);
30+
void Initialize(Double_t ymin, Double_t ymax, Double_t ptmin, Double_t ptmaxm, Double_t cm_energy = 5160., Double_t Z = 82.);
3131
virtual void GenerateEvent() {TGenerator::GenerateEvent();};
3232
Int_t ImportParticles(TClonesArray *particles, Option_t *option);
3333

TEPEMGEN/TGenEpEmv1.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ bool TGenEpEmv1::Init()
117117

118118
fMass = TDatabasePDG::Instance()->GetParticle(11)->Mass();
119119
if (fPtMin == 0) fPtMin = 1.E-04; // avoid zero pT
120-
Initialize(fYMin, fYMax, fPtMin, fPtMax);
120+
Initialize(fYMin, fYMax, fPtMin, fPtMax, fCMEnergy, fZ);
121121
fEvent = 0;
122122
//
123123
// calculate XSection

TEPEMGEN/TGenEpEmv1.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ class TGenEpEmv1 : public TEpEmGen {
2929
void SetYRange(Double_t min, Double_t max) {fYMin = min; fYMax = max;};
3030
void SetPtRange(Double_t min, Double_t max) {fPtMin = min; fPtMax = max;};
3131
void SetPhiRange(Double_t min, Double_t max) {fPhiMin = min; fPhiMax = max;};
32+
void SetCMEnergy(Double_t energy) {fCMEnergy = energy;};
33+
void SetZ(Double_t z) {fZ = z;};
3234
void SetOrigin(Float_t ox, Float_t oy, Float_t oz) {fOrigin[0]=ox; fOrigin[1]=oy; fOrigin[2]=oz;};
3335
void SetSigma(Float_t sx, Float_t sy, Float_t sz) {fOsigma[0]=sx; fOsigma[1]=sy; fOsigma[2]=sz;};
3436
void SetTimeOrigin(Float_t timeorig) {fTimeOrigin = timeorig;};
@@ -52,6 +54,8 @@ class TGenEpEmv1 : public TEpEmGen {
5254
Double_t fYMin, fYMax;
5355
Double_t fPhiMin, fPhiMax;
5456
Double_t fPtMin, fPtMax;
57+
Double_t fCMEnergy; // center of mass energy per nucleon pair in GeV
58+
Double_t fZ; // atomic number of the projectile/target (only symmetric systems are compatible for now)
5559
Double_t fTimeOrigin, fOrigin[3], fOsigma[3];
5660

5761
Double_t fXSection; // estimated cross section in barns

TEPEMGEN/diffcross.f

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,21 @@
3232
C call this routine first to initialize some parameter needed in the
3333
C function.
3434
C
35-
C gm = Gamma_cm, that is, gm of each ion (~100 for RHIC ~3000 for LHC)
35+
C energy = energy per nucleon pair in GeV
3636
C mass = mass of the produced particle in MeV (~0.511 for e,~100 for mu)
3737
C======================================================================
3838

39-
SUBROUTINE Initdiffcross (gm,mass)
39+
SUBROUTINE Initdiffcross (energy,mass)
4040
IMPLICIT NONE
41-
DOUBLE PRECISION gm,mass
41+
DOUBLE PRECISION energy,mass
4242

4343
DOUBLE PRECISION gamma,beta,m,w1xw1,w1xw2,w2xw2,wl,wy
4444
COMMON/PHYSPARAM/gamma,beta,m,w1xw1,w1xw2,w2xw2,wl,wy
4545

4646
DOUBLE PRECISION ARCOSH,x
4747
ARCOSH(x)=LOG(x+SQRT((x-1D0)*(x+1D0)))
48-
49-
gamma=gm
48+
C Approximation energy per nucleon divided by proton mass
49+
gamma=energy/(2D0*0.938D0)
5050
beta=sqrt((1D0-1D0/gamma)*(1D0+1D0/gamma))
5151
m=mass
5252

TEPEMGEN/epemgen.f

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
C **********************************************************************
22
C Version 2.0
33
C Generator of e+e- pairs produced in 1.10.2002
4-
C PbPb collisions at LHC
4+
C Heavy-ion collisions at LHC
55
C
66
C Copyright (c) 2002
77
C Authors: Kai Hencken <[email protected]>
@@ -22,14 +22,16 @@
2222
C Internal ALICE Note 2002-27
2323
C
2424
C **********************************************************************
25-
subroutine ee_init(Ymin,Ymax,PTmin,PTmax)
25+
subroutine ee_init(Ymin,Ymax,PTmin,PTmax,cm_energy,Z)
2626
C-----------------------------------------------------------------------
2727
C Generator initialisation
2828
C
2929
C Input variables: Ymin - minimal value of rapidity \
3030
C Ymax - maximal value of rapidity | of kinematics
3131
C PTmin - Pt minimum in MeV/c | range
3232
C PTmax - Pt maximum in MeV/c /
33+
C cm_energy - Centre of mass energy per nucleon pair
34+
C Z - Atomic number of the colliding nuclei
3335
C-----------------------------------------------------------------------
3436
implicit real*8 (A-H,O-Z)
3537
external DsdYpY,DsdYmY,DsdXpX,DsdXmX,DsdPhi,DsdXX,DsdYY
@@ -55,9 +57,8 @@ subroutine ee_init(Ymin,Ymax,PTmin,PTmax)
5557
C Exact differential Cross section:
5658
C - - - - - - - - - - - - - - - - - - -
5759
C
58-
gm = 2750.0d0 ! Pb gamma factor at the LHC
5960
mass = 0.5109991d0 ! electron mass
60-
call initdiffcross (gm,mass)
61+
call initdiffcross (cm_energy,mass)
6162
C
6263
C Cross sections:
6364
C - - - - - - - - - -
@@ -95,7 +96,7 @@ subroutine ee_init(Ymin,Ymax,PTmin,PTmax)
9596
write(*,*) ' Ysec1,Ysec2,XsecY=', Ysec1,Ysec2,XsecY
9697
C- write(*,*) ' XsecX*YsecY=', XYsect
9798
C
98-
XYsect = 2371.5239*(82./137.035)**4*XYsect ! Normalization factor
99+
XYsect = 2371.5239*(Z/137.035)**4*XYsect ! Normalization factor
99100
write(*,*) ' Normalized: XsecX*YsecY=', XYsect
100101
write(*,*)
101102
C

0 commit comments

Comments
 (0)