test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 alcaSkim
 
def dqmHarvesting
 
def promptReco
 
def skimsIfNotGiven
 

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 
18  def __init__(self):
19  Scenario.__init__(self)
def __init__
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_50ns.cosmicsEra_Run2_50ns.eras, Impl.cosmicsEra_Run2_25ns.cosmicsEra_Run2_25ns.eras, Impl.hcalnzsEra_Run2_2016.hcalnzsEra_Run2_2016.eras, Impl.hcalnzsEra_Run2_25ns.hcalnzsEra_Run2_25ns.eras, Impl.HeavyIonsEra_Run2_HI.HeavyIonsEra_Run2_HI.eras, Impl.ppEra_Run2_2016_pA.ppEra_Run2_2016_pA.eras, Impl.ppEra_Run2_50ns.ppEra_Run2_50ns.eras, Impl.ppEra_Run2_25ns.ppEra_Run2_25ns.eras, Impl.ppEra_Run2_2016.ppEra_Run2_2016.eras, Impl.ppEra_Run2_2016_trackingLowPU.ppEra_Run2_2016_trackingLowPU.eras, Impl.pplowpuEra_Run2_2016.pplowpuEra_Run2_2016.eras, Scenario.Scenario.eras, and join().

54 
55  def alcaSkim(self, skims, **args):
56  """
57  _alcaSkim_
58 
59  AlcaReco processing & skims for proton collisions
60 
61  """
62  options = Options()
63  options.__dict__.update(defaultOptions.__dict__)
64  options.scenario = "pp"
65  options.step = "ALCAOUTPUT:"+('+'.join(skims))
66  options.conditions = args['globaltag'] if 'globaltag' in args else 'None'
67  if 'globalTagConnect' in args and args['globalTagConnect'] != '':
68  options.conditions += ','+args['globalTagConnect']
69 
70  options.triggerResultsProcess = 'RECO'
71 
72  process = cms.Process('ALCA', self.eras)
73  cb = ConfigBuilder(options, process = process)
74 
75  # Input source
76  process.source = cms.Source(
77  "PoolSource",
78  fileNames = cms.untracked.vstring()
79  )
80 
81  cb.prepare()
82 
83  return process
84 
def alcaSkim
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_50ns.cosmicsEra_Run2_50ns.eras, Impl.cosmicsEra_Run2_2016.cosmicsEra_Run2_2016.eras, Impl.cosmicsEra_Run2_25ns.cosmicsEra_Run2_25ns.eras, Impl.hcalnzsEra_Run2_2016.hcalnzsEra_Run2_2016.eras, Impl.hcalnzsEra_Run2_25ns.hcalnzsEra_Run2_25ns.eras, Impl.HeavyIonsEra_Run2_HI.HeavyIonsEra_Run2_HI.eras, Impl.pplowpuEra_Run2_2016.pplowpuEra_Run2_2016.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_50ns.ppEra_Run2_50ns.eras, Impl.ppEra_Run2_25ns.ppEra_Run2_25ns.eras, Scenario.Scenario.eras, Utils.gtNameAndConnect(), and Utils.harvestingMode().

85 
86  def dqmHarvesting(self, datasetName, runNumber, globalTag, **args):
87  """
88  _dqmHarvesting_
89 
90  Proton collisions data taking DQM Harvesting
91 
92  """
93  options = defaultOptions
94  options.scenario = "pp"
95  options.step = "HARVESTING:alcaHarvesting"
96  options.name = "EDMtoMEConvert"
97  options.conditions = gtNameAndConnect(globalTag, args)
98 
99  process = cms.Process("HARVESTING", self.eras)
100  process.source = dqmIOSource(args)
101  configBuilder = ConfigBuilder(options, process = process)
102  configBuilder.prepare()
103 
104  #
105  # customise process for particular job
106  #
107  #process.source.processingMode = cms.untracked.string('RunsAndLumis')
108  #process.source.fileNames = cms.untracked(cms.vstring())
109  #process.maxEvents.input = -1
110  #process.dqmSaver.workflow = datasetName
111  #process.dqmSaver.saveByLumiSection = 1
112  #if args.has_key('referenceFile') and args.get('referenceFile', ''):
113  # process.DQMStore.referenceFileName = \
114  # cms.untracked.string(args['referenceFile'])
115  harvestingMode(process,datasetName,args)
116 
117  return process
def dqmHarvesting
Definition: AlCa.py:85
def gtNameAndConnect
Definition: Utils.py:137
def dqmIOSource
Definition: Utils.py:103
def harvestingMode
Definition: Utils.py:114
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_25ns.cosmicsEra_Run2_25ns.eras, Impl.cosmicsEra_Run2_50ns.cosmicsEra_Run2_50ns.eras, Impl.hcalnzsEra_Run2_2016.hcalnzsEra_Run2_2016.eras, Impl.hcalnzsEra_Run2_25ns.hcalnzsEra_Run2_25ns.eras, Impl.HeavyIonsEra_Run2_HI.HeavyIonsEra_Run2_HI.eras, Impl.ppEra_Run2_2016_trackingLowPU.ppEra_Run2_2016_trackingLowPU.eras, Impl.ppEra_Run2_25ns.ppEra_Run2_25ns.eras, Impl.ppEra_Run2_50ns.ppEra_Run2_50ns.eras, Impl.pplowpuEra_Run2_2016.pplowpuEra_Run2_2016.eras, Impl.ppEra_Run2_2016_pA.ppEra_Run2_2016_pA.eras, Impl.ppEra_Run2_2016.ppEra_Run2_2016.eras, Scenario.Scenario.eras, Utils.gtNameAndConnect(), Impl.AlCaLumiPixels.AlCaLumiPixels.skims, Impl.AlCaP0.AlCaP0.skims, Impl.AlCaTestEnable.AlCaTestEnable.skims, Impl.AlCaPhiSymEcal.AlCaPhiSymEcal.skims, and Utils.stepALCAPRODUCER().

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

Definition at line 28 of file AlCa.py.

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