Skip to content
Snippets Groups Projects
Commit a5e5ad0e authored by lintao@ihep.ac.cn's avatar lintao@ihep.ac.cn
Browse files

Merge branch 'master' into 'master'

Beam bkg charge added

See merge request !65
parents 2543b17c c47eaf37
No related branches found
No related tags found
No related merge requests found
......@@ -4,4 +4,4 @@ spack*
./Generator/output/
./Generator/options/
InstallArea/
\ No newline at end of file
InstallArea/
......@@ -51,6 +51,7 @@ bool BeamBackgroundFileParserV1::load(IBeamBackgroundFileParser::BeamBackgroundD
// Now, we get a almost valid data
const double m2mm = 1e3; // convert from m to mm
result.pdgid = pid;
result.charge = (pid == 11) ? -1 : (pid == -11) ? 1 : -1;
result.x = x * m2mm;
result.y = y * m2mm;
result.z = (z+dz) * m2mm;
......
......@@ -23,7 +23,7 @@ private:
double m_timewindow;
double x, y, z, cosx, cosy, dz, dp, cosz;
int pid;
int pid, charge;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment