diff --git a/CMGTools/Common/.cdtproject b/CMGTools/Common/.cdtproject
deleted file mode 100644
index 404fe3e8a29c..000000000000
--- a/CMGTools/Common/.cdtproject
+++ /dev/null
@@ -1,56 +0,0 @@
-
-
-
-
-
-
--
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
--
-
-
-
-
-
-
diff --git a/CMGTools/Common/.project b/CMGTools/Common/.project
deleted file mode 100644
index 61b93205a26c..000000000000
--- a/CMGTools/Common/.project
+++ /dev/null
@@ -1,88 +0,0 @@
-
-
- Common
-
-
-
-
-
- org.python.pydev.PyDevBuilder
-
-
-
-
- org.eclipse.cdt.make.core.makeBuilder
-
-
-
- org.eclipse.cdt.make.core.enableCleanBuild
- false
-
-
- org.eclipse.cdt.make.core.append_environment
- true
-
-
- org.eclipse.cdt.make.core.stopOnError
- false
-
-
- org.eclipse.cdt.make.core.enabledIncrementalBuild
- false
-
-
- org.eclipse.cdt.make.core.build.command
- scram
-
-
- org.eclipse.cdt.make.core.build.target.inc
- all
-
-
- org.eclipse.cdt.make.core.build.arguments
- b
-
-
- org.eclipse.cdt.make.core.environment
-
-
-
- org.eclipse.cdt.make.core.useDefaultBuildCmd
- false
-
-
- org.eclipse.cdt.make.core.enableAutoBuild
- false
-
-
- org.eclipse.cdt.make.core.build.target.auto
- all
-
-
- org.eclipse.cdt.make.core.enableFullBuild
- false
-
-
- org.eclipse.cdt.make.core.build.target.clean
- clean
-
-
- org.eclipse.cdt.core.errorOutputParser
- org.eclipse.cdt.core.MakeErrorParser;org.eclipse.cdt.core.GCCErrorParser;org.eclipse.cdt.core.GASErrorParser;org.eclipse.cdt.core.GLDErrorParser;org.eclipse.cdt.core.VCErrorParser;
-
-
-
-
- org.eclipse.cdt.make.core.ScannerConfigBuilder
-
-
-
-
-
- org.eclipse.cdt.core.cnature
- org.eclipse.cdt.make.core.makeNature
- org.eclipse.cdt.make.core.ScannerConfigNature
- org.eclipse.cdt.core.ccnature
- org.python.pydev.pythonNature
-
-
diff --git a/CMGTools/Common/.pydevproject b/CMGTools/Common/.pydevproject
deleted file mode 100644
index f8c0075c7652..000000000000
--- a/CMGTools/Common/.pydevproject
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-Default
-python 2.6
-
diff --git a/CMGTools/Common/BuildFile.xml b/CMGTools/Common/BuildFile.xml
deleted file mode 100644
index fba1ce777221..000000000000
--- a/CMGTools/Common/BuildFile.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CMGTools/Common/bin/installCMGTools.py b/CMGTools/Common/bin/installCMGTools.py
deleted file mode 100755
index d83f417abd07..000000000000
--- a/CMGTools/Common/bin/installCMGTools.py
+++ /dev/null
@@ -1,172 +0,0 @@
-#!/usr/bin/env python
-
-import sys
-import os
-from optparse import OptionParser
-import subprocess
-import urllib
-
-
-ENABLE=True
-
-def isInputDict(seq):
- '''Duck-typing a sequence to see if its a dictionary'''
- try:
- seq.keys()
- return True
- except:
- return False
-
-
-def getCPUCount():
-
- result = 1
- try:
- import multiprocessing
- result = multiprocessing.cpu_count()
- except (ImportError, NotImplementedError):
- import platform
- if platform.node().lower().startswith('lxplus'):
- result = 4
- pass
-
- return result
-
-class InstallCMGTools(object):
- """
- A class to make the installation of CMGTools easier
- @author Luke Heo - seong.gu.heo@cern.ch
- """
-
- def setReleaseInfo(self, version, recipe=None):
-
- try:
- repo_url = "http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi"
- file_name_base = version
- if recipe:
- file_name_base = "%s_%s" % (file_name_base, recipe)
- full_url = '%s/UserCode/CMG/CMGTools/Common/python/release_info/%s.py?view=co' % \
- (repo_url, file_name_base)
- release_info = urllib.urlopen(full_url)
- content = release_info.read()
- if content.find('404 Not Found') != -1:
- raise Exception("The file '%s' does not exist or could not be accessed" % full_url)
- if content is not None and content:
- self.dic_list = eval(content)
- except Exception, e:
- message = "Release info can not be found for version '%s' " \
- "(recipe: %s) - the error was '%s'" % \
- (version, recipe, str(e))
- raise Exception(message)
-
- def __init__(self):
- self.options, self.args = self.parseOptions()
-
- self.setReleaseInfo(self.options.cmssw_version, self.options.recipe)
-
- pwd = os.getcwd()
- try:
- self.init()
- finally:
- os.chdir(pwd)
-
- if self.options.build:
- try:
- src = os.path.join(self.options.installation_directory,self.options.cmssw_version,'src')
- os.chdir(src)
- subprocess.call(['scram', 'b', '-j', str(getCPUCount())])
- finally:
- os.chdir(pwd)
-
- def parseOptions(self):
- """ Accept arguments"""
- parser = OptionParser()
- parser.add_option("-d", "--dir", type="string", dest="installation_directory", default='CMGTools',
- help="write a installation directory, e.g. '--dir ~/scratch0/CMGTools'")
- parser.add_option("-r", "--release",type="string", dest="cmssw_version", default="${CMSSW_VERSION}",
- help="write a CMSSW version, e.g. '--release=${CMSSW_VERSION}'")
- parser.add_option("", "--recipe", type="string",
- dest="recipe", default=None,
- help="Recipe to follow (useful for 'experimental' releases)")
- parser.add_option("-b", "--build", action="store_true", dest="build", default=False,
- help="Build the packages after checking out")
- options, args = parser.parse_args()
-
- #expand environment variables etc
- options.cmssw_version = os.path.expandvars(options.cmssw_version)
- options.installation_directory = os.path.abspath(os.path.expanduser(options.installation_directory))
-
- return options, args
-
- def init(self):
- """Checkout CMGTools"""
-
- self.installCMSSW()
-
- pwd = os.getcwd()
- try:
- src = os.path.join(self.options.installation_directory,self.options.cmssw_version,'src')
- os.chdir(src)
- self.checkoutCMGTools()
- finally:
- os.chdir(pwd)
-
-
- def installCMSSW(self):
- """Install CMSSW"""
- if not os.path.exists(self.options.installation_directory):
- os.mkdir(self.options.installation_directory)
-
- try:
- os.chdir("%s" % self.options.installation_directory)
- finally:
- subprocess.call(['scram', 'project', 'CMSSW', '%s' % self.options.cmssw_version])
-
-
- def checkout(self, pack, cvsmod, tag, doit = True):
- '''Check out one package.'''
-
- tagcmd = ' '.join( ['-r', tag] )
- if tag.lower() == 'head':
- tagcmd = ''
-
- dircmd = ''
- if pack != cvsmod:
- dircmd = ' '.join( ['-d', pack] )
-
- cmd = ' '.join( ['cvs co', tagcmd, dircmd, cvsmod] )
- print cmd
- if doit:
- os.system(cmd)
-
-
- def checkoutCMGTools(self):
- """Checkout CMGTools"""
- if not isInputDict( self.dic_list):
- for pack, cvsmod, tag in self.dic_list:
- self.checkout( pack, cvsmod, tag, doit=ENABLE)
- else:
- # the following is kept for backward compatibility
- for key in self.dic_list.keys():
- cmd = 'cvs checkout '
- #add a tag if needed
- if not self.dic_list[key][0].lower() == 'head':
- cmd += '-r %s ' % self.dic_list[key][0]
- #specify a target directory if needed
- if self.dic_list[key][1] and key != self.dic_list[key][1]:
- cmd += '-d %s ' % self.dic_list[key][1]
- cmd = '%s %s' % (cmd,key)
- print cmd
- os.system(cmd)
-
-
-######################################################################
-
-if __name__ == '__main__':
-
- try:
- m = InstallCMGTools()
- except Exception, e:
- print "ERROR %s" % str(e)
-
-######################################################################
diff --git a/CMGTools/Common/interface/AnalysisHistograms.h b/CMGTools/Common/interface/AnalysisHistograms.h
deleted file mode 100644
index 8da59bb9e8ed..000000000000
--- a/CMGTools/Common/interface/AnalysisHistograms.h
+++ /dev/null
@@ -1,134 +0,0 @@
-#ifndef CMGTools_Common_AnalysisHistograms_h
-#define CMGTools_Common_AnalysisHistograms_h
-
-// Base class for histogram managing.
-//
-// Original Author: Artur Kalinowski
-// Created: Tue Oct 24 15:06:12 CEST 2006
-// $Id: AnalysisHistograms.h,v 1.1 2010/11/11 14:09:03 wreece Exp $
-//
-//
-#include
-#include
-#include