Commit 10950a5b authored by MARCOS ANTONIO DE OLIVEIRA DEROS's avatar MARCOS ANTONIO DE OLIVEIRA DEROS
Browse files

dat file

parent bbf97a77
...@@ -109,9 +109,9 @@ if (CHCID < 0) { ...@@ -109,9 +109,9 @@ if (CHCID < 0) {
G4double particleEnergy = particleGun->GetParticleEnergy(); G4double particleEnergy = particleGun->GetParticleEnergy();
std::ofstream mu_p_pos("position_mu_p.csv",std::ios_base::app); std::ofstream mu_p_pos("position_mu_p.dat",std::ios_base::app);
std::ofstream mu_m_pos("position_mu_m.csv",std::ios_base::app); std::ofstream mu_m_pos("position_mu_m.dat",std::ios_base::app);
for(int i1 = 0; i1 < n_hit; i1++) { for(int i1 = 0; i1 < n_hit; i1++) {
B1Hits* hit = (*HitsCol)[i1]; B1Hits* hit = (*HitsCol)[i1];
......
...@@ -141,9 +141,9 @@ void B1RunAction::EndOfRunAction(const G4Run* run) ...@@ -141,9 +141,9 @@ void B1RunAction::EndOfRunAction(const G4Run* run)
#define PI 3.14159265 #define PI 3.14159265
G4double angle = atan(y/z)*180/PI; G4double angle = atan(y/z)*180/PI;
std::ofstream mu_p_energy("energy_mu_p" + std::to_string(particleEnergy/GeV) + ".csv",std::ios_base::app); std::ofstream mu_p_energy("energy_mu_p" + std::to_string(particleEnergy/GeV) + ".dat",std::ios_base::app);
std::ofstream mu_m_energy("energy_mu_m" + std::to_string(particleEnergy/GeV) + ".csv",std::ios_base::app); std::ofstream mu_m_energy("energy_mu_m" + std::to_string(particleEnergy/GeV) + ".dat",std::ios_base::app);
mu_p_energy << mu_p_en/GeV << " " << angle << "\n"; mu_p_energy << mu_p_en/GeV << " " << angle << "\n";
mu_m_energy << mu_m_en/GeV << " " << angle << "\n"; mu_m_energy << mu_m_en/GeV << " " << angle << "\n";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment