SC analysis with option not to write to afs (error before was me calling the wrong executable)
This commit is contained in:
@ -79,8 +79,8 @@ int main(int argc, char* argv[]) {
|
||||
char savename[256]; // VH 210902
|
||||
char plotfolder[256];
|
||||
char rootdatafolder[256];
|
||||
int filen = 1;
|
||||
int pedefilen = 2;
|
||||
int filen = 352;
|
||||
int pedefilen = 5;
|
||||
|
||||
// create necessary directories with permissions drwxrwxr-x
|
||||
// data/Mxxx
|
||||
@ -103,14 +103,12 @@ int main(int argc, char* argv[]) {
|
||||
sprintf(savename,"%s", anadata_loc.c_str()); //uncomment for VH 210906
|
||||
mkdir(savename, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
|
||||
|
||||
cout << "I am writing stuff..." << endl;
|
||||
|
||||
if ( save_to_afs ) {
|
||||
|
||||
cout << "Saving to afs." << endl;
|
||||
|
||||
snprintf( plotfolder, 256, "plots/M%s/CuFluo/%s", module_str.c_str(), gain_str.c_str() );
|
||||
snprintf( rootdatafolder, 256, "data/M%s", module_str.c_str() );
|
||||
sprintf( plotfolder, "plots/M%s/CuFluo/%s", module_str.c_str(), gain_str.c_str() );
|
||||
sprintf( rootdatafolder, "data/M%s", module_str.c_str() );
|
||||
|
||||
} else {
|
||||
|
||||
@ -132,8 +130,8 @@ int main(int argc, char* argv[]) {
|
||||
sprintf( savename,"%s/plots/CuFluo/HG0", anadata_loc.c_str() );
|
||||
mkdir(savename, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
|
||||
|
||||
snprintf( plotfolder, 256, "%s/plots/CuFluo/%s", anadata_loc.c_str(), gain_str.c_str() );
|
||||
snprintf( rootdatafolder, 256, "%s/data", anadata_loc.c_str() );
|
||||
sprintf( plotfolder, "%s/plots/CuFluo/%s", anadata_loc.c_str(), gain_str.c_str() );
|
||||
sprintf( rootdatafolder, "%s/data", anadata_loc.c_str() );
|
||||
|
||||
}
|
||||
|
||||
@ -219,7 +217,6 @@ int main(int argc, char* argv[]) {
|
||||
}
|
||||
|
||||
sprintf( savename, "%s/pixelmask_%s_M%s.png", plotfolder, gain_str.c_str(), module_str.c_str() );
|
||||
cout << savename << endl;
|
||||
pixelMaskObject->plotPixelMask( pixel_mask, savename );
|
||||
cout << "after chip mask, n masked pixels is " << pixelMaskObject->getNMasked(pixel_mask) << endl;
|
||||
|
||||
|
Reference in New Issue
Block a user