CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
customNtuples.CreateNtuple Class Reference
Inheritance diagram for customNtuples.CreateNtuple:

Public Member Functions

def __call__ (self, process, inputs)
 
def __init__ (self, ntuple_list=['event', gen, genjet, gentau, digis, triggercells, clusters, multiclusters)
 

Public Attributes

 ntuple_list
 

Detailed Description

Definition at line 40 of file customNtuples.py.

Constructor & Destructor Documentation

◆ __init__()

def customNtuples.CreateNtuple.__init__ (   self,
  ntuple_list = [             'event',
  gen,
  genjet,
  gentau,
  digis,
  triggercells,
  clusters,
  multiclusters 
)

Definition at line 49 of file customNtuples.py.

49  ):
50  self.ntuple_list = ntuple_list
51 

Member Function Documentation

◆ __call__()

def customNtuples.CreateNtuple.__call__ (   self,
  process,
  inputs 
)

Definition at line 52 of file customNtuples.py.

References clone(), and customNtuples.CreateNtuple.ntuple_list.

52  def __call__(self, process, inputs):
53  vpset = []
54  for ntuple in self.ntuple_list:
55  pset = getattr(process, 'ntuple_'+ntuple).clone()
56  if ntuple=='triggercells':
57  pset.TriggerCells = cms.InputTag(inputs[0])
58  pset.Multiclusters = cms.InputTag(inputs[2])
59  elif ntuple=='clusters':
60  pset.Clusters = cms.InputTag(inputs[1])
61  pset.Multiclusters = cms.InputTag(inputs[2])
62  elif ntuple=='multiclusters':
63  pset.Multiclusters = cms.InputTag(inputs[2])
64  vpset.append(pset)
65  ntuplizer = process.hgcalTriggerNtuplizer.clone()
66  ntuplizer.Ntuples = cms.VPSet(vpset)
67  return ntuplizer
68 
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
Definition: eve_macros.cc:135

Member Data Documentation

◆ ntuple_list

customNtuples.CreateNtuple.ntuple_list

Definition at line 50 of file customNtuples.py.

Referenced by customNtuples.CreateNtuple.__call__().