Skip to content

Commit

Permalink
Rename AutoLibraryLoader
Browse files Browse the repository at this point in the history
  • Loading branch information
wmtan committed May 29, 2015
1 parent ec739a2 commit 1cba522
Show file tree
Hide file tree
Showing 162 changed files with 366 additions and 310 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ void runExtendedOfflineValidationPlots()
{
// load framework lite just to find the CMSSW libs...
gSystem->Load("libFWCoreFWLite");
AutoLibraryLoader::enable();
FWLiteEnabler::enable();
//compile the makro
gROOT->ProcessLine(".L PlotAlignmentValidation.C++");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@
{
// load framework lite just to find the CMSSW libs...
gSystem->Load("libFWCoreFWLite");
AutoLibraryLoader::enable();
FWLiteEnabler::enable();
//compile the makro
gROOT->ProcessLine(".L .oO[CMSSW_BASE]Oo./src/Alignment/OfflineValidation/macros/PlotAlignmentValidation.C++");
// gROOT->ProcessLine(".L ./PlotAlignmentValidation.C++");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@
{
// load framework lite just to find the CMSSW libs...
gSystem->Load("libFWCoreFWLite");
AutoLibraryLoader::enable();
FWLiteEnabler::enable();
//compile the macro
gROOT->ProcessLine(".L merge_TrackerOfflineValidation.C++");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ you can get by these lines (add them to your rootlogon.C):
if (gSystem->Getenv("CMSSW_RELEASE_BASE") != '\0') {
printf("\nLoading CMSSW FWLite...\n");
gSystem->Load("libFWCoreFWLite");
AutoLibraryLoader::enable();
FWLiteEnabler::enable();
}
*/
Expand Down
2 changes: 1 addition & 1 deletion Alignment/SurveyAnalysis/macros/rootlogon.C
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
gSystem->Load("libDataFormatsSiPixelDetId.so");
gSystem->Load("libDataFormatsSiStripDetId.so");
gSystem->Load("libFWCoreFWLite.so");
AutoLibraryLoader::enable();
FWLiteEnabler::enable();

gStyle->SetCanvasBorderMode(0);
gStyle->SetPadBorderMode(0);
Expand Down
2 changes: 1 addition & 1 deletion CalibMuon/RPCCalibration/test/cmsbrowse
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ fi
cat <<EOF >| /tmp/cmsbrowse_tmp.C
{
gSystem->Load("$CMSSW_RELEASE_BASE/lib/$SCRAM_ARCH/libFWCoreFWLite.so");
AutoLibraryLoader::enable();
FWLiteEnabler::enable();
hfile = new TFile("${file}","READONLY");
new TBrowser("CMS Browser",hfile);
}
Expand Down
2 changes: 1 addition & 1 deletion Calibration/EcalAlCaRecoProducers/test/nPU_mc.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#print_options.set_float_precision(4)
gSystem.Load("libFWCoreFWLite.so")
AutoLibraryLoader.enable()
FWLiteEnabler::enable()

#import EcalDetId
#from DataFormats.EcalDetId import *
Expand Down
2 changes: 1 addition & 1 deletion Calibration/EcalAlCaRecoProducers/test/reRecoValidation.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#print_options.set_float_precision(4)
gSystem.Load("libFWCoreFWLite.so")
AutoLibraryLoader.enable()
FWLiteEnabler::enable()

#import EcalDetId
#from DataFormats.EcalDetId import *
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#print_options.set_float_precision(4)
gSystem.Load("libFWCoreFWLite.so")
AutoLibraryLoader.enable()
FWLiteEnabler::enable()

#import EcalDetId
#from DataFormats.EcalDetId import *
Expand Down
2 changes: 1 addition & 1 deletion CommonTools/CandAlgos/test/rootlogon.C
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
gSystem->Load("libFWCoreFWLite");
AutoLibraryLoader::enable();
FWLiteEnabler::enable();
}
2 changes: 1 addition & 1 deletion CommonTools/ParticleFlow/test/Macros/isolation.C
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


gSystem->Load("libFWCoreFWLite.so");
AutoLibraryLoader::enable();
FWLiteEnabler::enable();
TFile f("testPFPAT.root");

TTree* Events = 0;
Expand Down
2 changes: 1 addition & 1 deletion CommonTools/ParticleFlow/test/Macros/plotVertex.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

def loadFWLite():
gSystem.Load("libFWCoreFWLite")
gROOT.ProcessLine('AutoLibraryLoader::enable();')
gROOT.ProcessLine('FWLiteEnabler::enable();')
gSystem.Load("libFWCoreFWLite")


Expand Down
2 changes: 1 addition & 1 deletion CommonTools/ParticleFlow/test/Macros/ptJets.C
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


gSystem->Load("libFWCoreFWLite.so");
AutoLibraryLoader::enable();
FWLiteEnabler::enable();
TFile f("patTuple_PF2PAT.root");

TTree *Events = 0;
Expand Down
2 changes: 1 addition & 1 deletion CommonTools/ParticleFlow/test/Macros/ptMus.C
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


gSystem->Load("libFWCoreFWLite.so");
AutoLibraryLoader::enable();
FWLiteEnabler::enable();
TFile f("patTuple_PF2PAT.root");

TTree* Events = 0;
Expand Down
2 changes: 1 addition & 1 deletion CommonTools/ParticleFlow/test/Macros/rootlogon.C
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ void rootlogon() {

void loadFWLite() {
gSystem->Load("libFWCoreFWLite.so");
AutoLibraryLoader::enable();
FWLiteEnabler::enable();
}

TTree* getEventsrootlogon() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{

gSystem->Load("libFWCoreFWLite.so");
AutoLibraryLoader::enable();
FWLiteEnabler::enable();

TFile fDisabled("tpDisabled.root");
TTree *tDisabled = (TTree*) fDisabled.Get("Events");
Expand Down
2 changes: 1 addition & 1 deletion CommonTools/RecoAlgos/test/rootlogon.C
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
gSystem->Load("libFWCoreFWLite");
AutoLibraryLoader::enable();
FWLiteEnabler::enable();
}
2 changes: 1 addition & 1 deletion CondFormats/JetMETObjects/test/TestCorrections.C
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ void TestCorrections(double rawPt, double rawEta, double rawPhi, double rawE, do
{
gROOT->ProcessLine("#include <vector>");
gSystem->Load("libFWCoreFWLite.so");
AutoLibraryLoader::enable();
FWLiteEnabler::enable();
////////////// Construct the JetCorrectorParameters objects ///////////////////////
string L1Tag = "../data/Jec11V0_L1Offset_AK5JPT.txt";
string L1JPTTag = "../data/Jec11V0_L1JPTOffset_AK5JPT.txt";
Expand Down
2 changes: 1 addition & 1 deletion CondTools/Utilities/test/rootlogon.C
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
gSystem->Load("libtestCondToolsUtilities");
gSystem->Load("libCondFormatsEcalObjects");
gSystem->Load("libCondFormatsCalibration");
AutoLibraryLoader::enable();
FWLiteEnabler::enable();
}
2 changes: 1 addition & 1 deletion Configuration/EventContent/test/rootlogon.C
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
gSystem->Load("libFWCoreFWLite");
AutoLibraryLoader::enable();
FWLiteEnabler::enable();
}
4 changes: 2 additions & 2 deletions DQM/SiStripHistoricInfoClient/bin/SiStripHDQMInspector.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <string>
#include <vector>

#include "FWCore/FWLite/interface/AutoLibraryLoader.h"
#include "FWCore/FWLite/interface/FWLiteEnabler.h"
#include <TROOT.h>
#include <TFile.h>
#include <TSystem.h>
Expand Down Expand Up @@ -160,7 +160,7 @@ void SiStripHDQMInspector( const string & dbName, const string & tagName, const
int main (int argc, char* argv[])
{
gSystem->Load( "libFWCoreFWLite" );
AutoLibraryLoader::enable();
FWLiteEnabler::enable();

if (argc != 6 && argc != 7) {
std::cerr << "Usage: " << argv[0] << " [Database] [TagName] [Password] [WhiteListFile] [NRuns] " << std::endl;
Expand Down
4 changes: 2 additions & 2 deletions DQM/SiStripHistoricInfoClient/bin/TrackingHDQMInspector.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "DQMServices/Diagnostic/interface/DQMHistoryCreateTrend.h"
#include <string>

#include "FWCore/FWLite/interface/AutoLibraryLoader.h"
#include "FWCore/FWLite/interface/FWLiteEnabler.h"
#include <TROOT.h>
#include <TFile.h>
#include <TSystem.h>
Expand Down Expand Up @@ -209,7 +209,7 @@ void TrackingHDQMInspector( const string & dbName, const string & tagName, const
int main (int argc, char* argv[])
{
gSystem->Load( "libFWCoreFWLite" );
AutoLibraryLoader::enable();
FWLiteEnabler::enable();

if (argc != 6 && argc != 7) {
std::cerr << "Usage: " << argv[0] << " [Database] [TagName] [Password] [WhiteListFile] [NRuns] " << std::endl;
Expand Down
4 changes: 2 additions & 2 deletions DQM/SiStripHistoricInfoClient/bin/WebTrackingHDQMInspector.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include <sstream>
#include <fstream>
#include <iostream>
#include "FWCore/FWLite/interface/AutoLibraryLoader.h"
#include "FWCore/FWLite/interface/FWLiteEnabler.h"
#include <TROOT.h>
#include <TFile.h>
#include <TSystem.h>
Expand Down Expand Up @@ -240,7 +240,7 @@ int main (int argc, char* argv[])
{
// load framework libraries
gSystem->Load( "libFWCoreFWLite" );
AutoLibraryLoader::enable();
FWLiteEnabler::enable();

if (argc < 9) {
std::cerr << argv[0] << " [Database] [TagName] [Password] [WhiteListFile] [SelectedTrends] [FirstRun] [LastRun] [CondList]" << std::endl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ gSystem->Load("libFWCoreFWLite");
gSystem->Load("libtestSiStripHistoricDQM");
gSystem->Load("libCondFormatsSiStripObjects");

AutoLibraryLoader::enable();
FWLiteEnabler::enable();
}
2 changes: 1 addition & 1 deletion DQMOffline/CalibCalo/test/compare.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def srcpath(fldr):
runcmd2(environment,"./compare.py",tuple(sys.argv[1:-1]))#works only if compare.py is located in the pwd
else:
gSystem.Load("libFWCoreFWLite.so")
AutoLibraryLoader.enable()
FWLiteEnabler::enable()
outfile=TFile(root_out,"recreate")
histo=[]
canvas=[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
int const NRuns = 2;

gSystem->Load("libFWCoreFWLite");
AutoLibraryLoader::enable();
FWLiteEnabler::enable();



Expand Down
2 changes: 1 addition & 1 deletion DQMServices/Diagnostic/test/dummyTest/test_Inspector.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

gSystem->Load("libFWCoreFWLite");

AutoLibraryLoader::enable();
FWLiteEnabler::enable();

gROOT->Reset();

Expand Down
2 changes: 1 addition & 1 deletion DQMServices/Diagnostic/test/genericTest/test_Inspector.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

gSystem->Load("libFWCoreFWLite");

AutoLibraryLoader::enable();
FWLiteEnabler::enable();

gROOT->Reset();

Expand Down
2 changes: 1 addition & 1 deletion DataFormats/FWLite/python/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


ROOT.gSystem.Load("libFWCoreFWLite")
ROOT.AutoLibraryLoader.enable()
ROOT.FWLiteEnabler.enable()

# Whether warn() should print anythingg
quietWarn = False
Expand Down
2 changes: 1 addition & 1 deletion DataFormats/FWLite/test/chainevent_looping_cint.C
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class loadFWLite {
public:
loadFWLite() {
gSystem->Load("libFWCoreFWLite");
AutoLibraryLoader::enable();
FWLiteEnabler::enable();
}
};

Expand Down
2 changes: 1 addition & 1 deletion DataFormats/FWLite/test/event_looping_cint.C
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class loadFWLite {
public:
loadFWLite() {
gSystem->Load("libFWCoreFWLite");
AutoLibraryLoader::enable();
FWLiteEnabler::enable();
}
};

Expand Down
2 changes: 1 addition & 1 deletion DataFormats/FWLite/test/productid_cint.C
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class loadFWLite {
public:
loadFWLite() {
gSystem->Load("libFWCoreFWLite");
AutoLibraryLoader::enable();
FWLiteEnabler::enable();
}
};

Expand Down
2 changes: 1 addition & 1 deletion DataFormats/FWLite/test/runlumi_looping_cint.C
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class loadFWLite {
public:
loadFWLite() {
gSystem->Load("libFWCoreFWLite");
AutoLibraryLoader::enable();
FWLiteEnabler::enable();
}
};

Expand Down
4 changes: 2 additions & 2 deletions DataFormats/FWLite/test/test.cppunit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Test program for edm::Ref use in ROOT.
#include <string>
#include <vector>
#include <cppunit/extensions/HelperMacros.h>
#include "FWCore/FWLite/interface/AutoLibraryLoader.h"
#include "FWCore/FWLite/interface/FWLiteEnabler.h"
#include "TFile.h"
#include "TSystem.h"
#include "DataFormats/TestObjects/interface/OtherThingCollection.h"
Expand Down Expand Up @@ -56,7 +56,7 @@ class testRefInROOT: public CppUnit::TestFixture
testRefInROOT() { }
void setUp() {
if(!sWasRun_) {
AutoLibraryLoader::enable();
FWLiteEnabler::enable();
sWasRun_ = true;
}
tmpdir = "tmp/";
Expand Down
2 changes: 1 addition & 1 deletion DataFormats/FWLite/test/triggerResultsByName_cint.C
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class loadFWLite {
public:
loadFWLite() {
gSystem->Load("libFWCoreFWLite");
AutoLibraryLoader::enable();
FWLiteEnabler::enable();
}
};

Expand Down
2 changes: 1 addition & 1 deletion DataFormats/FWLite/test/triggerResultsByName_multi_cint.C
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class loadFWLite {
public:
loadFWLite() {
gSystem->Load("libFWCoreFWLite");
AutoLibraryLoader::enable();
FWLiteEnabler::enable();
}
};

Expand Down
2 changes: 1 addition & 1 deletion DataFormats/FWLite/test/triggernames_cint.C
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class loadFWLite {
public:
loadFWLite() {
gSystem->Load("libFWCoreFWLite");
AutoLibraryLoader::enable();
FWLiteEnabler::enable();
}
};

Expand Down
2 changes: 1 addition & 1 deletion DataFormats/FWLite/test/triggernames_multi_cint.C
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class loadFWLite {
public:
loadFWLite() {
gSystem->Load("libFWCoreFWLite");
AutoLibraryLoader::enable();
FWLiteEnabler::enable();
}
};

Expand Down
2 changes: 1 addition & 1 deletion DataFormats/FWLite/test/vector_int_cint.C
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class loadFWLite {
public:
loadFWLite() {
gSystem->Load("libFWCoreFWLite");
AutoLibraryLoader::enable();
FWLiteEnabler::enable();
}
};

Expand Down
2 changes: 1 addition & 1 deletion DataFormats/ParticleFlowReco/test/init.C
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
// library, which contains the ROOT interface
gSystem->Load("libFWCoreFWLite.so");
gSystem->Load("libDataFormatsParticleFlowReco.so");
AutoLibraryLoader::enable();
FWLiteEnabler::enable();

}
2 changes: 1 addition & 1 deletion ElectroWeakAnalysis/ZMuMu/bin/zChi2Fit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include "PhysicsTools/Utilities/interface/rootPlot.h"
#include "PhysicsTools/Utilities/interface/Expression.h"
#include "PhysicsTools/Utilities/interface/HistoPdf.h"
#include "FWCore/FWLite/interface/AutoLibraryLoader.h"
#include "FWCore/FWLite/interface/FWLiteEnabler.h"
#include "TROOT.h"
#include "TSystem.h"
#include "TH1.h"
Expand Down
2 changes: 1 addition & 1 deletion ElectroWeakAnalysis/ZMuMu/bin/zFitToyMc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "PhysicsTools/Utilities/interface/rootPlot.h"
#include "PhysicsTools/Utilities/interface/Expression.h"
#include "PhysicsTools/Utilities/interface/HistoPdf.h"
#include "FWCore/FWLite/interface/AutoLibraryLoader.h"
#include "FWCore/FWLite/interface/FWLiteEnabler.h"
#include "TROOT.h"
#include "TSystem.h"
#include "TH1.h"
Expand Down
Loading

0 comments on commit 1cba522

Please sign in to comment.