CMS 3D CMS Logo

Functions
customNtuples Namespace Reference

Functions

def create_ntuple (process, inputs, ntuple_list=['event', 'gen', 'genjet', 'gentau', 'digis', 'triggercells', 'clusters', 'multiclusters'])
 
def custom_ntuples_V9 (process)
 

Function Documentation

◆ create_ntuple()

def customNtuples.create_ntuple (   process,
  inputs,
  ntuple_list = [             'event',             'gen', 'genjet', 'gentau',             'digis',             'triggercells',             'clusters', 'multiclusters'             ] 
)

Definition at line 13 of file customNtuples.py.

13 def create_ntuple(process, inputs,
14  ntuple_list=[
15  'event',
16  'gen', 'genjet', 'gentau',
17  'digis',
18  'triggercells',
19  'clusters', 'multiclusters'
20  ]
21  ):
22  vpset = []
23  for ntuple in ntuple_list:
24  pset = getattr(process, 'ntuple_'+ntuple).clone()
25  if ntuple=='triggercells':
26  pset.TriggerCells = cms.InputTag(inputs[0])
27  pset.Multiclusters = cms.InputTag(inputs[2])
28  elif ntuple=='clusters':
29  pset.Clusters = cms.InputTag(inputs[1])
30  pset.Multiclusters = cms.InputTag(inputs[2])
31  elif ntuple=='multiclusters':
32  pset.Multiclusters = cms.InputTag(inputs[2])
33  vpset.append(pset)
34  ntuplizer = process.hgcalTriggerNtuplizer.clone()
35  ntuplizer.Ntuples = cms.VPSet(vpset)
36  return ntuplizer
37 
38 
39 
40 

References clone().

◆ custom_ntuples_V9()

def customNtuples.custom_ntuples_V9 (   process)

Definition at line 3 of file customNtuples.py.

3 def custom_ntuples_V9(process):
4  ntuples = process.hgcalTriggerNtuplizer.Ntuples
5  for ntuple in ntuples:
6  if ntuple.NtupleName=='HGCalTriggerNtupleHGCDigis' or \
7  ntuple.NtupleName=='HGCalTriggerNtupleHGCTriggerCells':
8  ntuple.bhSimHits = cms.InputTag('g4SimHits:HGCHitsHEback')
9  return process
10 
11 
12 
customNtuples.custom_ntuples_V9
def custom_ntuples_V9(process)
Definition: customNtuples.py:3
clone
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
Definition: eve_macros.cc:135
customNtuples.create_ntuple
def create_ntuple(process, inputs, ntuple_list=['event', 'gen', 'genjet', 'gentau', 'digis', 'triggercells', 'clusters', 'multiclusters'])
Definition: customNtuples.py:13