CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
customiseEarlyDeleteForMkFit Namespace Reference

Functions

def customiseEarlyDeleteForMkFit
 

Function Documentation

def customiseEarlyDeleteForMkFit.customiseEarlyDeleteForMkFit (   process,
  products 
)

Definition at line 5 of file customiseEarlyDeleteForMkFit.py.

References bitset_utilities.append(), and mps_monitormerge.items.

5 
6 def customiseEarlyDeleteForMkFit(process, products):
7  def _branchName(productType, moduleLabel, instanceLabel=""):
8  return "%s_%s_%s_%s" % (productType, moduleLabel, instanceLabel, process.name_())
9 
10  for name, module in process.producers_().items():
11  cppType = module.type_()
12  if cppType == "MkFitSiPixelHitConverter":
13  products[name].extend([
14  _branchName("MkFitHitWrapper", name),
15  _branchName("MkFitClusterIndexToHit", name),
16  ])
17  elif cppType == "MkFitSiStripHitConverter":
18  products[name].extend([
19  _branchName("MkFitHitWrapper", name),
20  _branchName("MkFitClusterIndexToHit", name),
21  _branchName("floats", name)
22  ])
23  elif cppType == "MkFitEventOfHitsProducer":
24  products[name].append(_branchName("MkFitEventOfHits", name))
25  elif cppType == "MkFitSeedConverter":
26  products[name].append(_branchName("MkFitSeedWrapper", name))
27  elif cppType == "MkFitProducer":
28  products[name].append(_branchName("MkFitOutputWrapper", name))
29 
30  return products
boost::dynamic_bitset append(const boost::dynamic_bitset<> &bs1, const boost::dynamic_bitset<> &bs2)
this method takes two bitsets bs1 and bs2 and returns result of bs2 appended to the end of bs1 ...