ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/tschum/FWlite_Analysis/rootlogon.C
Revision: 1.2
Committed: Fri Nov 13 15:41:42 2009 UTC (15 years, 6 months ago) by tschum
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +3 -1 lines
Log Message:
enabled LogY

File Contents

# User Rev Content
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 tschum 1.2
20     }
21    
22 tschum 1.1 gROOT->SetStyle("Plain");
23     gStyle->SetPalette(1);
24     gStyle->SetFrameLineWidth(2);
25     gStyle->SetLineWidth(2);
26     gStyle->SetHistFillStyle(0);
27    
28     }