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.

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

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 
def __init__(self, dataset, job_number, job_id, job_name, isDA, isMC, applyBOWS, applyEXTRACOND, extraconditions, runboundary, lumilist, intlumi, maxevents, gt, allFromGT, alignmentDB, alignmentTAG, apeDB, apeTAG, bowDB, bowTAG, vertextype, tracktype, refittertype, ttrhtype, applyruncontrol, ptcut, CMSSW_dir, the_dir)
static std::string join(char **cmd)
Definition: RemoteFile.cc:19

Member Function Documentation

◆ validsubdets()

def plottingOptions.PlottingOptionsTrackSplitting.validsubdets (   self)

Definition at line 138 of file plottingOptions.py.

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 nano_mu_digi_cff.strip.

Referenced by plottingOptions.PlottingOptionsTrackSplitting.__init__().

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 
def replace(string, replacements)
def replaceByMap(target, the_map)
— Helpers —############################

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().