Commit 994c5144 authored by Jérémie Dudouet's avatar Jérémie Dudouet
Browse files

Update the README to explain how create the ENSDF database

parent 14722389
How to update the database
How to create/update the database
1) dowload the zip files (3 files) from: https://www.nndc.bnl.gov/ensarchivals/
1) dowload, in the DataBase/LevelScheme/Downloads folder (create it if not existing), the zip files (3 files) from: https://www.nndc.bnl.gov/ensarchivals/
2) execute the ExtractFiles script, giving the files to process in argument
ex: for the data from 01/11/2018
wget https://www.nndc.bnl.gov/ensarchivals/distributions/dist18/ensdf_181101_099.zip -P Downloads/
wget https://www.nndc.bnl.gov/ensarchivals/distributions/dist18/ensdf_181101_199.zip -P Downloads/
wget https://www.nndc.bnl.gov/ensarchivals/distributions/dist18/ensdf_181101_299.zip -P Downloads/
2) execute the ExtractFiles script, giving the files to process in argument:
chmod u+w src/compile.sh
src/compile.sh
./ExtractFiles Downloads/ensdf_181101_*.zip
#!/bin/bash
NAME=../ExtractFiles
NAME2=ExtractFiles.cpp
NAME=ExtractFiles
NAME2=src/ExtractFiles.cpp
g++ $NAME2 -o $NAME -O6 -g `root-config --cflags` `root-config --cflags --libs` -lProof
......@@ -25,6 +25,7 @@
#include "LevelScheme.h"
#include "BaseLSPlayer.h"
#include "GLSPlayer.h"
#include "TSystemDirectory.h"
#include "CXCanvas.h"
#include "CXMainWindow.h"
......@@ -50,6 +51,15 @@ CXLevelSchemePlayer::CXLevelSchemePlayer(const char* name, const char *title) :
fExpDataDir = Form("%s/DataBase/LevelScheme/EXP_DATA/",getenv("GWSYS"));
fENSDFDataDir = Form("%s/DataBase/LevelScheme/ENSDF/",getenv("GWSYS"));
gSystem->mkdir(fExpDataDir.Data(),kTRUE);
gSystem->mkdir(fENSDFDataDir.Data(),kTRUE);
TSystemDirectory dir(fENSDFDataDir,fENSDFDataDir);
if(dir.GetListOfFiles() == nullptr || (dir.GetListOfFiles() != nullptr && dir.GetListOfFiles()->GetEntries()<=2) ){
TString temp = Form("%s/DataBase/LevelScheme/README",getenv("GWSYS"));
fBashColor->WarningMessage(Form("No ENSDF data found in %s, follow the procedure explained in %s to download the data from the ENSDF web site",fENSDFDataDir.Data(),temp.Data()));
}
if(gNDManager == nullptr)
gNDManager = new CXNDManager;
}
......
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