57 |
|
procds=self.dataset_to_check.split('/')[2] |
58 |
|
tier=self.dataset_to_check.split('/')[3] |
59 |
|
datasets=dbsreader.matchProcessedDatasets(primds,tier,procds) |
60 |
< |
if common.logger.debugLevel(): |
60 |
> |
if common.debugLevel: |
61 |
|
print "PrimaryDataset = ", primds |
62 |
|
print "ProcessedDataset = ", procds |
63 |
|
print "DataTier = ", tier |
82 |
|
print " Number of files: %s"%block['NumberOfFiles'] |
83 |
|
print " Number of Bytes: %s"%block['BlockSize'] |
84 |
|
print " Number of Events: %s"%block['NumberOfEvents'] |
85 |
< |
if common.logger.debugLevel(): |
85 |
> |
if common.debugLevel: |
86 |
|
print "--------- info about files --------" |
87 |
|
print " Size \t Events \t LFN \t FileStatus " |
88 |
|
files=dbsreader.listFilesInBlock(block['Name']) |
90 |
|
print "%s %s %s %s"%(file['FileSize'],file['NumberOfEvents'],file['LogicalFileName'],file['Status']) |
91 |
|
nevttot = nevttot + block['NumberOfEvents'] |
92 |
|
print "\n total events: %s in dataset: %s\n"%(nevttot,datasetpath) |
93 |
< |
if not common.logger.debugLevel(): |
93 |
> |
if not common.debugLevel: |
94 |
|
common.logger.info('You can obtain more info about files of the dataset using: crab -checkPublication -USER.dataset_to_check='+self.dataset_to_check+' -USER.dbs_url_for_publication='+self.DBSURL+' -debug') |
95 |
|
|
96 |
|
def run(self): |