CMS 3D CMS Logo

electronDataDiscovery.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 
3 from __future__ import print_function
4 import os, sys
5 if len(sys.argv) > 1:
6  os.environ['DD_SOURCE'] = sys.argv[1]
7 
8 import DQMOffline.EGamma.electronDataDiscovery as dd
9 
10 if os.environ['DD_TIER_SECONDARY'] == "":
11  files = dd.search()
12  print("dataset has", len(files), "files:")
13  for file in files:
14  print(file)
15 else:
16  files = dd.search()
17  print("dataset has", len(files), "primary files:")
18  for file in files:
19  print(file)
20  files = dd.search2()
21  print("dataset has", len(files), "secondary files:")
22  for file in files:
23  print(file)
24 
25 
26 
27 
print
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:46