CMS 3D CMS Logo

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

Public Member Functions

def __init__
 
def validsubdets
 
- Public Member Functions inherited from plottingOptions.BasePlottingOptions
def __init__
 
def getRepMap
 

Static Public Attributes

dictionary defaults
 
dictionary needpackages = {"Alignment/CommonAlignmentProducer"}
 
 validationclass = TrackSplittingValidation
 
- Static Public Attributes inherited from plottingOptions.BasePlottingOptions
dictionary defaults
 
tuple mandatories = set()
 
dictionary needpackages = {"Alignment/OfflineValidation"}
 

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

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

133  def __init__(self, config):
134  super(PlottingOptionsTrackSplitting, self).__init__(config, "split")
135  validsubdets = self.validsubdets()
136  if self.general["subdetector"] not in validsubdets:
137  raise AllInOneError("'%s' is not a valid subdetector!\n" % self.general["subdetector"] + "The options are: " + ", ".join(validsubdets))
static std::string join(char **cmd)
Definition: RemoteFile.cc:19

Member Function Documentation

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(), sistrip::SpyUtilities.range(), python.rootplot.root2matplotlib.replace(), helperFunctions.replaceByMap(), submitPVValidationJobs.split(), and digitizers_cfi.strip.

Referenced by plottingOptions.PlottingOptionsTrackSplitting.__init__().

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

Member Data Documentation

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

Definition at line 126 of file plottingOptions.py.

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

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

Definition at line 130 of file plottingOptions.py.

plottingOptions.PlottingOptionsTrackSplitting.validationclass = TrackSplittingValidation
static

Definition at line 131 of file plottingOptions.py.

Referenced by plottingOptions.BasePlottingOptions.getRepMap().