CMS 3D CMS Logo

AlCaNano.py
Go to the documentation of this file.
1 #!/usr/bin/env python3
2 """
3 _AlCaNano_
4 
5 Scenario supporting proton collisions for AlCa needs when ALCANANO is produced
6 
7 """
8 from __future__ import print_function
9 
10 import os
11 import sys
12 
14 from Configuration.DataProcessing.Utils import stepALCAPRODUCER,dqmIOSource,harvestingMode,dictIO,gtNameAndConnect,addMonitoring
15 import FWCore.ParameterSet.Config as cms
16 
18  def __init__(self):
19  Scenario.__init__(self)
20  self.recoSeq=''
21  self.promptCustoms= [ 'Configuration/DataProcessing/RecoTLR.customisePrompt' ]
22  self.promptModifiers = cms.ModifierChain()
23 
24  """
25  _AlCaNano_
26 
27  Implement configuration building for data processing for proton
28  collision data taking for AlCa needs when ALCANANO is produced
29 
30  """
31 
32  def skimsIfNotGiven(self,args,sl):
33  if not 'skims' in args:
34  args['skims']=sl
35 
36  def promptReco(self, globalTag, **args):
37  if not 'skims' in args:
38  args['skims']=self.skims
39  if not 'customs' in args:
40  args['customs']= [ ]
41  for c in self.promptCustoms:
42  args['customs'].append(c)
43 
44  options = Options()
45  options.__dict__.update(defaultOptions.__dict__)
46  options.scenario = "pp"
47  dictIO(options,args)
48  options.conditions = gtNameAndConnect(globalTag, args)
49 
50  if 'customs' in args:
51  print(args['customs'])
52  options.customisation_file=args['customs']
53 
54  options.step = 'RECO'
55  options.step += self.recoSeq
56  options.step += stepALCAPRODUCER(args['skims'])
57 
58  process = cms.Process('RECO', cms.ModifierChain(self.eras, self.promptModifiers) )
59  cb = ConfigBuilder(options, process = process, with_output = True)
60 
61  # Input source
62  process.source = cms.Source("PoolSource",
63  fileNames = cms.untracked.vstring()
64  )
65  cb.prepare()
66 
67  return process
def gtNameAndConnect(globalTag, args)
Definition: Utils.py:135
def promptReco(self, globalTag, args)
Definition: AlCaNano.py:36
def dictIO(options, args)
Definition: Utils.py:121
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
def stepALCAPRODUCER(skims)
Definition: Utils.py:9
def __init__(self)
Definition: AlCaNano.py:18
def skimsIfNotGiven(self, args, sl)
Definition: AlCaNano.py:32