CMS 3D CMS Logo

List of all members | Public Member Functions
Impl.AlCa.AlCa Class Reference
Inheritance diagram for Impl.AlCa.AlCa:

Public Member Functions

def __init__ (self)
 
def alcaSkim (self, skims, args)
 
def dqmHarvesting (self, datasetName, runNumber, globalTag, args)
 
def promptReco (self, globalTag, args)
 
def skimsIfNotGiven (self, args, sl)
 

Detailed Description

Definition at line 16 of file AlCa.py.

Constructor & Destructor Documentation

def Impl.AlCa.AlCa.__init__ (   self)

Definition at line 17 of file AlCa.py.

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

Member Function Documentation

def Impl.AlCa.AlCa.alcaSkim (   self,
  skims,
  args 
)
_alcaSkim_

AlcaReco processing & skims for proton collisions

Definition at line 54 of file AlCa.py.

References 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.cosmicsEra_Run2_2017.cosmicsEra_Run2_2017.eras, Impl.hcalnzsEra_Run2_25ns.hcalnzsEra_Run2_25ns.eras, Impl.hcalnzsEra_Run2_2016.hcalnzsEra_Run2_2016.eras, Impl.hcalnzsEra_Run2_2017.hcalnzsEra_Run2_2017.eras, Impl.HeavyIonsEra_Run2_HI.HeavyIonsEra_Run2_HI.eras, Impl.ppEra_Run2_2016_pA.ppEra_Run2_2016_pA.eras, Impl.ppEra_Run2_25ns.ppEra_Run2_25ns.eras, Impl.ppEra_Run2_50ns.ppEra_Run2_50ns.eras, Impl.ppEra_Run2_2016.ppEra_Run2_2016.eras, Impl.ppEra_Run2_2017_trackingLowPU.ppEra_Run2_2017_trackingLowPU.eras, Impl.ppEra_Run2_2016_trackingLowPU.ppEra_Run2_2016_trackingLowPU.eras, Impl.ppEra_Run2_2017.ppEra_Run2_2017.eras, Scenario.Scenario.eras, options.HLTProcessOptions.eras, and join().

54  def alcaSkim(self, skims, **args):
55  """
56  _alcaSkim_
57 
58  AlcaReco processing & skims for proton collisions
59 
60  """
61  options = Options()
62  options.__dict__.update(defaultOptions.__dict__)
63  options.scenario = "pp"
64  options.step = "ALCAOUTPUT:"+('+'.join(skims))
65  options.conditions = args['globaltag'] if 'globaltag' in args else 'None'
66  if 'globalTagConnect' in args and args['globalTagConnect'] != '':
67  options.conditions += ','+args['globalTagConnect']
68 
69  options.triggerResultsProcess = 'RECO'
70 
71  process = cms.Process('ALCA', self.eras)
72  cb = ConfigBuilder(options, process = process)
73 
74  # Input source
75  process.source = cms.Source(
76  "PoolSource",
77  fileNames = cms.untracked.vstring()
78  )
79 
80  cb.prepare()
81 
82  return process
83 
84 
def alcaSkim(self, skims, args)
Definition: AlCa.py:54
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
def Impl.AlCa.AlCa.dqmHarvesting (   self,
  datasetName,
  runNumber,
  globalTag,
  args 
)
_dqmHarvesting_

Proton collisions data taking DQM Harvesting

Definition at line 85 of file AlCa.py.

References Utils.dqmIOSource(), 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.cosmicsEra_Run2_2017.cosmicsEra_Run2_2017.eras, Impl.hcalnzsEra_Run2_25ns.hcalnzsEra_Run2_25ns.eras, Impl.hcalnzsEra_Run2_2016.hcalnzsEra_Run2_2016.eras, Impl.hcalnzsEra_Run2_2017.hcalnzsEra_Run2_2017.eras, Impl.HeavyIonsEra_Run2_HI.HeavyIonsEra_Run2_HI.eras, Impl.ppEra_Run2_2017.ppEra_Run2_2017.eras, Impl.ppEra_Run2_2016_pA.ppEra_Run2_2016_pA.eras, Impl.ppEra_Run2_50ns.ppEra_Run2_50ns.eras, Impl.ppEra_Run2_2016.ppEra_Run2_2016.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, Scenario.Scenario.eras, options.HLTProcessOptions.eras, Utils.gtNameAndConnect(), and Utils.harvestingMode().

85  def dqmHarvesting(self, datasetName, runNumber, globalTag, **args):
86  """
87  _dqmHarvesting_
88 
89  Proton collisions data taking DQM Harvesting
90 
91  """
92  options = defaultOptions
93  options.scenario = "pp"
94  options.step = "HARVESTING:alcaHarvesting"
95  options.name = "EDMtoMEConvert"
96  options.conditions = gtNameAndConnect(globalTag, args)
97 
98  process = cms.Process("HARVESTING", self.eras)
99  process.source = dqmIOSource(args)
100  configBuilder = ConfigBuilder(options, process = process)
101  configBuilder.prepare()
102 
103  #
104  # customise process for particular job
105  #
106  #process.source.processingMode = cms.untracked.string('RunsAndLumis')
107  #process.source.fileNames = cms.untracked(cms.vstring())
108  #process.maxEvents.input = -1
109  #process.dqmSaver.workflow = datasetName
110  #process.dqmSaver.saveByLumiSection = 1
111  #if args.has_key('referenceFile') and args.get('referenceFile', ''):
112  # process.DQMStore.referenceFileName = \
113  # cms.untracked.string(args['referenceFile'])
114  harvestingMode(process,datasetName,args)
115 
116  return process
117 
def harvestingMode(process, datasetName, args, rANDl=True)
Definition: Utils.py:114
def gtNameAndConnect(globalTag, args)
Definition: Utils.py:137
def dqmHarvesting(self, datasetName, runNumber, globalTag, args)
Definition: AlCa.py:85
def dqmIOSource(args)
Definition: Utils.py:103
def Impl.AlCa.AlCa.promptReco (   self,
  globalTag,
  args 
)

Definition at line 32 of file AlCa.py.

References Utils.dictIO(), Impl.cosmicsEra_Run2_2016.cosmicsEra_Run2_2016.eras, Impl.cosmicsEra_Run2_2017.cosmicsEra_Run2_2017.eras, Impl.cosmicsEra_Run2_25ns.cosmicsEra_Run2_25ns.eras, Impl.cosmicsEra_Run2_50ns.cosmicsEra_Run2_50ns.eras, Impl.hcalnzsEra_Run2_2016.hcalnzsEra_Run2_2016.eras, Impl.hcalnzsEra_Run2_2017.hcalnzsEra_Run2_2017.eras, Impl.hcalnzsEra_Run2_25ns.hcalnzsEra_Run2_25ns.eras, Impl.HeavyIonsEra_Run2_HI.HeavyIonsEra_Run2_HI.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_trackingLowPU.ppEra_Run2_2017_trackingLowPU.eras, Impl.ppEra_Run2_25ns.ppEra_Run2_25ns.eras, Impl.ppEra_Run2_50ns.ppEra_Run2_50ns.eras, Impl.ppEra_Run2_2017.ppEra_Run2_2017.eras, Scenario.Scenario.eras, options.HLTProcessOptions.eras, Utils.gtNameAndConnect(), Impl.AlCaPhiSymEcal.AlCaPhiSymEcal.skims, Impl.AlCaTestEnable.AlCaTestEnable.skims, Impl.AlCaP0.AlCaP0.skims, Impl.AlCaLumiPixels.AlCaLumiPixels.skims, and Utils.stepALCAPRODUCER().

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

Definition at line 28 of file AlCa.py.

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