CMS 3D CMS Logo

customNtuples.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
4  ntuples = process.l1tHGCalTriggerNtuplizer.Ntuples
5  for ntuple in ntuples:
6  if ntuple.NtupleName=='HGCalTriggerNtupleHGCClusters' or \
7  ntuple.NtupleName=='HGCalTriggerNtupleHGCTriggerCells' or \
8  ntuple.NtupleName=='HGCalTriggerNtupleHGCMulticlusters':
9  ntuple.Clusters = cms.InputTag('l1tHGCalBackEndLayer1Producer:HGCalBackendLayer1Processor')
10  return process
11 
13  ntuples = process.l1tHGCalTriggerNtuplizer.Ntuples
14  for ntuple in ntuples:
15  if ntuple.NtupleName=='HGCalTriggerNtupleHGCClusters' or \
16  ntuple.NtupleName=='HGCalTriggerNtupleHGCTriggerCells' or \
17  ntuple.NtupleName=='HGCalTriggerNtupleHGCMulticlusters':
18  ntuple.Clusters = cms.InputTag('l1tHGCalBackEndStage1Producer:HGCalBackendStage1Processor')
19  ntuple.Multiclusters = cms.InputTag('l1tHGCalBackEndStage2Producer:HGCalBackendLayer2Processor3DClustering')
20  return process
21 
23  ntuples = process.l1tHGCalTriggerNtuplizer.Ntuples
24  for ntuple in ntuples:
25  if ntuple.NtupleName=='HGCalTriggerNtupleHGCTriggerCells' or \
26  ntuple.NtupleName=='HGCalTriggerNtupleHGCClusters' or \
27  ntuple.NtupleName=='HGCalTriggerNtupleHGCMulticlusters':
28  ntuple.Multiclusters = cms.InputTag('l1tHGCalBackEndLayer2Producer:HGCalBackendLayer2Processor3DClusteringSA')
29  return process
30 
31 
33  ntuples = process.l1tHGCalTriggerNtuplizer.Ntuples
34  for ntuple in ntuples:
35  if ntuple.NtupleName=='HGCalTriggerNtupleHGCTowers':
36  ntuple.Towers = cms.InputTag('l1tHGCalTowerProducer:HGCalTowerProcessorSA')
37  return process
38 
39 
41  def __init__(self,
42  ntuple_list=[
43  'event',
44  'gen', 'genjet', 'gentau',
45  'digis',
46  'triggercells',
47  'clusters', 'multiclusters'
48  ]
49  ):
50  self.ntuple_list = ntuple_list
51 
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.l1tHGCalTriggerNtuplizer.clone()
66  ntuplizer.Ntuples = cms.VPSet(vpset)
67  return ntuplizer
def custom_ntuples_stage1_truncation(process)
def custom_ntuples_standalone_tower(process)
def __call__(self, process, inputs)
def __init__(self, ntuple_list=['event', gen, genjet, gentau, digis, triggercells, clusters, multiclusters)
def custom_ntuples_layer1_truncation(process)
Definition: customNtuples.py:3
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
Definition: eve_macros.cc:135
def custom_ntuples_standalone_clustering(process)