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
Impl.AlCa.AlCa Class Reference
Inheritance diagram for Impl.AlCa.AlCa:

Public Member Functions

def __init__
 
def alcaHarvesting
 
def alcaSkim
 
def dqmHarvesting
 
def expressProcessing
 
def promptReco
 
def skimsIfNotGiven
 

Detailed Description

Definition at line 17 of file AlCa.py.

Constructor & Destructor Documentation

def Impl.AlCa.AlCa.__init__ (   self)

Definition at line 18 of file AlCa.py.

18 
19  def __init__(self):
20  Scenario.__init__(self)
def __init__
Definition: AlCa.py:18

Member Function Documentation

def Impl.AlCa.AlCa.alcaHarvesting (   self,
  globalTag,
  datasetName,
  args 
)
_alcaHarvesting_

Proton collisions data taking AlCa Harvesting

Definition at line 134 of file AlCa.py.

References Impl.cosmics.cosmics.cbSc, Impl.hcalnzs.hcalnzs.cbSc, Impl.hcalnzsEra_Run2_2017.hcalnzsEra_Run2_2017.cbSc, Impl.hcalnzsEra_Run3.hcalnzsEra_Run3.cbSc, Impl.hcalnzsEra_Run2_2018.hcalnzsEra_Run2_2018.cbSc, Impl.hcalnzsEra_Run2_2016.hcalnzsEra_Run2_2016.cbSc, Impl.hcalnzsEra_Run2_2018_highBetaStar.hcalnzsEra_Run2_2018_highBetaStar.cbSc, Impl.hcalnzsEra_Run2_25ns.hcalnzsEra_Run2_25ns.cbSc, Impl.HeavyIons.HeavyIons.cbSc, Impl.pp.pp.cbSc, Impl.trackingOnly.trackingOnly.cbSc, Impl.ppEra_Run2_2017_ppRef.ppEra_Run2_2017_ppRef.cbSc, Impl.ppEra_Run2_2017_trackingLowPU.ppEra_Run2_2017_trackingLowPU.cbSc, Impl.ppEra_Run2_2018.ppEra_Run2_2018.cbSc, Impl.ppEra_Run2_2018_highBetaStar.ppEra_Run2_2018_highBetaStar.cbSc, Impl.ppEra_Run2_2018_pp_on_AA.ppEra_Run2_2018_pp_on_AA.cbSc, Impl.ppEra_Run2_2016.ppEra_Run2_2016.cbSc, Impl.ppEra_Run2_25ns.ppEra_Run2_25ns.cbSc, Impl.ppEra_Run2_50ns.ppEra_Run2_50ns.cbSc, Impl.ppEra_Run3.ppEra_Run3.cbSc, Impl.ppEra_Run2_2016_pA.ppEra_Run2_2016_pA.cbSc, Impl.ppEra_Run2_2016_trackingLowPU.ppEra_Run2_2016_trackingLowPU.cbSc, Impl.ppEra_Run2_2017.ppEra_Run2_2017.cbSc, Impl.ppEra_Run2_2017_pp_on_XeXe.ppEra_Run2_2017_pp_on_XeXe.cbSc, Reco.Reco.cbSc, Impl.ppEra_Run2_2017_trackingOnly.ppEra_Run2_2017_trackingOnly.cbSc, Impl.trackingOnlyEra_Run2_2017.trackingOnlyEra_Run2_2017.cbSc, Impl.trackingOnlyEra_Run2_2018.trackingOnlyEra_Run2_2018.cbSc, Impl.trackingOnlyEra_Run2_2018_highBetaStar.trackingOnlyEra_Run2_2018_highBetaStar.cbSc, Impl.trackingOnlyEra_Run3.trackingOnlyEra_Run3.cbSc, Impl.AlCaLumiPixels.AlCaLumiPixels.eras, Impl.cosmicsEra_Run2_2016.cosmicsEra_Run2_2016.eras, Impl.cosmicsEra_Run3.cosmicsEra_Run3.eras, Impl.cosmicsEra_Run2_2017.cosmicsEra_Run2_2017.eras, Impl.cosmicsEra_Run2_2018.cosmicsEra_Run2_2018.eras, Impl.cosmicsEra_Run2_25ns.cosmicsEra_Run2_25ns.eras, Impl.cosmicsEra_Run2_50ns.cosmicsEra_Run2_50ns.eras, Impl.cosmicsHybridEra_Run2_2018.cosmicsHybridEra_Run2_2018.eras, Impl.hcalnzsEra_Run2_2018_pp_on_AA.hcalnzsEra_Run2_2018_pp_on_AA.eras, Impl.hcalnzsEra_Run2_2016.hcalnzsEra_Run2_2016.eras, Impl.hcalnzsEra_Run2_2017.hcalnzsEra_Run2_2017.eras, Impl.hcalnzsEra_Run2_2018_highBetaStar.hcalnzsEra_Run2_2018_highBetaStar.eras, Impl.hcalnzsEra_Run2_25ns.hcalnzsEra_Run2_25ns.eras, Impl.HeavyIonsEra_Run2_2018.HeavyIonsEra_Run2_2018.eras, Impl.HeavyIonsEra_Run2_HI.HeavyIonsEra_Run2_HI.eras, Impl.hcalnzsEra_Run3.hcalnzsEra_Run3.eras, Impl.hcalnzsEra_Run2_2018.hcalnzsEra_Run2_2018.eras, Impl.trackingOnlyEra_Run2_2018_pp_on_AA.trackingOnlyEra_Run2_2018_pp_on_AA.eras, Impl.ppEra_Run2_2017.ppEra_Run2_2017.eras, Impl.ppEra_Run2_2018_highBetaStar.ppEra_Run2_2018_highBetaStar.eras, Impl.ppEra_Run2_2018.ppEra_Run2_2018.eras, Impl.ppEra_Run2_50ns.ppEra_Run2_50ns.eras, Impl.ppEra_Run2_2016.ppEra_Run2_2016.eras, Impl.ppEra_Run2_2016_pA.ppEra_Run2_2016_pA.eras, Impl.ppEra_Run3.ppEra_Run3.eras, Impl.ppEra_Run2_2017_trackingLowPU.ppEra_Run2_2017_trackingLowPU.eras, Impl.ppEra_Run2_25ns.ppEra_Run2_25ns.eras, Impl.ppEra_Run2_2016_trackingLowPU.ppEra_Run2_2016_trackingLowPU.eras, Impl.ppEra_Run2_2017_ppRef.ppEra_Run2_2017_ppRef.eras, Impl.ppEra_Run2_2017_pp_on_XeXe.ppEra_Run2_2017_pp_on_XeXe.eras, Impl.ppEra_Run2_2018_pp_on_AA.ppEra_Run2_2018_pp_on_AA.eras, Impl.trackingOnlyEra_Run2_2017.trackingOnlyEra_Run2_2017.eras, Impl.ppEra_Run2_2017_trackingOnly.ppEra_Run2_2017_trackingOnly.eras, Impl.trackingOnlyEra_Run2_2018.trackingOnlyEra_Run2_2018.eras, Impl.trackingOnlyEra_Run2_2018_highBetaStar.trackingOnlyEra_Run2_2018_highBetaStar.eras, Impl.trackingOnlyEra_Run3.trackingOnlyEra_Run3.eras, Scenario.Scenario.eras, options.HLTProcessOptions.eras, Utils.gtNameAndConnect(), and join().

135  def alcaHarvesting(self, globalTag, datasetName, **args):
136  """
137  _alcaHarvesting_
138 
139  Proton collisions data taking AlCa Harvesting
140 
141  """
142  skims = []
143  if 'skims' in args:
144  skims = args['skims']
145 
146 
147  if 'alcapromptdataset' in args:
148  skims.append('@'+args['alcapromptdataset'])
149 
150  if len(skims) == 0: return None
151  options = defaultOptions
152  options.scenario = self.cbSc if hasattr(self,'cbSc') else self.__class__.__name__
153  options.step = "ALCAHARVEST:"+('+'.join(skims))
154  options.name = "ALCAHARVEST"
155  options.conditions = gtNameAndConnect(globalTag, args)
156 
157  process = cms.Process("ALCAHARVEST", self.eras)
158  process.source = cms.Source("PoolSource")
159 
160  if 'customs' in args:
161  options.customisation_file=args['customs']
162 
163  configBuilder = ConfigBuilder(options, process = process)
164  configBuilder.prepare()
165 
166  #
167  # customise process for particular job
168  #
169  process.source.processingMode = cms.untracked.string('RunsAndLumis')
170  process.source.fileNames = cms.untracked(cms.vstring())
171  process.maxEvents.input = -1
172  process.dqmSaver.workflow = datasetName
173 
174  return process
def gtNameAndConnect
Definition: Utils.py:135
static std::string join(char **cmd)
Definition: RemoteFile.cc:19
def alcaHarvesting
Definition: AlCa.py:134
def Impl.AlCa.AlCa.alcaSkim (   self,
  skims,
  args 
)
_alcaSkim_

AlcaReco processing & skims for proton collisions

Definition at line 55 of file AlCa.py.

References Impl.AlCaLumiPixels.AlCaLumiPixels.eras, Impl.cosmicsEra_Run2_2017.cosmicsEra_Run2_2017.eras, Impl.cosmicsEra_Run3.cosmicsEra_Run3.eras, Impl.cosmicsHybridEra_Run2_2018.cosmicsHybridEra_Run2_2018.eras, Impl.cosmicsEra_Run2_2018.cosmicsEra_Run2_2018.eras, Impl.cosmicsEra_Run2_2016.cosmicsEra_Run2_2016.eras, Impl.cosmicsEra_Run2_25ns.cosmicsEra_Run2_25ns.eras, Impl.cosmicsEra_Run2_50ns.cosmicsEra_Run2_50ns.eras, Impl.hcalnzsEra_Run2_2018_pp_on_AA.hcalnzsEra_Run2_2018_pp_on_AA.eras, Impl.hcalnzsEra_Run3.hcalnzsEra_Run3.eras, Impl.HeavyIonsEra_Run2_2018.HeavyIonsEra_Run2_2018.eras, Impl.HeavyIonsEra_Run2_HI.HeavyIonsEra_Run2_HI.eras, Impl.hcalnzsEra_Run2_2016.hcalnzsEra_Run2_2016.eras, Impl.hcalnzsEra_Run2_2017.hcalnzsEra_Run2_2017.eras, Impl.hcalnzsEra_Run2_2018.hcalnzsEra_Run2_2018.eras, Impl.hcalnzsEra_Run2_2018_highBetaStar.hcalnzsEra_Run2_2018_highBetaStar.eras, Impl.hcalnzsEra_Run2_25ns.hcalnzsEra_Run2_25ns.eras, Impl.ppEra_Run3.ppEra_Run3.eras, Impl.ppEra_Run2_50ns.ppEra_Run2_50ns.eras, Impl.trackingOnlyEra_Run2_2018_pp_on_AA.trackingOnlyEra_Run2_2018_pp_on_AA.eras, Impl.ppEra_Run2_2016.ppEra_Run2_2016.eras, Impl.ppEra_Run2_2016_pA.ppEra_Run2_2016_pA.eras, Impl.ppEra_Run2_2016_trackingLowPU.ppEra_Run2_2016_trackingLowPU.eras, Impl.ppEra_Run2_2017.ppEra_Run2_2017.eras, Impl.ppEra_Run2_2017_ppRef.ppEra_Run2_2017_ppRef.eras, Impl.ppEra_Run2_25ns.ppEra_Run2_25ns.eras, Impl.ppEra_Run2_2017_trackingLowPU.ppEra_Run2_2017_trackingLowPU.eras, Impl.ppEra_Run2_2018.ppEra_Run2_2018.eras, Impl.ppEra_Run2_2018_highBetaStar.ppEra_Run2_2018_highBetaStar.eras, Impl.ppEra_Run2_2018_pp_on_AA.ppEra_Run2_2018_pp_on_AA.eras, Impl.ppEra_Run2_2017_pp_on_XeXe.ppEra_Run2_2017_pp_on_XeXe.eras, Impl.trackingOnlyEra_Run2_2017.trackingOnlyEra_Run2_2017.eras, Impl.trackingOnlyEra_Run2_2018.trackingOnlyEra_Run2_2018.eras, Impl.trackingOnlyEra_Run3.trackingOnlyEra_Run3.eras, Impl.ppEra_Run2_2017_trackingOnly.ppEra_Run2_2017_trackingOnly.eras, Impl.trackingOnlyEra_Run2_2018_highBetaStar.trackingOnlyEra_Run2_2018_highBetaStar.eras, Scenario.Scenario.eras, options.HLTProcessOptions.eras, and join().

55 
56  def alcaSkim(self, skims, **args):
57  """
58  _alcaSkim_
59 
60  AlcaReco processing & skims for proton collisions
61 
62  """
63  step = ""
64  pclWflws = [x for x in skims if "PromptCalibProd" in x]
65  skims = [x for x in skims if x not in pclWflws]
66 
67  if len(pclWflws):
68  step += 'ALCA:'+('+'.join(pclWflws))
69 
70  if len(skims) > 0:
71  if step != "":
72  step += ","
73  step += "ALCAOUTPUT:"+('+'.join(skims))
74 
75  options = Options()
76  options.__dict__.update(defaultOptions.__dict__)
77  options.scenario = "pp"
78  options.step = step
79  options.conditions = args['globaltag'] if 'globaltag' in args else 'None'
80  if 'globalTagConnect' in args and args['globalTagConnect'] != '':
81  options.conditions += ','+args['globalTagConnect']
82 
83  options.triggerResultsProcess = 'RECO'
84 
85  process = cms.Process('ALCA', self.eras)
86  cb = ConfigBuilder(options, process=process)
87 
88  # Input source
89  process.source = cms.Source(
90  "PoolSource",
91  fileNames=cms.untracked.vstring()
92  )
93 
94  cb.prepare()
95 
96  # FIXME: dirty hack..any way around this?
97  # Tier0 needs the dataset used for ALCAHARVEST step to be a different data-tier
98  for wfl in pclWflws:
99  methodToCall = getattr(process, 'ALCARECOStream'+wfl)
100  methodToCall.dataset.dataTier = cms.untracked.string('ALCAPROMPT')
101 
102  return process
103 
def alcaSkim
Definition: AlCa.py:55
static std::string join(char **cmd)
Definition: RemoteFile.cc:19
def Impl.AlCa.AlCa.dqmHarvesting (   self,
  datasetName,
  runNumber,
  globalTag,
  args 
)
_dqmHarvesting_

Proton collisions data taking DQM Harvesting

Definition at line 104 of file AlCa.py.

References Utils.dqmIOSource(), Impl.AlCaLumiPixels.AlCaLumiPixels.eras, Impl.cosmicsEra_Run3.cosmicsEra_Run3.eras, Impl.cosmicsHybridEra_Run2_2018.cosmicsHybridEra_Run2_2018.eras, Impl.cosmicsEra_Run2_2017.cosmicsEra_Run2_2017.eras, Impl.cosmicsEra_Run2_2018.cosmicsEra_Run2_2018.eras, Impl.cosmicsEra_Run2_2016.cosmicsEra_Run2_2016.eras, Impl.cosmicsEra_Run2_25ns.cosmicsEra_Run2_25ns.eras, Impl.cosmicsEra_Run2_50ns.cosmicsEra_Run2_50ns.eras, Impl.hcalnzsEra_Run2_2018_pp_on_AA.hcalnzsEra_Run2_2018_pp_on_AA.eras, Impl.hcalnzsEra_Run3.hcalnzsEra_Run3.eras, Impl.HeavyIonsEra_Run2_2018.HeavyIonsEra_Run2_2018.eras, Impl.HeavyIonsEra_Run2_HI.HeavyIonsEra_Run2_HI.eras, Impl.hcalnzsEra_Run2_2016.hcalnzsEra_Run2_2016.eras, Impl.hcalnzsEra_Run2_2017.hcalnzsEra_Run2_2017.eras, Impl.hcalnzsEra_Run2_2018.hcalnzsEra_Run2_2018.eras, Impl.hcalnzsEra_Run2_2018_highBetaStar.hcalnzsEra_Run2_2018_highBetaStar.eras, Impl.hcalnzsEra_Run2_25ns.hcalnzsEra_Run2_25ns.eras, Impl.ppEra_Run2_50ns.ppEra_Run2_50ns.eras, Impl.ppEra_Run3.ppEra_Run3.eras, Impl.ppEra_Run2_2016_pA.ppEra_Run2_2016_pA.eras, Impl.trackingOnlyEra_Run2_2018_pp_on_AA.trackingOnlyEra_Run2_2018_pp_on_AA.eras, Impl.ppEra_Run2_2016.ppEra_Run2_2016.eras, Impl.ppEra_Run2_2016_trackingLowPU.ppEra_Run2_2016_trackingLowPU.eras, Impl.ppEra_Run2_2017.ppEra_Run2_2017.eras, Impl.ppEra_Run2_2017_ppRef.ppEra_Run2_2017_ppRef.eras, Impl.ppEra_Run2_2017_trackingLowPU.ppEra_Run2_2017_trackingLowPU.eras, Impl.ppEra_Run2_25ns.ppEra_Run2_25ns.eras, Impl.ppEra_Run2_2018.ppEra_Run2_2018.eras, Impl.ppEra_Run2_2018_highBetaStar.ppEra_Run2_2018_highBetaStar.eras, Impl.ppEra_Run2_2017_pp_on_XeXe.ppEra_Run2_2017_pp_on_XeXe.eras, Impl.ppEra_Run2_2018_pp_on_AA.ppEra_Run2_2018_pp_on_AA.eras, Impl.trackingOnlyEra_Run3.trackingOnlyEra_Run3.eras, Impl.trackingOnlyEra_Run2_2018_highBetaStar.trackingOnlyEra_Run2_2018_highBetaStar.eras, Impl.trackingOnlyEra_Run2_2018.trackingOnlyEra_Run2_2018.eras, Impl.ppEra_Run2_2017_trackingOnly.ppEra_Run2_2017_trackingOnly.eras, Impl.trackingOnlyEra_Run2_2017.trackingOnlyEra_Run2_2017.eras, Scenario.Scenario.eras, options.HLTProcessOptions.eras, Utils.gtNameAndConnect(), and Utils.harvestingMode().

105  def dqmHarvesting(self, datasetName, runNumber, globalTag, **args):
106  """
107  _dqmHarvesting_
108 
109  Proton collisions data taking DQM Harvesting
110 
111  """
112  options = defaultOptions
113  options.scenario = "pp"
114  options.step = "HARVESTING:alcaHarvesting"
115  options.name = "EDMtoMEConvert"
116  options.conditions = gtNameAndConnect(globalTag, args)
117 
118  process = cms.Process("HARVESTING", self.eras)
119  process.source = dqmIOSource(args)
120  configBuilder = ConfigBuilder(options, process = process)
121  configBuilder.prepare()
122 
123  #
124  # customise process for particular job
125  #
126  #process.source.processingMode = cms.untracked.string('RunsAndLumis')
127  #process.source.fileNames = cms.untracked(cms.vstring())
128  #process.maxEvents.input = -1
129  #process.dqmSaver.workflow = datasetName
130  #process.dqmSaver.saveByLumiSection = 1
131  harvestingMode(process,datasetName,args)
132 
133  return process
def dqmHarvesting
Definition: AlCa.py:104
def gtNameAndConnect
Definition: Utils.py:135
def dqmIOSource
Definition: Utils.py:103
def harvestingMode
Definition: Utils.py:114
def Impl.AlCa.AlCa.expressProcessing (   self,
  globalTag,
  args 
)
_expressProcessing_

Proton collision data taking express processing

Definition at line 175 of file AlCa.py.

References Utils.addMonitoring(), Impl.AlCaLumiPixels.AlCaLumiPixels.eras, Impl.cosmicsEra_Run2_25ns.cosmicsEra_Run2_25ns.eras, Impl.cosmicsEra_Run2_50ns.cosmicsEra_Run2_50ns.eras, Impl.cosmicsEra_Run2_2016.cosmicsEra_Run2_2016.eras, Impl.cosmicsEra_Run3.cosmicsEra_Run3.eras, Impl.cosmicsHybridEra_Run2_2018.cosmicsHybridEra_Run2_2018.eras, Impl.cosmicsEra_Run2_2017.cosmicsEra_Run2_2017.eras, Impl.cosmicsEra_Run2_2018.cosmicsEra_Run2_2018.eras, Impl.hcalnzsEra_Run2_2018_pp_on_AA.hcalnzsEra_Run2_2018_pp_on_AA.eras, Impl.hcalnzsEra_Run2_25ns.hcalnzsEra_Run2_25ns.eras, Impl.hcalnzsEra_Run3.hcalnzsEra_Run3.eras, Impl.HeavyIonsEra_Run2_2018.HeavyIonsEra_Run2_2018.eras, Impl.HeavyIonsEra_Run2_HI.HeavyIonsEra_Run2_HI.eras, Impl.hcalnzsEra_Run2_2016.hcalnzsEra_Run2_2016.eras, Impl.hcalnzsEra_Run2_2017.hcalnzsEra_Run2_2017.eras, Impl.hcalnzsEra_Run2_2018.hcalnzsEra_Run2_2018.eras, Impl.hcalnzsEra_Run2_2018_highBetaStar.hcalnzsEra_Run2_2018_highBetaStar.eras, Impl.ppEra_Run2_2018_highBetaStar.ppEra_Run2_2018_highBetaStar.eras, Impl.ppEra_Run2_25ns.ppEra_Run2_25ns.eras, Impl.ppEra_Run2_2016_trackingLowPU.ppEra_Run2_2016_trackingLowPU.eras, Impl.ppEra_Run2_50ns.ppEra_Run2_50ns.eras, Impl.ppEra_Run3.ppEra_Run3.eras, Impl.ppEra_Run2_2016.ppEra_Run2_2016.eras, Impl.trackingOnlyEra_Run2_2018_pp_on_AA.trackingOnlyEra_Run2_2018_pp_on_AA.eras, Impl.ppEra_Run2_2016_pA.ppEra_Run2_2016_pA.eras, Impl.ppEra_Run2_2017.ppEra_Run2_2017.eras, Impl.ppEra_Run2_2017_ppRef.ppEra_Run2_2017_ppRef.eras, Impl.ppEra_Run2_2017_trackingLowPU.ppEra_Run2_2017_trackingLowPU.eras, Impl.ppEra_Run2_2018.ppEra_Run2_2018.eras, Impl.ppEra_Run2_2018_pp_on_AA.ppEra_Run2_2018_pp_on_AA.eras, Impl.ppEra_Run2_2017_pp_on_XeXe.ppEra_Run2_2017_pp_on_XeXe.eras, Impl.trackingOnlyEra_Run2_2018.trackingOnlyEra_Run2_2018.eras, Impl.trackingOnlyEra_Run3.trackingOnlyEra_Run3.eras, Impl.trackingOnlyEra_Run2_2018_highBetaStar.trackingOnlyEra_Run2_2018_highBetaStar.eras, Impl.trackingOnlyEra_Run2_2017.trackingOnlyEra_Run2_2017.eras, Impl.ppEra_Run2_2017_trackingOnly.ppEra_Run2_2017_trackingOnly.eras, Scenario.Scenario.eras, options.HLTProcessOptions.eras, Utils.gtNameAndConnect(), print(), and Utils.stepALCAPRODUCER().

176  def expressProcessing(self, globalTag, **args):
177  """
178  _expressProcessing_
179 
180  Proton collision data taking express processing
181 
182  """
183  skims = []
184  if 'skims' in args:
185  skims = args['skims']
186  pclWkflws = [x for x in skims if "PromptCalibProd" in x]
187  for wfl in pclWkflws:
188  skims.remove(wfl)
189 
190  options = Options()
191  options.__dict__.update(defaultOptions.__dict__)
192  options.scenario = "pp"
193  options.step = stepALCAPRODUCER(skims)
194 
195  if 'outputs' in args:
196  # the RAW data-tier needs a special treatment since the event-content as defined in release is not good enough
197  outputs_Raw = [x for x in args['outputs'] if x['dataTier'] == 'RAW']
198  outputs_noRaw = [x for x in args['outputs'] if x['dataTier'] != 'RAW']
199  if len(outputs_Raw) == 1:
200  print('RAW data-tier requested')
201  options.outputDefinition = outputs_noRaw.__str__()
202 
203  # dictIO(options,args)
204  options.conditions = gtNameAndConnect(globalTag, args)
205 
206  options.filein = 'tobeoverwritten.xyz'
207  if 'inputSource' in args:
208  options.filetype = args['inputSource']
209  process = cms.Process('RECO', self.eras)
210 
211  if 'customs' in args:
212  options.customisation_file=args['customs']
213 
214  cb = ConfigBuilder(options, process = process, with_output = True, with_input = True)
215 
216  cb.prepare()
217 
218  addMonitoring(process)
219 
220  for output in outputs_Raw:
221  print(output)
222  moduleLabel = output['moduleLabel']
223  selectEvents = output.get('selectEvents', None)
224  maxSize = output.get('maxSize', None)
225 
226  outputModule = cms.OutputModule(
227  "PoolOutputModule",
228  fileName = cms.untracked.string("%s.root" % moduleLabel)
229  )
230 
231  outputModule.dataset = cms.untracked.PSet(dataTier = cms.untracked.string("RAW"))
232 
233  if maxSize != None:
234  outputModule.maxSize = cms.untracked.int32(maxSize)
235 
236  if selectEvents != None:
237  outputModule.SelectEvents = cms.untracked.PSet(
238  SelectEvents = cms.vstring(selectEvents)
239  )
240  outputModule.outputCommands = cms.untracked.vstring('drop *',
241  'keep *_*_*_HLT')
242 
243  setattr(process, moduleLabel, outputModule)
244  # outputModule=getattr(self.process,theModuleLabel)
245  setattr(process, moduleLabel+'_step', cms.EndPath(outputModule))
246  path = getattr(process, moduleLabel+'_step')
247  process.schedule.append(path)
248 
249  return process
def stepALCAPRODUCER
Definition: Utils.py:9
def addMonitoring
Definition: Utils.py:38
def gtNameAndConnect
Definition: Utils.py:135
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
def expressProcessing
Definition: AlCa.py:175
def Impl.AlCa.AlCa.promptReco (   self,
  globalTag,
  args 
)

Definition at line 33 of file AlCa.py.

References Utils.dictIO(), Impl.AlCaLumiPixels.AlCaLumiPixels.eras, Impl.cosmicsEra_Run2_2016.cosmicsEra_Run2_2016.eras, Impl.cosmicsEra_Run2_2017.cosmicsEra_Run2_2017.eras, Impl.cosmicsEra_Run2_2018.cosmicsEra_Run2_2018.eras, Impl.cosmicsEra_Run2_25ns.cosmicsEra_Run2_25ns.eras, Impl.cosmicsEra_Run2_50ns.cosmicsEra_Run2_50ns.eras, Impl.cosmicsEra_Run3.cosmicsEra_Run3.eras, Impl.cosmicsHybridEra_Run2_2018.cosmicsHybridEra_Run2_2018.eras, Impl.hcalnzsEra_Run2_2018_pp_on_AA.hcalnzsEra_Run2_2018_pp_on_AA.eras, Impl.hcalnzsEra_Run2_2016.hcalnzsEra_Run2_2016.eras, Impl.hcalnzsEra_Run2_2017.hcalnzsEra_Run2_2017.eras, Impl.hcalnzsEra_Run2_2018.hcalnzsEra_Run2_2018.eras, Impl.hcalnzsEra_Run2_2018_highBetaStar.hcalnzsEra_Run2_2018_highBetaStar.eras, Impl.hcalnzsEra_Run2_25ns.hcalnzsEra_Run2_25ns.eras, Impl.hcalnzsEra_Run3.hcalnzsEra_Run3.eras, Impl.HeavyIonsEra_Run2_2018.HeavyIonsEra_Run2_2018.eras, Impl.HeavyIonsEra_Run2_HI.HeavyIonsEra_Run2_HI.eras, Impl.ppEra_Run2_50ns.ppEra_Run2_50ns.eras, Impl.ppEra_Run2_2016_trackingLowPU.ppEra_Run2_2016_trackingLowPU.eras, Impl.ppEra_Run2_2018.ppEra_Run2_2018.eras, Impl.ppEra_Run2_2018_highBetaStar.ppEra_Run2_2018_highBetaStar.eras, Impl.ppEra_Run2_25ns.ppEra_Run2_25ns.eras, Impl.ppEra_Run2_2017_trackingLowPU.ppEra_Run2_2017_trackingLowPU.eras, Impl.trackingOnlyEra_Run2_2018_pp_on_AA.trackingOnlyEra_Run2_2018_pp_on_AA.eras, Impl.ppEra_Run3.ppEra_Run3.eras, Impl.ppEra_Run2_2016.ppEra_Run2_2016.eras, Impl.ppEra_Run2_2016_pA.ppEra_Run2_2016_pA.eras, Impl.ppEra_Run2_2017.ppEra_Run2_2017.eras, Impl.ppEra_Run2_2017_ppRef.ppEra_Run2_2017_ppRef.eras, Impl.ppEra_Run2_2018_pp_on_AA.ppEra_Run2_2018_pp_on_AA.eras, Impl.ppEra_Run2_2017_pp_on_XeXe.ppEra_Run2_2017_pp_on_XeXe.eras, Impl.ppEra_Run2_2017_trackingOnly.ppEra_Run2_2017_trackingOnly.eras, Impl.trackingOnlyEra_Run2_2018_highBetaStar.trackingOnlyEra_Run2_2018_highBetaStar.eras, Impl.trackingOnlyEra_Run2_2018.trackingOnlyEra_Run2_2018.eras, Impl.trackingOnlyEra_Run3.trackingOnlyEra_Run3.eras, Impl.trackingOnlyEra_Run2_2017.trackingOnlyEra_Run2_2017.eras, Scenario.Scenario.eras, options.HLTProcessOptions.eras, Utils.gtNameAndConnect(), Impl.AlCaP0.AlCaP0.skims, Impl.AlCaPhiSymEcal.AlCaPhiSymEcal.skims, Impl.AlCaTestEnable.AlCaTestEnable.skims, Impl.AlCaLumiPixels.AlCaLumiPixels.skims, and Utils.stepALCAPRODUCER().

33 
34  def promptReco(self, globalTag, **args):
35  if not 'skims' in args:
36  args['skims']=self.skims
37  step = stepALCAPRODUCER(args['skims'])
38  options = Options()
39  options.__dict__.update(defaultOptions.__dict__)
40  options.scenario = "pp"
41  options.step = step
42  dictIO(options,args)
43  options.conditions = gtNameAndConnect(globalTag, args)
44 
45  process = cms.Process('RECO', self.eras)
46  cb = ConfigBuilder(options, process = process, with_output = True)
47 
48  # Input source
49  process.source = cms.Source("PoolSource",
50  fileNames = cms.untracked.vstring()
51  )
52  cb.prepare()
53 
54  return process
def promptReco
Definition: AlCa.py:33
def stepALCAPRODUCER
Definition: Utils.py:9
def gtNameAndConnect
Definition: Utils.py:135
def dictIO
Definition: Utils.py:121
def Impl.AlCa.AlCa.skimsIfNotGiven (   self,
  args,
  sl 
)

Definition at line 29 of file AlCa.py.

29 
30  def skimsIfNotGiven(self,args,sl):
31  if not 'skims' in args:
32  args['skims']=sl
def skimsIfNotGiven
Definition: AlCa.py:29