Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:59:43

0001 #!/bin/bash
0002 
0003 executable=`echo $0 | sed 's/.sh/.C/'` #assume the .sh and .C file have the same name
0004 arguments=''
0005 if [ $# -ge 1 ]; then arguments=$arguments"($1" ;fi
0006 if [ $# -ge 2 ]; then arguments=$arguments",$2" ;fi
0007 if [ $# -ge 3 ]; then arguments=$arguments",$3" ;fi
0008 if [ $# -ge 4 ]; then arguments=$arguments",$4" ;fi
0009 if [ $# -ge 5 ]; then arguments=$arguments",$5" ;fi
0010 if [ $# -ge 6 ]; then arguments=$arguments",$6" ;fi
0011 if [ $# -ge 1 ]; then arguments=$arguments");" ;fi
0012 
0013 # #AutoLibraryLoader::enable();
0014 # #gSystem->Load("libDataFormatsCommon.so");
0015 # #gSystem->Load("libDataFormatsHepMCCandidate.so");
0016 # #gSystem->Load("libDataFormatsFWLite.so");
0017 
0018 
0019 root -l -b << EOF
0020   TString makeshared(gSystem->GetMakeSharedLib());
0021   makeshared.ReplaceAll("-W ", "-Wno-deprecated-declarations -Wno-deprecated -Wno-unused-local-typedefs -Wno-attributes ");
0022   makeshared.ReplaceAll("-Woverloaded-virtual ", " ");
0023   makeshared.ReplaceAll("-Wshadow ", " -std=c++0x -D__USE_XOPEN2K8 ");
0024   cout << "Compilling with the following arguments: " << makeshared << endl;
0025   gSystem->SetMakeSharedLib(makeshared);
0026   gSystem->Load("libFWCoreFWLite");
0027   FWLiteEnabler::enable()
0028   gSystem->Load("libCommonToolsTrackerMap.so");
0029   .x $executable+$arguments
0030 EOF
0031