62 |
|
|
63 |
|
bool delete_any_cached_scans() { |
64 |
|
//This should only be called via CRAB |
65 |
+ |
char hostname[1023]; |
66 |
|
string completehostname=GetCompleteHostname(); |
67 |
< |
if((Contains(completehostname,"t3ui")||Contains(completehostname,"t3wn"))&&(Contains(completehostname,"psi.ch"))) return false; |
67 |
> |
gethostname(hostname,1023); |
68 |
> |
if((Contains(hostname,"t3ui")||Contains(hostname,"t3wn"))) return false; |
69 |
|
else { |
70 |
|
vector<string> all_files; |
71 |
|
char currentpath[1024]; |
93 |
|
|
94 |
|
dout << "Going to load file with Xzone=" << a << " and Yzone=" << b << endl; |
95 |
|
stringstream filetoload; |
96 |
< |
|
96 |
> |
char hostname[1023]; |
97 |
|
string completehostname=GetCompleteHostname(); |
98 |
< |
if((Contains(completehostname,"t3ui")||Contains(completehostname,"t3wn"))&&(Contains(completehostname,"psi.ch"))) { // local case |
98 |
> |
gethostname(hostname,1023); |
99 |
> |
|
100 |
> |
if((Contains(hostname,"t3ui")||Contains(hostname,"t3wn"))) { // local case |
101 |
|
filetoload << "/shome/buchmann/ntuples/"<<PlottingSetup::ScanSampleDirectory; |
102 |
|
if(ismSUGRA) filetoload << "/mSUGRA_clean_splitup_" << any2string(a) << "_" << any2string(b) << ".root"; |
103 |
|
else filetoload << "/SMS_clean_splitup_" << any2string(a) << "_" << any2string(b) << ".root"; |
117 |
|
else { |
118 |
|
write_info(__FUNCTION__,"Hello, CRAB! Might need to load files ..."); |
119 |
|
stringstream copyfile; |
120 |
< |
copyfile << "lcg-cp -b -T srmv2 srm://storage01.lcg.cscs.ch:8443/srm/managerv2?SFN=/pnfs/lcg.cscs.ch/cms/trivcat/store/user/buchmann/bussola/" << ScanSampleDirectory; |
120 |
> |
copyfile << "lcg-cp -b -T srmv2 srm://storage01.lcg.cscs.ch:8443/srm/managerv2?SFN=/pnfs/lcg.cscs.ch/cms/trivcat/store/user/buchmann/bussola/" << PlottingSetup::ScanSampleDirectory; |
121 |
|
if(ismSUGRA) copyfile << "/mSUGRA_clean_splitup_" << any2string(a) << "_" << any2string(b) << ".root " << "mSUGRA_clean_splitup_" << any2string(a) << "_" << any2string(b) << ".root "; |
122 |
|
else copyfile << "/SMS_clean_splitup_" << any2string(a) << "_" << any2string(b) << ".root " << "SMS_clean_splitup_" << any2string(a) << "_" << any2string(b) << ".root "; |
123 |
|
stringstream newfilename; |