CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
customNtuples.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 
4 def create_ntuple(process, inputs,
5  ntuple_list=[
6  'event',
7  'gen', 'genjet', 'gentau',
8  'digis',
9  'triggercells',
10  'clusters', 'multiclusters'
11  ]
12  ):
13  vpset = []
14  for ntuple in ntuple_list:
15  pset = getattr(process, 'ntuple_'+ntuple).clone()
16  if ntuple=='triggercells':
17  pset.TriggerCells = cms.InputTag(inputs[0])
18  pset.Multiclusters = cms.InputTag(inputs[2])
19  elif ntuple=='clusters':
20  pset.Clusters = cms.InputTag(inputs[1])
21  pset.Multiclusters = cms.InputTag(inputs[2])
22  elif ntuple=='multiclusters':
23  pset.Multiclusters = cms.InputTag(inputs[2])
24  vpset.append(pset)
25  ntuplizer = process.hgcalTriggerNtuplizer.clone()
26  ntuplizer.Ntuples = cms.VPSet(vpset)
27  return ntuplizer
28 
29 
30 
31 
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
Definition: eve_macros.cc:135