CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
customNtuples Namespace Reference

Functions

def create_ntuple
 

Function Documentation

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

Definition at line 12 of file customNtuples.py.

References clone().

12 
13  ):
14  vpset = []
15  for ntuple in ntuple_list:
16  pset = getattr(process, 'ntuple_'+ntuple).clone()
17  if ntuple=='triggercells':
18  pset.TriggerCells = cms.InputTag(inputs[0])
19  pset.Multiclusters = cms.InputTag(inputs[2])
20  elif ntuple=='clusters':
21  pset.Clusters = cms.InputTag(inputs[1])
22  pset.Multiclusters = cms.InputTag(inputs[2])
23  elif ntuple=='multiclusters':
24  pset.Multiclusters = cms.InputTag(inputs[2])
25  vpset.append(pset)
26  ntuplizer = process.hgcalTriggerNtuplizer.clone()
27  ntuplizer.Ntuples = cms.VPSet(vpset)
28  return ntuplizer
29 
30 
31 
32 
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
Definition: eve_macros.cc:135