def buildListOfBadFiles(self):
        '''fills the list of bad files from the IntegrityCheck log.

        When the integrity check file is not available,
        files are considered as good.'''
        mask = "IntegrityCheck"
        #file_mask = castortools.matchingFiles(self.castorDir, '^%s_.*\.txt$' % mask)
        #if not file_mask:
           #os.system("/afs/cern.ch/user/a/anantoni/CMSSW_5_3_3_patch3/src/CMGTools/Production/scripts/edmIntegrityCheck.py " + self.name + " -u " + self.user )
           
        self.bad_files = {}
        self.good_files = []
        # import pdb; pdb.set_trace()

        file_mask = castortools.matchingFiles(self.castorDir, '^%s_.*\.txt$' % mask)
Exemple #2
0
    def buildListOfBadFiles(self):
        '''fills the list of bad files from the IntegrityCheck log.

        When the integrity check file is not available,
        files are considered as good.'''
        mask = "IntegrityCheck"
        #file_mask = castortools.matchingFiles(self.castorDir, '^%s_.*\.txt$' % mask)
        #if not file_mask:
        #os.system("/afs/cern.ch/user/a/anantoni/CMSSW_5_3_3_patch3/src/CMGTools/Production/scripts/edmIntegrityCheck.py " + self.name + " -u " + self.user )

        self.bad_files = {}
        self.good_files = []
        # import pdb; pdb.set_trace()

        file_mask = castortools.matchingFiles(self.castorDir,
                                              '^%s_.*\.txt$' % mask)
Exemple #3
0
 def buildListOfFiles(self, pattern='.*root'):
     '''fills list of files, taking all root files matching the pattern in the castor dir'''
     self.files = castortools.matchingFiles(self.castorDir, pattern)
     if len(self.files) == 0:
         raise ValueError(' '.join(
             ['No file matching', pattern, 'in', self.castorDir]))
 def buildListOfFiles(self, pattern='.*root'):
     '''fills list of files, taking all root files matching the pattern in the castor dir'''
     self.files = castortools.matchingFiles( self.castorDir, pattern )
     if len(self.files)==0:
         raise ValueError(' '.join( ['No file matching',
                                     pattern, 'in', self.castorDir] ))