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

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

Definition at line 21 of file customNtuples.py.

References clone().

Referenced by custom_ntuples_V9().

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 
41 
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
Definition: eve_macros.cc:135
def customNtuples.custom_ntuples_V9 (   process)

Definition at line 3 of file customNtuples.py.

References create_ntuple().

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 
def custom_ntuples_V9(process)
Definition: customNtuples.py:3