Make directories automatically and calibrated five modules.
This commit is contained in:
@@ -13,6 +13,8 @@
|
||||
#include "TLegend.h"
|
||||
#include "TPaveText.h"
|
||||
|
||||
#include <sys/stat.h>
|
||||
|
||||
double checkRangeMaxForAmplifierPlateau(double range_max) {
|
||||
|
||||
// check that the range maximum is no more than 6.4 V
|
||||
@@ -59,6 +61,20 @@ int main(int argc, char* argv[]) {
|
||||
char savename[128];
|
||||
char filename[128];
|
||||
|
||||
// create necessary directories with permissions drwxrwxr-x
|
||||
// data/Mxxx
|
||||
sprintf(savename,"data/M%s", module_str.c_str());
|
||||
mkdir(savename, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
|
||||
// plots/Mxxx
|
||||
sprintf(savename,"plots/M%s", module_str.c_str());
|
||||
mkdir(savename, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
|
||||
// plots/Mxxx/BackplanePulsing
|
||||
sprintf(savename,"plots/M%s/BackplanePulsing", module_str.c_str());
|
||||
mkdir(savename, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
|
||||
// /mnt/pcmoench_jungfrau_data/jungfrau_ana_sophie/Mxxx_CalibAna
|
||||
sprintf(savename,"/mnt/pcmoench_jungfrau_data/jungfrau_ana_sophie/M%s_CalibAna", module_str.c_str());
|
||||
mkdir(savename, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
|
||||
|
||||
double xs[220];
|
||||
for (int i = 0; i < 100; i++) {
|
||||
xs[i] = (i+1)*10.;
|
||||
|
||||
Reference in New Issue
Block a user