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.54 by buchmann, Tue Nov 8 08:45:29 2011 UTC vs.
Revision 1.55 by buchmann, Wed Nov 9 10:56:59 2011 UTC

# Line 86 | Line 86 | bool initialized_t2=false;
86   int srmcpretries=0;
87  
88   void load_scan_sample(int a, int b, int &scanfileindex,bool ismSUGRA) {
89 +
90 + // There is no need to define your sample here. That is done in Setup.C where you define the loading directory!
91 +
92    dout << "Going to load file with Xzone=" << a << " and  Yzone=" << b << endl;
93    stringstream filetoload;
94    
95    string completehostname=GetCompleteHostname();
96    if((Contains(completehostname,"t3ui")||Contains(completehostname,"t3wn"))&&(Contains(completehostname,"psi.ch"))) { // local case
97 <    filetoload << "/shome/buchmann/ntuples/";
98 <    if(ismSUGRA) filetoload << "mSUGRA/mSUGRA_clean_splitup_" << any2string(a) << "_" << any2string(b) << ".root";
99 <    else filetoload << "SMS_T5zzl/SMS_clean_splitup_" << any2string(a) << "_" << any2string(b) << ".root";
97 >    filetoload << "/shome/buchmann/ntuples/"<<PlottingSetup::ScanSampleDirectory;
98 >    if(ismSUGRA) filetoload << "/mSUGRA_clean_splitup_" << any2string(a) << "_" << any2string(b) << ".root";
99 >    else filetoload << "/SMS_clean_splitup_" << any2string(a) << "_" << any2string(b) << ".root";
100      if(!Contains(((scansample.collection)[(scansample.collection).size()-1]).filename,"_"+any2string(a)+"_"+any2string(b))) {
101          dout << "The last sample is NOT the same one as the current one, possibly popping off last one and adding the new one." << endl;
102          if((scansample.collection).size()>1) {
# Line 110 | Line 113 | void load_scan_sample(int a, int b, int
113    else {
114      write_info(__FUNCTION__,"Hello, CRAB! Might need to load files ...");
115      stringstream copyfile;
116 <    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/";
117 <    if(ismSUGRA) copyfile << "mSUGRA/mSUGRA_clean_splitup_" << any2string(a) << "_" << any2string(b) << ".root " << "mSUGRA_clean_splitup_" << any2string(a) << "_" << any2string(b) << ".root ";
118 <    else copyfile << "SMS/SMS_clean_splitup_" << any2string(a) << "_" << any2string(b) << ".root " << "SMS_clean_splitup_" << any2string(a) << "_" << any2string(b) << ".root ";
116 >    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;
117 >    if(ismSUGRA) copyfile << "/mSUGRA_clean_splitup_" << any2string(a) << "_" << any2string(b) << ".root " << "mSUGRA_clean_splitup_" << any2string(a) << "_" << any2string(b) << ".root ";
118 >    else copyfile << "/SMS_clean_splitup_" << any2string(a) << "_" << any2string(b) << ".root " << "SMS_clean_splitup_" << any2string(a) << "_" << any2string(b) << ".root ";
119      stringstream newfilename;
120      if(ismSUGRA) newfilename << "mSUGRA_clean_splitup_" << any2string(a) << "_" << any2string(b) << ".root";
121      else newfilename << "SMS_clean_splitup_" << any2string(a) << "_" << any2string(b) << ".root";

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines