1 |
tschum |
1.1 |
{
|
2 |
|
|
// Set up FW Lite for automatic loading of CMS libraries
|
3 |
|
|
// and data formats. As you may have other user-defined setup
|
4 |
|
|
// in your rootlogon.C, the CMS setup is executed only if the CMS
|
5 |
|
|
// environment is set up.
|
6 |
|
|
//
|
7 |
|
|
TString cmsswbase = getenv("CMSSW_BASE");
|
8 |
|
|
if (cmsswbase.Length() > 0) {
|
9 |
|
|
//
|
10 |
|
|
// The CMSSW environment is defined (this is true even for FW Lite)
|
11 |
|
|
// so set up the rest.
|
12 |
|
|
//
|
13 |
|
|
cout << "Loading FW Lite setup." << endl;
|
14 |
|
|
gSystem->Load("libFWCoreFWLite.so");
|
15 |
|
|
AutoLibraryLoader::enable();
|
16 |
|
|
gSystem->Load("libDataFormatsFWLite.so");
|
17 |
|
|
gSystem->Load("libDataFormatsPatCandidates.so");
|
18 |
|
|
|
19 |
|
|
gROOT->SetStyle("Plain");
|
20 |
|
|
gStyle->SetPalette(1);
|
21 |
|
|
gStyle->SetFrameLineWidth(2);
|
22 |
|
|
gStyle->SetLineWidth(2);
|
23 |
|
|
gStyle->SetHistFillStyle(0);
|
24 |
|
|
|
25 |
|
|
}
|
26 |
|
|
}
|