test
CMS 3D CMS Logo

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