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 |
|
|
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) { |
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); |