CMS 3D CMS Logo

Functions | Variables
hcalNano_cff Namespace Reference

Functions

def customiseHcalCalib (process)
 
def customiseHcalLocal (process)
 

Variables

 hcalNanoDigiTask
 
 hcalNanoIsoTrkTask
 
 hcalNanoPhiSymTask
 
 hcalNanoRecHitTask
 
 hcalNanoTask
 
 nanoMetadata
 
 strings
 
 tag
 

Function Documentation

◆ customiseHcalCalib()

def hcalNano_cff.customiseHcalCalib (   process)

Definition at line 47 of file hcalNano_cff.py.

47 def customiseHcalCalib(process):
48  # Add uMNio digi (special digi identifies calib event type)
49  process.load("DPGAnalysis.HcalNanoAOD.hcalUMNioTable_cff")
50  process.hcalNanoTask.add(process.uMNioTable)
51  process.hcalNanoDigiTask.add(process.uMNioTable)
52 
53  # Raw data has a different name, hltHcalCalibrationRaw instead of rawDataCollector
54  process.hcalDigis.InputLabel = cms.InputTag('hltHcalCalibrationRaw')
55 
56  # Create EDFilter for HLT_HcalCalibration
57  # (HCAL raw data is not present in ECAL-triggered events, annoyingly. The filter stops downstream modules from throwing ProductNotFound.)
58  process.hcalCalibHLTFilter = cms.EDFilter("TriggerResultsFilter",
59  triggerConditions = cms.vstring(
60  'HLT_HcalCalibration_v* / 1'),
61  hltResults = cms.InputTag( "TriggerResults", "", "HLT" ),
62  l1tResults = cms.InputTag( "" ),
63  l1tIgnoreMask = cms.bool( False ),
64  l1techIgnorePrescales = cms.bool( False ),
65  daqPartitions = cms.uint32( 1 ),
66  throw = cms.bool( True )
67  )
68 
69  # Remove hcalDigis from normal raw2digi task, and put on a sequence after the HLT filter
70  process.RawToDigiTask.remove(process.hcalDigis)
71  process.hcalCalibDigiSequence = cms.Sequence(process.hcalCalibHLTFilter + process.hcalDigis)
72  process.raw2digi_step = cms.Path(process.hcalCalibDigiSequence, process.RawToDigiTask)
73 
74  # Insert the HLT filter at start of user path and nanoaod endpath
75  process.nanoAOD_step.insert(0, process.hcalCalibHLTFilter)
76  process.NANOAODoutput_step.insert(0, process.hcalCalibHLTFilter)
77 
78  return process
79 
80 # Customization for running on HCAL local run data
81 # - Call from cmsDriver.py with: `--customise DPGAnalysis/HcalNanoAOD/customise_hcalLocal_cff.customiseHcalLocal`
def customiseHcalCalib(process)
Definition: hcalNano_cff.py:47

◆ customiseHcalLocal()

def hcalNano_cff.customiseHcalLocal (   process)

Definition at line 82 of file hcalNano_cff.py.

82 def customiseHcalLocal(process):
83  input_files = process.source.fileNames
84  max_events = process.maxEvents.input
85  process.source = cms.Source("HcalTBSource",
86  fileNames = input_files,
87  maxEvents = max_events,
88  firstLuminosityBlockForEachRun = cms.untracked.VLuminosityBlockID([]),
89  )
90  process.hcalDigis.InputLabel = cms.InputTag('source')
91 
92  # Uncomment if ZDC digis (QIE10, nTS=10) are causing problems
93  #process.hcalDigis.saveQIE10DataNSamples = cms.untracked.vint32(10)
94  #process.hcalDigis.saveQIE10DataTags = cms.untracked.vstring("ZDC")
95 
96  if hasattr(process, "hcalDigiSortedTableTask"):
97  process.hcalDigiSortedTable.nTS_HB = cms.untracked.uint32(8)
98  process.hcalDigiSortedTable.nTS_HE = cms.untracked.uint32(8)
99  process.hcalDigiSortedTable.nTS_HF = cms.untracked.uint32(6)
100  process.hcalDigiSortedTable.nTS_HO = cms.untracked.uint32(10)
101 
102  process.load("DPGAnalysis.HcalNanoAOD.hcalUMNioTable_cff")
103  if hasattr(process, "hcalNanoTask"):
104  process.hcalNanoTask.add(process.uMNioTable)
105  if hasattr(process, "hcalNanoDigiTask"):
106  process.hcalNanoDigiTask.add(process.uMNioTable)
107 
108  return process
109 
def customiseHcalLocal(process)
Definition: hcalNano_cff.py:82

Variable Documentation

◆ hcalNanoDigiTask

hcalNano_cff.hcalNanoDigiTask

Definition at line 19 of file hcalNano_cff.py.

◆ hcalNanoIsoTrkTask

hcalNano_cff.hcalNanoIsoTrkTask

Definition at line 39 of file hcalNano_cff.py.

◆ hcalNanoPhiSymTask

hcalNano_cff.hcalNanoPhiSymTask

Definition at line 32 of file hcalNano_cff.py.

◆ hcalNanoRecHitTask

hcalNano_cff.hcalNanoRecHitTask

Definition at line 25 of file hcalNano_cff.py.

◆ hcalNanoTask

hcalNano_cff.hcalNanoTask

Definition at line 12 of file hcalNano_cff.py.

◆ nanoMetadata

hcalNano_cff.nanoMetadata

Definition at line 6 of file hcalNano_cff.py.

◆ strings

hcalNano_cff.strings

Definition at line 7 of file hcalNano_cff.py.

◆ tag

hcalNano_cff.tag

Definition at line 8 of file hcalNano_cff.py.