CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
electronDbsDiscovery.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 
3 import os, sys
4 if len(sys.argv) > 1:
5  os.environ['DBS_STRATEGY'] = sys.argv[1]
6 
7 import DQMOffline.EGamma.electronDbsDiscovery as dbs
8 
9 if os.environ['DBS_TIER_SECONDARY'] == "":
10  files = dbs.search()
11  print "dataset has", len(files), "files:"
12  for file in files:
13  print file
14 else:
15  files = dbs.search()
16  print "dataset has", len(files), "primary files:"
17  for file in files:
18  print file
19  files = dbs.search2()
20  print "dataset has", len(files), "secondary files:"
21  for file in files:
22  print file
23 
24 
25 
26