CMS 3D CMS Logo

Public Member Functions

DiscoverDQMFiles::DiscoverDQMFiles Class Reference

List of all members.

Public Member Functions

def filesList
def recursive_file_gen

Detailed Description

Definition at line 3 of file DiscoverDQMFiles.py.


Member Function Documentation

def DiscoverDQMFiles::DiscoverDQMFiles::filesList (   self,
  sourceDir,
  type = "" 
)

Definition at line 10 of file DiscoverDQMFiles.py.

00011                                              :
00012         fullList = list(self.recursive_file_gen(sourceDir))
00013         reducedList = list()
00014         for file in fullList:
00015             if file.endswith(".root") and (file.find(type) != -1):
00016                 # print "file passing", file
00017                 reducedList.append(file)
00018         return reducedList
def DiscoverDQMFiles::DiscoverDQMFiles::recursive_file_gen (   self,
  mydir 
)

Definition at line 5 of file DiscoverDQMFiles.py.

00006                                        :
00007         for root, dirs, files in os.walk(mydir):
00008             for file in files:
00009                 yield os.path.join(root, file)