CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions | Variables
anapath Namespace Reference

Functions

def anapath
 

Variables

tuple analyzer_path = anapath()
 

Function Documentation

def anapath.anapath ( )

Definition at line 4 of file anapath.py.

References join().

4 
5 def anapath():
6  analyzer_path = []
7 
8  cmssw_src = '/'.join( [ os.environ['CMSSW_BASE'], 'src' ] )
9  pkg_pat = '/'.join([cmssw_src, '*', '*'])
10  pkg_dirs = glob.glob( pkg_pat )
11  packages = [dir for dir in pkg_dirs \
12  if os.path.isdir(dir) and \
13  not dir.endswith('CVS') ]
14  for pkg in packages:
15  ana_dir = '/'.join( [pkg, 'python/analyzers'] )
16  # if pkg.endswith('CMGTools/H2TauTau'):
17  # ana_dir = '/'.join( [pkg, 'python/proto/analyzers'] )
18  if os.path.isdir(ana_dir):
19  analyzer_path.append( ana_dir )
20  return analyzer_path
def anapath
Definition: anapath.py:4
static std::string join(char **cmd)
Definition: RemoteFile.cc:18

Variable Documentation

tuple anapath.analyzer_path = anapath()

Definition at line 21 of file anapath.py.