2 __date__ =
"$2010-07-20 11.52.22$" 15 lines = open(file).readlines()
24 for i
in range(len(lines)):
25 index = lines[i].
find(commentStart)
27 lines[i] = lines[i].
replace(lines[i][index:],
'\n')
35 startIndex = lines[i].
find(commentStart)
37 while((startIndex != -1)
and (i < tlines)):
38 endIndex = lines[i].
find(commentEnd)
41 lines[i] = lines[i].
replace(lines[i][startIndex:endIndex+3],
'', 1)
43 lines[i] = lines[i].
replace(lines[i][:endIndex+3],
'')
44 startIndex = lines[i].
find(commentStart)
48 lines[i] = lines[i].
replace(lines[i][startIndex:],
'\n', 1)
50 lines[i] = lines[i].
replace(lines[i][:],
'\n')
def replace(string, replacements)
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)