ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/tschum/rootlogon.C
Revision: 1.1.1.1 (vendor branch)
Committed: Wed Nov 11 15:34:20 2009 UTC (15 years, 5 months ago) by tschum
Content type: text/plain
Branch: FWlite_Analysis, MAIN
CVS Tags: START, HEAD
Changes since 1.1: +0 -0 lines
Log Message:
plotting tool ---first commit---

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     gROOT->SetStyle("Plain");
20     gStyle->SetPalette(1);
21     gStyle->SetFrameLineWidth(2);
22     gStyle->SetLineWidth(2);
23     gStyle->SetHistFillStyle(0);
24    
25     }
26     }