CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Attributes
hltFindDuplicates.ModuleList Class Reference
Inheritance diagram for hltFindDuplicates.ModuleList:

Public Member Functions

def __init__
 
def append
 
def apply_rename
 
def dump
 
def extend
 
def group
 
def sort
 

Static Public Attributes

list modules = []
 

Detailed Description

Definition at line 103 of file hltFindDuplicates.py.

Constructor & Destructor Documentation

def hltFindDuplicates.ModuleList.__init__ (   self,
  args 
)

Member Function Documentation

def hltFindDuplicates.ModuleList.append (   self,
  module 
)

Definition at line 106 of file hltFindDuplicates.py.

References hltFindDuplicates.whitelist().

Referenced by hltFindDuplicates.ModuleList.__init__(), and hltFindDuplicates.ModuleList.extend().

107  def append(self, module):
108  m = Module(module)
109  if not whitelist(m):
110  self.modules.append(m)
def hltFindDuplicates.ModuleList.apply_rename (   self,
  groups 
)

Definition at line 140 of file hltFindDuplicates.py.

References hltFindDuplicates.ModuleList.modules, EcalABAnalyzer.modules, DDHCalEndcapAlgo.modules, EcalTestPulseAnalyzer.modules, EcalLaserAnalyzer2.modules, and EcalLaserAnalyzer.modules.

141  def apply_rename(self, groups):
142  for module in self.modules:
143  module.apply_rename(groups)
def hltFindDuplicates.ModuleList.dump (   self)

Definition at line 144 of file hltFindDuplicates.py.

References hltFindDuplicates.ModuleList.modules, EcalABAnalyzer.modules, DDHCalEndcapAlgo.modules, EcalTestPulseAnalyzer.modules, EcalLaserAnalyzer2.modules, and EcalLaserAnalyzer.modules.

145  def dump(self):
146  for m in self.modules:
147  print "%s = (%s) {" % (m.label, m.type)
148  for k, v in m.params.iteritems():
149  print "\t%s = %s" % (k, v)
150  print '}'
151  print
152 
153 
def hltFindDuplicates.ModuleList.extend (   self,
  modules 
)

Definition at line 111 of file hltFindDuplicates.py.

References python.seqvaluedict.seqdict.append(), cond::IOVEditor.append(), cms::Digest.append(), hltFindDuplicates.ModuleList.append(), python.Vispa.Views.PropertyView.PropertyView.append(), cms::Exception.append(), svgfig.SVG.append(), BeautifulSoup.PageElement.append(), and Mixins._ValidatingListBase.append().

Referenced by hltFindDuplicates.ModuleList.__init__().

112  def extend(self, modules):
113  for module in modules:
114  self.append(module)
def hltFindDuplicates.ModuleList.group (   self)

Definition at line 125 of file hltFindDuplicates.py.

References python.multivaluedict.dict, join(), list(), hltFindDuplicates.ModuleList.modules, EcalABAnalyzer.modules, DDHCalEndcapAlgo.modules, EcalTestPulseAnalyzer.modules, EcalLaserAnalyzer2.modules, EcalLaserAnalyzer.modules, CastorCalibrationsSet.sort(), StringMap.sort(), HcalCalibrationWidthsSet.sort(), HcalCalibrationsSet.sort(), CastorCalibrationWidthsSet.sort(), CaloTowerConstituentsMap.sort(), egHLT::ComCodes.sort(), HcalCalibrationQIEData.sort(), CastorRawGains.sort(), CastorCalibrationQIEData.sort(), HcalRawGains.sort(), HcalDQMChannelQuality.sort(), HcalQIEData.sort(), CastorQIEData.sort(), egHLT::TrigCodes::TrigBitSetMap.sort(), edm::OneToValue< CKey, Val, index >.sort(), TRange< T >.sort(), HcalDcsMap.sort(), HcalElectronicsMap.sort(), FWTableWidget.sort(), lhef::Matching< Delta >::Comparator< SortComparator >.sort, btag::Matching< Delta >::Comparator< SortComparator >.sort, edm::OneToOneGeneric< CKey, CVal, index, KeyRefProd, ValRefProd, KeyRef, ValRef >.sort(), CastorElectronicsMap.sort(), edm::OneToMany< CKey, CVal, index >.sort(), edm::OneToManyWithQualityGeneric< CKey, CVal, Q, index, KeyRefProd, ValRefProd, KeyRef, ValRef >.sort(), edm::DataFrameContainer.sort(), FWTableManagerBase.sort(), EcalDccWeightBuilder.sort(), hltFindDuplicates.ModuleList.sort(), edm::SortedCollection< T, SORT >.sort(), popcon::PopConSourceHandler< T >.sort(), edm::OwnVector< T, P >.sort(), and python.seqvaluedict.seqdict.sort().

126  def group(self):
127  groups = dict()
128  self.sort()
129  i = 0
130  for v, g in itertools.groupby(self.modules, Module.key):
131  group = list(g)
132  if len(group) > 1:
133  i = i + 1
134  g = [ m.label for m in group ]
135  g.sort()
136  l = 'hltGroup%d' %i
137  r = re.compile(r'^(%s)($|:)' % r'|'.join(g))
138  groups[l] = (g, r)
139  return groups
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
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 hltFindDuplicates.ModuleList.sort (   self)

Definition at line 122 of file hltFindDuplicates.py.

Referenced by hltFindDuplicates.ModuleList.group().

123  def sort(self):
124  self.modules.sort(key = Module.key)

Member Data Documentation

list hltFindDuplicates.ModuleList.modules = []
static

Definition at line 104 of file hltFindDuplicates.py.

Referenced by hltFindDuplicates.ModuleList.apply_rename(), hltFindDuplicates.ModuleList.dump(), and hltFindDuplicates.ModuleList.group().