Skip to content

Commit

Permalink
Fix hard coded beam energies in various places
Browse files Browse the repository at this point in the history
  • Loading branch information
cbravo135 committed May 2, 2018
1 parent 8e3eaf0 commit cc6066e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion include/LHEWriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class LHEWriter
ofstream oF;

public:
LHEWriter(string fName);
LHEWriter(string fName, double sqrtS);
~LHEWriter();

int writeEvent(vector<particle> outParts, double Q);
Expand Down
10 changes: 5 additions & 5 deletions src/BaryoGEN.cc
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ int main(int argc, char* argv[])

//Init output files
TFile *myF = new TFile((ofName+".root").c_str(),"RECREATE","Holds daughters from sphaleron decay");
LHEWriter lheF(ofName);
LHEWriter lheF(ofName, SQRTS);

double minx = thr*thr/(SQRTS*SQRTS);

Expand Down Expand Up @@ -213,12 +213,12 @@ int main(int argc, char* argv[])
particle partBuf = partBase->getParticle(iq1);
if(iq1 != partBuf.pid) cout << "iq1 = " << iq1 << " != partBuf.pid = " << partBuf.pid << endl;
partBuf.color = 501;
partBuf.p4v.SetXYZM(0.0,0.0,x1*6500,partBuf.mass);
partBuf.p4v.SetXYZM(0.0,0.0,x1*SQRTS/2.0,partBuf.mass);
inParts.push_back(partBuf); //Push first incoming quark

partBuf = partBase->getParticle(iq2);
partBuf.color = 502;
partBuf.p4v.SetXYZM(0.0,0.0,x2*(-6500),partBuf.mass);
partBuf.p4v.SetXYZM(0.0,0.0,x2*SQRTS/-2.0,partBuf.mass);
inParts.push_back(partBuf); //Push second incoming quark

int colNow = 503;//This is used to keep track of the color line numbers already used
Expand All @@ -237,8 +237,8 @@ int main(int argc, char* argv[])
masses[i] = confBuf[i].mass;
}

u1.SetXYZM(0.0,0.0,x1*6500,UQ_MASS);
u2.SetXYZM(0.0,0.0,x2*(-6500),UQ_MASS);
u1.SetXYZM(0.0,0.0,x1*SQRTS/2.0,inParts[0].mass);
u2.SetXYZM(0.0,0.0,x2*SQRTS/-2.0,inParts[1].mass);
mom = u1 + u2;
momM = mom.M();
pz = mom.Pz();
Expand Down
4 changes: 2 additions & 2 deletions src/LHEWriter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
#include <math.h>
using namespace std;

LHEWriter::LHEWriter(string fName)
LHEWriter::LHEWriter(string fName, double sqrtS)
{
oF.open((fName+".lhe").c_str());
oF << std::scientific;
oF << "<LesHouchesEvents version=\"1.0\">" << endl;
oF << "<header>" << endl;
oF << "</header>" << endl;
oF << "<init>" << endl;
oF << "\t2212 2212 0.65000000000e+04 0.65000000000e+04 292200 292200 292200 292200 3 1" << endl;//beam conditions information
oF << "\t2212 2212 " << sqrtS/2.0 << " " << sqrtS/2.0 << " 292200 292200 292200 292200 3 1" << endl;//beam conditions information
oF << "\t7.3 1.0 1.0 7000" << endl;//sphaleron process information
oF << "</init>" << endl;
}
Expand Down

0 comments on commit cc6066e

Please sign in to comment.