Classes | |
class | OptionParser |
Functions | |
def | ccopy |
def | cexists |
def | compute |
def | create_declaration |
def | create_xsd |
def | kpermutation |
def | priorities |
def | read_data |
Variables | |
dictionary | comb = {} |
dictionary | elements = {} |
list | histograms = [] |
dictionary | keys = {} |
int | len_max = 0 |
int | len_min = 1000000 |
max = len_max | |
int | min = 2 |
tuple | optManager = OptionParser() |
opts = opts.__dict__ | |
dictionary | prior = {} |
tuple | resdoc = dom.Document() |
dictionary | results = {} |
tuple | srcdoc = dom.parse(opts['src']) |
def bookConverter::ccopy | ( | a | ) |
Definition at line 89 of file bookConverter.py.
def bookConverter::cexists | ( | s, | |
c | |||
) |
Definition at line 81 of file bookConverter.py.
def bookConverter::compute | ( | min, | |
max | |||
) |
Definition at line 105 of file bookConverter.py.
Referenced by DTCalibValidation::analyze(), DTRecHitQuality::analyze(), ClosestApproachInRPhi::calculate(), TrackCountingTagPlotter::finalize(), TrackProbabilityTagPlotter::finalize(), TrackIPTagPlotter::finalize(), PhysicsTools::MVATrainer::getTrainCalibration(), PhysicsTools::MVATrainer::makeTrainCalibration(), and DTRecHitBaseAlgo::reconstruct().
def bookConverter::create_declaration | ( | cid | ) |
Definition at line 75 of file bookConverter.py.
def bookConverter::create_xsd | ( | ) |
Definition at line 57 of file bookConverter.py.
00058 : 00059 for k in keys.keys(): 00060 name = keys[k]['name'] 00061 00062 root = resdoc.createElement("xs:complexType") 00063 root.setAttribute("name", "HistogramType") 00064 resdoc.appendChild(root) 00065 seq = resdoc.createElement("xs:all") 00066 root.appendChild(seq) 00067 for e in sorted(elements.keys()): 00068 el = resdoc.createElement("xs:element") 00069 el.setAttribute("name", e) 00070 el.setAttribute("type", elements[e]['type']) 00071 if elements[e]['count'] < len(histograms): 00072 el.setAttribute("minOccurs", '0') 00073 el.setAttribute("maxOccurs", '1') 00074 seq.appendChild(el)
def bookConverter::kpermutation | ( | vfrom, | |
vto, | |||
min, | |||
max | |||
) |
Definition at line 95 of file bookConverter.py.
def bookConverter::priorities | ( | ) |
Definition at line 118 of file bookConverter.py.
def bookConverter::read_data | ( | ) |
Definition at line 16 of file bookConverter.py.
00017 : 00018 print "Reading histogram file" 00019 n = 0 00020 histos = srcdoc.getElementsByTagName("Histogram") 00021 for histo in histos: 00022 h = [] 00023 for key in histo.childNodes: 00024 if key.nodeType == key.ELEMENT_NODE: 00025 name = key.localName 00026 value = key.childNodes[0].nodeValue 00027 found = 0 00028 00029 if not elements.has_key(name): 00030 elements[name] = {'type': '', 'count': 0} 00031 elements[name]['count'] = elements[name]['count'] + 1 00032 00033 try: 00034 i = int(value) 00035 if elements[name]['type'] == '': 00036 elements[name]['type'] = 'xs:integer' 00037 except ValueError: 00038 try: 00039 i = float(value) 00040 if elements[name]['type'] in ('', 'xs:integer'): 00041 elements[name]['type'] = 'xs:double' 00042 except ValueError: 00043 elements[name]['type'] = 'xs:string' 00044 00045 for k in keys.keys(): 00046 if keys[k]['name'] == name and keys[k]['value'] == value: 00047 keys[k]['count'] = keys[k]['count'] + 1 00048 h.append(k) 00049 found = 1 00050 break 00051 if found == 0: 00052 keys[n] = {'name': name, 'value': value, 'count': 1} 00053 h.append(n) 00054 n += 1 00055 h.sort() 00056 histograms.append(h)
dictionary bookConverter::comb = {} |
Definition at line 144 of file bookConverter.py.
Referenced by L1GtAnalyzer::analyzeObjectMap(), JetPartonMatching::calculate(), CombinationGenerator< T >::combinations(), L1RCTORCAMap::combVec(), JetPartonMatching::getNumberOfUnmatchedPartons(), JetPartonMatching::getSumDeltaE(), JetPartonMatching::getSumDeltaPt(), JetPartonMatching::getSumDeltaR(), SequentialCombinationGenerator< T >::next_combination(), JetPartonMatching::print(), CombinationGenerator< T >::separateOneElement(), and CombinationGenerator< T >::splitInTwoCollections().
dictionary bookConverter::elements = {} |
Definition at line 146 of file bookConverter.py.
list bookConverter::histograms = [] |
Definition at line 141 of file bookConverter.py.
Referenced by HistoAnalyzer< C >::HistoAnalyzer().
dictionary bookConverter::keys = {} |
Definition at line 142 of file bookConverter.py.
int bookConverter::len_max = 0 |
Definition at line 148 of file bookConverter.py.
int bookConverter::len_min = 1000000 |
Definition at line 147 of file bookConverter.py.
Definition at line 166 of file bookConverter.py.
int bookConverter::min = 2 |
Definition at line 164 of file bookConverter.py.
tuple bookConverter::optManager = OptionParser() |
Definition at line 130 of file bookConverter.py.
bookConverter::opts = opts.__dict__ |
Definition at line 132 of file bookConverter.py.
dictionary bookConverter::prior = {} |
Definition at line 145 of file bookConverter.py.
Referenced by fftjetcms::fftjet_BgFunctor_parser(), reco::GhostTrackFitter::fit(), reco::SequentialGhostTrackFitter::fit(), LikelihoodSpecies::LikelihoodSpecies(), and LikelihoodSpecies::setPrior().
tuple bookConverter::resdoc = dom.Document() |
Definition at line 138 of file bookConverter.py.
dictionary bookConverter::results = {} |
Definition at line 143 of file bookConverter.py.
tuple bookConverter::srcdoc = dom.parse(opts['src']) |
Definition at line 139 of file bookConverter.py.