bug fix on Transfer.C
This commit is contained in:
parent
fca3602769
commit
80a23ee689
|
@ -1,54 +0,0 @@
|
|||
/***********************************************************************
|
||||
*
|
||||
* This is IsotopeShort.C for isotope mass-related quatilies
|
||||
* for python web
|
||||
*
|
||||
* -----------------------------------------------------
|
||||
* To compile
|
||||
*
|
||||
* g++ IsotopeShort.C -o IsotopesShort
|
||||
*
|
||||
* ------------------------------------------------------
|
||||
* created by Ryan (Tsz Leung) Tang, Feb-20, 2021
|
||||
* email: goluckyryan@gmail.com
|
||||
* ********************************************************************/
|
||||
|
||||
#include <fstream>
|
||||
#include <stdlib.h>
|
||||
#include "ClassIsotope.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
void Usage(){
|
||||
cout << "./NuclearData Sym" << endl;
|
||||
cout << "./NuclearData A Z" << endl;
|
||||
exit(0);
|
||||
}
|
||||
|
||||
int main (int argc, char *argv[]) {
|
||||
|
||||
if ( argc != 2 && argc != 3 && argc != 6) Usage();
|
||||
|
||||
Isotope iso1, iso2;
|
||||
int Z, A, Za, Aa;
|
||||
if (argc == 2){
|
||||
iso1.SetIsoByName(argv[1]);
|
||||
}
|
||||
if (argc == 3){
|
||||
A= atoi(argv[1]);
|
||||
Z= atoi(argv[2]);
|
||||
iso1.SetIso(A, Z);
|
||||
}
|
||||
|
||||
//iso1.Print();
|
||||
printf("A:%3d\n", iso1.A);
|
||||
printf("Z:%3d\n", iso1.Z);
|
||||
printf("N:%3d\n", iso1.A-iso1.Z);
|
||||
printf("Name:%s|\n",iso1.Name.c_str());
|
||||
printf("Mass:%13.4f\n", iso1.Mass);
|
||||
printf("Sn:%13.4f\n", iso1.CalSp(0,1));
|
||||
printf("Sp:%13.4f\n", iso1.CalSp(1,0));
|
||||
printf("Sa:%13.4f\n", iso1.CalSp2(4,2));
|
||||
printf("S2n:%13.4f\n", iso1.CalSp(0,2));
|
||||
|
||||
}
|
|
@ -60,15 +60,15 @@ int main (int argc, char *argv[]) {
|
|||
//run Armory/Check_Simulation
|
||||
if( isPlot ){
|
||||
ifstream file_in;
|
||||
file_in.open("../Armory/Check_Simulation.C", ios::in);
|
||||
file_in.open("../Cleopatra/Check_Simulation.C", ios::in);
|
||||
if( file_in){
|
||||
printf("---- running ../Armory/Check_Simulation.C on %s \n", saveFileName.Data());
|
||||
printf("---- running ../Cleopatra/Check_Simulation.C on %s \n", saveFileName.Data());
|
||||
TString cmd;
|
||||
cmd.Form("root -l '../Armory/Check_Simulation.C(\"%s\", 500)'", saveFileName.Data());
|
||||
cmd.Form("root -l '../Cleopatra/Check_Simulation.C(\"%s\")'", saveFileName.Data());
|
||||
|
||||
system(cmd.Data());
|
||||
}else{
|
||||
printf("cannot find ../Armory/Check_Simulation.C \n");
|
||||
printf("cannot find ../Cleopatra/Check_Simulation.C \n");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
CC=g++
|
||||
|
||||
ALL = Isotope InFileCreator ExtractXSec ExtractXSecFromText PlotTGraphTObjArray FindThetaCM Transfer PlotSimulation IsotopeShort
|
||||
ALL = Isotope InFileCreator ExtractXSec ExtractXSecFromText PlotTGraphTObjArray FindThetaCM Transfer PlotSimulation
|
||||
|
||||
all: $(ALL)
|
||||
|
||||
|
@ -27,9 +27,6 @@ PlotSimulation: PlotSimulation.C Check_Simulation.C
|
|||
|
||||
Isotope: ../Cleopatra/ClassIsotope.h ../Cleopatra/Isotope.C
|
||||
$(CC) Isotope.C -o Isotope
|
||||
|
||||
IsotopeShort: ../Cleopatra/ClassIsotope.h ../Cleopatra/IsotopeShort.C
|
||||
$(CC) IsotopeShort.C -o IsotopeShort
|
||||
|
||||
clean:
|
||||
/bin/rm -f $(ALL)
|
Loading…
Reference in New Issue
Block a user