CMS 3D CMS Logo

Classes | Functions
geometryXMLparser Namespace Reference

Classes

class  Alignable
 
class  CSCAlignable
 
class  DTAlignable
 
class  MuonGeometry
 
class  Operation
 

Functions

def cscorder (a, b)
 
def dtorder (a, b)
 

Function Documentation

def geometryXMLparser.cscorder (   a,
  b 
)

Definition at line 36 of file geometryXMLparser.py.

References fileCollector.cmp, list(), and ComparisonHelper.zip().

36 def cscorder(a, b):
37  for ai, bi, name in zip(list(a) + [0]*(5 - len(a)), \
38  list(b) + [0]*(5 - len(b)), \
39  ("endcap", "station", "ring", "chamber", "layer")):
40  exec("a%s = %d" % (name, ai))
41  exec("b%s = %d" % (name, bi))
42 
43  if astation == 1 and aring == 3: return cmp(a, b)
44 
45  elif aendcap == bendcap and astation == bstation and aring == bring and achamber != bchamber:
46  if achamber == 0: return -1 # upper hierarchy comes first
47  if bchamber == 0: return 1 # upper hierarchy comes first
48  if achamber % 2 == 1 and bchamber % 2 == 0: return -1 # odds come first
49  elif achamber % 2 == 0 and bchamber % 2 == 1: return 1 # evens come after
50 
51  return cmp(a, b)
52 
53 # External libraries (standard in Python >= 2.4, at least)
OutputIterator zip(InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, InputIterator2 last2, OutputIterator result, Compare comp)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger list("!*","!HLTx*"if it matches 2 triggers or more) will accept the event if all the matching triggers are FAIL.It will reject the event if any of the triggers are PASS or EXCEPTION(this matches the behavior of"!*"before the partial wildcard feature was incorporated).Triggers which are in the READY state are completely ignored.(READY should never be returned since the trigger paths have been run
def geometryXMLparser.dtorder (   a,
  b 
)

Definition at line 15 of file geometryXMLparser.py.

References fileCollector.cmp, list(), and ComparisonHelper.zip().

15 def dtorder(a, b):
16  for ai, bi, name in zip(list(a) + [0]*(5 - len(a)), \
17  list(b) + [0]*(5 - len(b)), \
18  ("wheel", "station", "sector", "superlayer", "layer")):
19  exec("a%s = %d" % (name, ai))
20  exec("b%s = %d" % (name, bi))
21 
22  if awheel == bwheel and astation == bstation:
23 
24  if asector != bsector:
25  if astation == 4: sectororder = [0, 1, 2, 3, 4, 13, 5, 6, 7, 8, 9, 10, 14, 11, 12]
26  elif awheel == 0: sectororder = [0, 1, 5, 9, 2, 6, 10, 3, 7, 11, 4, 8, 12]
27  else: sectororder = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
28  return cmp(sectororder.index(asector), sectororder.index(bsector))
29 
30  elif asuperlayer != bsuperlayer:
31  superlayerorder = [0, 1, 3, 2]
32  return cmp(superlayerorder.index(asuperlayer), superlayerorder.index(bsuperlayer))
33 
34  return cmp(a, b)
35 
OutputIterator zip(InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, InputIterator2 last2, OutputIterator result, Compare comp)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger list("!*","!HLTx*"if it matches 2 triggers or more) will accept the event if all the matching triggers are FAIL.It will reject the event if any of the triggers are PASS or EXCEPTION(this matches the behavior of"!*"before the partial wildcard feature was incorporated).Triggers which are in the READY state are completely ignored.(READY should never be returned since the trigger paths have been run