CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Attributes
plottingOptions.PlottingOptionsTrackSplitting Class Reference
Inheritance diagram for plottingOptions.PlottingOptionsTrackSplitting:
plottingOptions.BasePlottingOptions genericValidation.ValidationMetaClass

Public Member Functions

def __init__ (self, config)
 
def validsubdets (self)
 
- Public Member Functions inherited from plottingOptions.BasePlottingOptions
def __init__ (self, config, valType)
 
def getRepMap (self)
 
- Public Member Functions inherited from genericValidation.ValidationMetaClass
def __new__ (cls, clsname, bases, dct)
 

Static Public Attributes

dictionary defaults
 
dictionary needpackages = {"Alignment/CommonAlignmentProducer"}
 
 validationclass = TrackSplittingValidation
 
- Static Public Attributes inherited from plottingOptions.BasePlottingOptions
dictionary defaults
 
 mandatories = set()
 
dictionary needpackages = {"Alignment/OfflineValidation"}
 
- Static Public Attributes inherited from genericValidation.ValidationMetaClass
list dicts = ["defaults"]
 
list sets = ["mandatories", "optionals", "needpackages"]
 

Additional Inherited Members

- Public Attributes inherited from plottingOptions.BasePlottingOptions
 cmssw
 
 cmsswreleasebase
 
 config
 
 general
 
 randomWorkdirPart
 
 scramarch
 
 type
 

Detailed Description

Definition at line 125 of file plottingOptions.py.

Constructor & Destructor Documentation

◆ __init__()

def plottingOptions.PlottingOptionsTrackSplitting.__init__ (   self,
  config 
)

Definition at line 132 of file plottingOptions.py.

132  def __init__(self, config):
133  super(PlottingOptionsTrackSplitting, self).__init__(config, "split")
134  validsubdets = self.validsubdets()
135  if self.general["subdetector"] not in validsubdets:
136  raise AllInOneError("'%s' is not a valid subdetector!\n" % self.general["subdetector"] + "The options are: " + ", ".join(validsubdets))
137 

References plottingOptions.BasePlottingOptions.general, genericValidation.GenericValidation.general, join(), and plottingOptions.PlottingOptionsTrackSplitting.validsubdets().

Member Function Documentation

◆ validsubdets()

def plottingOptions.PlottingOptionsTrackSplitting.validsubdets (   self)

Definition at line 138 of file plottingOptions.py.

138  def validsubdets(self):
139  filename = replaceByMap(".oO[Alignment/CommonAlignmentProducer]Oo./python/AlignmentTrackSelector_cfi.py", self.getRepMap())
140  with open(filename) as f:
141  trackselector = f.read()
142 
143  minhitspersubdet = trackselector.split("minHitsPerSubDet")[1].split("(",1)[1]
144 
145  parenthesesdepth = 0
146  i = 0
147  for character in minhitspersubdet:
148  if character == "(":
149  parenthesesdepth += 1
150  if character == ")":
151  parenthesesdepth -= 1
152  if parenthesesdepth < 0:
153  break
154  i += 1
155  minhitspersubdet = minhitspersubdet[0:i]
156 
157  results = minhitspersubdet.split(",")
158  empty = []
159  for i in range(len(results)):
160  results[i] = results[i].split("=")[0].strip().replace("in", "", 1)
161 
162  results.append("none")
163 
164  return [a for a in results if a]
165 

References overlapValidation.OverlapValidation.getRepMap(), monteCarloValidation.MonteCarloValidation.getRepMap(), geometryComparison.GeometryComparison.getRepMap(), offlineValidation.OfflineValidation.getRepMap(), plottingOptions.BasePlottingOptions.getRepMap(), genericValidation.GenericValidation.getRepMap(), offlineValidation.OfflineValidationDQM.getRepMap(), alignment.Alignment.getRepMap(), genericValidation.GenericValidationData.getRepMap(), genericValidation.GenericValidationData_CTSR.getRepMap(), FastTimerService_cff.range, python.rootplot.root2matplotlib.replace(), helperFunctions.replaceByMap(), submitPVValidationJobs.split(), and digitizers_cfi.strip.

Referenced by plottingOptions.PlottingOptionsTrackSplitting.__init__().

Member Data Documentation

◆ defaults

dictionary plottingOptions.PlottingOptionsTrackSplitting.defaults
static
Initial value:
= {
"outliercut": "-1.0",
"subdetector": "none",
}

Definition at line 126 of file plottingOptions.py.

Referenced by tree.Tree.reset(), and tree.Tree.var().

◆ needpackages

dictionary plottingOptions.PlottingOptionsTrackSplitting.needpackages = {"Alignment/CommonAlignmentProducer"}
static

Definition at line 130 of file plottingOptions.py.

◆ validationclass

plottingOptions.PlottingOptionsTrackSplitting.validationclass = TrackSplittingValidation
static

Definition at line 131 of file plottingOptions.py.

Referenced by plottingOptions.BasePlottingOptions.getRepMap().

FastTimerService_cff.range
range
Definition: FastTimerService_cff.py:34
digitizers_cfi.strip
strip
Definition: digitizers_cfi.py:19
join
static std::string join(char **cmd)
Definition: RemoteFile.cc:17
helperFunctions.replaceByMap
def replaceByMap(target, the_map)
— Helpers —############################
Definition: helperFunctions.py:12
submitPVValidationJobs.split
def split(sequence, size)
Definition: submitPVValidationJobs.py:352
python.rootplot.root2matplotlib.replace
def replace(string, replacements)
Definition: root2matplotlib.py:444