ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/cbrown/AnalysisFramework/Plotting/Modules/SUSYScan.C
(Generate patch)

Comparing UserCode/cbrown/AnalysisFramework/Plotting/Modules/SUSYScan.C (file contents):
Revision 1.56 by buchmann, Wed Nov 9 12:13:46 2011 UTC vs.
Revision 1.57 by buchmann, Thu Nov 10 17:09:32 2011 UTC

# Line 62 | Line 62 | void set_SUSY_style() {
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];
# Line 91 | Line 93 | void load_scan_sample(int a, int b, int
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";
# Line 113 | Line 117 | void load_scan_sample(int a, int b, int
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;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines