Clean up comments in SC scripts
This commit is contained in:
@ -33,19 +33,6 @@ int main(int argc, char* argv[]) {
|
||||
jungfrauStyle();
|
||||
gStyle->SetOptFit(11);
|
||||
|
||||
/*
|
||||
if (argc != 6) {
|
||||
cout << "Correct usage:" << endl;
|
||||
cout << "arg 1: specify module number" << endl;
|
||||
cout << "arg 2: specify HG0 or G0" << endl;
|
||||
cout << "arg 3: specify data location" << endl;
|
||||
cout << "arg 4: specify pede file" << endl;
|
||||
cout << "arg 5: specify data file" << endl;
|
||||
cout << " " << endl;
|
||||
exit(1);
|
||||
}
|
||||
*/ //uncomment for SR
|
||||
|
||||
if (argc != 8) {
|
||||
cout << "Correct usage:" << endl;
|
||||
cout << "arg 1: specify module number" << endl;
|
||||
@ -57,7 +44,7 @@ int main(int argc, char* argv[]) {
|
||||
cout << "arg 7: specify storage cell number" << endl;
|
||||
cout << " " << endl;
|
||||
exit(1);
|
||||
} //uncomment for VH 210906
|
||||
}
|
||||
|
||||
string module_str = argv[1];
|
||||
string gain_str = argv[2];
|
||||
@ -70,21 +57,19 @@ int main(int argc, char* argv[]) {
|
||||
string data_loc = argv[3];
|
||||
string pede_file = argv[4];
|
||||
string data_file = argv[5];
|
||||
string anadata_loc = argv[6]; //uncomment for VH 210906
|
||||
string anadata_loc = argv[6];
|
||||
|
||||
bool save_to_afs = false;
|
||||
|
||||
int createHistoFile = 1;
|
||||
|
||||
//char histoname[128];
|
||||
//char savename[128];
|
||||
char histoname[256]; // VH 210902
|
||||
char savename[256]; // VH 210902
|
||||
char histoname[256];
|
||||
char savename[256];
|
||||
char plotfolder[256];
|
||||
char rootdatafolder[256];
|
||||
int filen = 352;
|
||||
int pedefilen = 5;
|
||||
int this_storagecell = stoi(argv[7]);
|
||||
int this_storagecell = stoi(argv[7]); // needs compiler flag -std=c++11
|
||||
|
||||
// create necessary directories with permissions drwxrwxr-x
|
||||
// data/Mxxx
|
||||
@ -102,9 +87,7 @@ int main(int argc, char* argv[]) {
|
||||
// plots/Mxxx/CuFluo/HG0
|
||||
sprintf(savename,"plots/M%s/CuFluo/HG0", 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/sls_det_storage/jungfrau_data1/jungfrau_ana_sophie/M%s_CalibAna", module_str.c_str()); //uncomment for SR
|
||||
sprintf(savename,"%s", anadata_loc.c_str()); //uncomment for VH 210906
|
||||
sprintf(savename,"%s", anadata_loc.c_str());
|
||||
mkdir(savename, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
|
||||
|
||||
if ( save_to_afs ) {
|
||||
@ -166,7 +149,7 @@ int main(int argc, char* argv[]) {
|
||||
for (int pedefilei = 0; pedefilei < pedefilen; ++pedefilei) {
|
||||
|
||||
// open pede file
|
||||
sprintf( savename, "%s/%s_%%6.6d.dat", data_loc.c_str(), pede_file.c_str() ); //VH: note, this adds a double slash in the filepath
|
||||
sprintf( savename, "%s/%s_%%6.6d.dat", data_loc.c_str(), pede_file.c_str() );
|
||||
thisfile->open( (char*)savename, pedefilei );
|
||||
|
||||
//count events in file
|
||||
@ -198,7 +181,6 @@ int main(int argc, char* argv[]) {
|
||||
|
||||
c1->cd();
|
||||
|
||||
//sprintf(savename,"/mnt/sls_det_storage/jungfrau_data1/jungfrau_ana_sophie/M%s_CalibAna/CuFluo_%s_file0to%d.root", module_str.c_str(), gain_str.c_str(), filen-1);
|
||||
sprintf(savename,"%s/CuFluo_%s_sc%d_file0to%d.root", anadata_loc.c_str(), gain_str.c_str(), this_storagecell, filen-1); //uncomment for VH 210906
|
||||
TFile* comb_file = new TFile((const char *)(savename),"READ");
|
||||
|
||||
|
Reference in New Issue
Block a user