Main Page
Namespaces
Classes
Package Documentation
DQMOffline
EGamma
scripts
electronDataDiscovery.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[
'DD_SOURCE'
] = sys.argv[1]
6
7
import
DQMOffline.EGamma.electronDataDiscovery
as
dd
8
9
if
os.environ[
'DD_TIER_SECONDARY'
] ==
""
:
10
files = dd.search()
11
print
"dataset has"
, len(files),
"files:"
12
for
file
in
files:
13
print
file
14
else
:
15
files = dd.search()
16
print
"dataset has"
, len(files),
"primary files:"
17
for
file
in
files:
18
print
file
19
files = dd.search2()
20
print
"dataset has"
, len(files),
"secondary files:"
21
for
file
in
files:
22
print
file
23
24
25
26
Generated for CMSSW Reference Manual by
1.8.11