ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/macros/setRootEnv.C
(Generate patch)

Comparing UserCode/MitAna/macros/setRootEnv.C (file contents):
Revision 1.3 by loizides, Wed Jun 11 13:26:05 2008 UTC vs.
Revision 1.7 by bendavid, Fri Mar 12 13:44:53 2010 UTC

# Line 15 | Line 15
15   #endif
16  
17   void setIncludes();
18 < void loadLibraries();
18 > void loadLibraries(const char *libpattern="libMitAna*.so");
19   void loadmylib(const char *name);
20   void loadmylib(const char *pkgname, const char *subpkgname);
21  
# Line 34 | Line 34 | void setRootEnv()
34    // customizing the MIT analysis framework things
35    setIncludes();
36    loadLibraries();
37 +  loadmylib("libMitCommonMathTools.so");
38  
39    // have a friendly welcome message
40    if (gClassTable->GetID("mithep::Particle") >= 0) {
# Line 52 | Line 53 | void setIncludes()
53    }
54  
55    gSystem->AddIncludePath("-I$CMSSW_BASE/src/");
56 +  gSystem->AddIncludePath("-I$CMSSW_RELEASE_BASE/src/");
57    gSystem->AddIncludePath("-I$CMSSW_BASE/src/MitAna/TreeMod/inc");
58    gSystem->AddIncludePath("-I$CMSSW_BASE/src/MitAna/macros");
59    gInterpreter->AddIncludePath(TString(gSystem->Getenv("CMSSW_BASE"))+"/src/");
60 <  gInterpreter->AddIncludePath(TString(gSystem->Getenv("CMSSW_BASE"))+"/src/MitAna/TreeMod/inc");
60 >  gInterpreter->AddIncludePath(TString(gSystem->Getenv("CMSSW_RELEASE_BASE"))+"/src/");
61 >  gInterpreter->AddIncludePath(TString(gSystem->Getenv("CMSSW_BASE"))+
62 >                               "/src/MitAna/TreeMod/interface");
63    gInterpreter->AddIncludePath(TString(gSystem->Getenv("CMSSW_BASE"))+"/src/MitAna/macros");
64    gROOT->SetMacroPath(TString(gROOT->GetMacroPath())
65                        +TString(gSystem->Getenv("CMSSW_BASE"))+"/src/MitAna/macros");
66   }
67  
68 < void loadLibraries()
68 > void loadLibraries(const char *libpattern)
69   {
70    TString libstr(Form("%s/lib/%s",gSystem->Getenv("CMSSW_BASE"),gSystem->Getenv("SCRAM_ARCH")));
71  
72    void *dir = gSystem->OpenDirectory(libstr.Data());
73 <  TRegexp re("libMitAna*.so", kTRUE);
73 >  TRegexp re(libpattern, kTRUE);
74    TRegexp reignore("libMitAnalysis*.so", kTRUE);
75    while (const char *direntry=gSystem->GetDirEntry(dir) ) {
76      TString sdirentry(direntry);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines