CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_0/src/DQMOffline/EGamma/scripts/electronDataDiscovery.py

Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 
00003 import os, sys
00004 if len(sys.argv) > 1:
00005   os.environ['DD_SOURCE'] = sys.argv[1]
00006 
00007 import DQMOffline.EGamma.electronDataDiscovery as dd
00008 
00009 if os.environ['DD_TIER_SECONDARY'] == "":
00010   files = dd.search()
00011   print "dataset has", len(files), "files:"
00012   for file in files:
00013     print file
00014 else:
00015   files = dd.search()
00016   print "dataset has", len(files), "primary files:"
00017   for file in files:
00018     print file
00019   files = dd.search2()
00020   print "dataset has", len(files), "secondary files:"
00021   for file in files:
00022     print file
00023 
00024         
00025         
00026