ANASEN_analysis/eloss_calculations/make_eloss_table.C
Sudarsan Balakrishnan d70581784a - Path-dependent Eloss calculations added to MakeVertex.C, made dependable on a text/csv input file read into a TGraph.
- Added calculations investigating QQQ-SX3 coincidences for a(p,p) scattering reaction analysis.
- General bookkeeping on naming conventions: made it QQQ_Events, SX3_Events, PC_Events.
- Pending a long cleanup.
2026-04-18 12:06:20 -04:00

19 lines
900 B
C

#include "/home/sud/Desktop/Software2/propagator/elastcaller.h"
void make_eloss_table() {
double einput = 6.0, estepnow;
double target_thickness_unit = 1e-3; //mg/cm2.
double density = 0.0711;//mg/cm3
long i=0;
while(einput > 0.001) {
/* std::cout << "After " << i << " steps, 4He is at " << einput << " MeV after penetrating " << i*target_thickness_unit << " mg/cm2 " << i*target_thickness_unit/density << " cm of HeCO2" << std::endl;
estepnow = slowmedown("4He",einput,"3(12C)6(16O)97(4He)",target_thickness_unit);
*/
std::cout << "After " << i << " steps, 1H is at " << einput << " MeV after penetrating " << i*target_thickness_unit << " mg/cm2 " << i*target_thickness_unit/density << " cm of HeCO2" << std::endl;
estepnow = slowmedown("1H",einput,"3(12C)6(16O)97(4He)",target_thickness_unit);
einput = estepnow;
i+=1;
}
}