CMS 3D CMS Logo

HDQMDatabaseProducerConfiguration.py
Go to the documentation of this file.
1 from __future__ import print_function
2 import sys
3 import ConfigParser
4 
6 
7  def __init__(self, configFileName):
8  config = ConfigParser.ConfigParser()
9  # config.read("HDQMDatabaseProducerConfiguration.cfg")
10  config.read(configFileName)
11 
12  # [RunSelection]
13  # ##############
14 
15  self.FirstRun = config.get('Config', 'FirstRun')
16  self.LastRun = config.get('Config', 'LastRun')
17  self.RunType = config.get('Config', 'RunType')
18 
19  if config.get('Config', 'DiscoverRecoTypes') == "True":
20  self.RecoTypes = ""
21  else:
22  self.RecoTypes = config.get('Config', 'RecoTypes').split(",")
23 
24  self.RunsToSkip = config.get('Config', 'RunsToSkip')
25 
26  # Good run selection
27  self.Group = config.get('Config', 'Group')
28 
29  # Tag
30  # ###
31 
32  # Prefix to tag name. Will be composed with subdet and tag version to build the actual tag name
33  self.TagName = config.get('Config', 'TagName')
34 
35  # Helper class to store information for each tag
36  class SubDetInfo:
37  def __init__(self, subDet, tag, qualityFlag):
38  self.SubDet = subDet
39  self.Tag = tag
40  self.QualityFlag = qualityFlag
41 
43  fullList = config.get('Config', 'SubDetsAndTags')
44  for item in fullList.split(";"):
45  itemList = item.split(",")
46  if len(itemList) != 3:
47  print("Error: incorrect configuration of subDetsAndTags")
48  sys.exit()
49  self.SubDetsAndTags.append(SubDetInfo(itemList[0].strip(), itemList[1].strip(), itemList[2].strip()))
50  # print itemList[0], itemList[1], itemList[2]
51 
52  # [Database]
53  # ##########
54 
55  self.AuthenticationPath = config.get('Config', 'AuthenticationPath')
56  self.Database = config.get('Config', 'Database')
57 
58  # [Directories]
59  # #############
60 
61  # Directory where the scripts are
62  self.BaseDir = config.get('Config', 'BaseDir')
63 
64  # CMS environment
65  self.CMS_PATH = config.get('Config', 'CMS_PATH')
66  self.CMSSW_Version = config.get('Config', 'CMSSW_Version')
67 
68  # Directory containing the cfg templates
69  self.TemplatesDir = config.get('Config', 'TemplatesDir')
70 
71  # DQM root files location
72  self.SourceDir = config.get('Config', 'SourceDir')
73 
74  # Directory where to copy the plots
75  self.StorageDir = config.get('Config', 'StorageDir')
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:66
double split
Definition: MVATrainer.cc:139
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