process.load('L1Trigger.L1THGCal.hgcalTriggerPrimitives_cff') process.load('L1Trigger.L1THGCalUtilities.HGC3DClusterGenMatchSelector_cff') process.load('L1Trigger.L1THGCalUtilities.hgcalTriggerNtuples_cff') from L1Trigger.L1THGCalUtilities.hgcalTriggerChains import HGCalTriggerChains import L1Trigger.L1THGCalUtilities.vfe as vfe import L1Trigger.L1THGCalUtilities.concentrator as concentrator import L1Trigger.L1THGCalUtilities.clustering2d as clustering2d import L1Trigger.L1THGCalUtilities.clustering3d as clustering3d import L1Trigger.L1THGCalUtilities.selectors as selectors import L1Trigger.L1THGCalUtilities.customNtuples as ntuple chains = HGCalTriggerChains() # Register algorithms ## VFE chains.register_vfe("Floatingpoint8", lambda p: vfe.create_compression(p, 4, 4, True)) ## ECON chains.register_concentrator("Supertriggercell", concentrator.create_supertriggercell) chains.register_concentrator("Threshold", concentrator.create_threshold) chains.register_concentrator("Bestchoice", concentrator.create_bestchoice) ## BE1 chains.register_backend1("Dummy", clustering2d.create_dummy) ## BE2 chains.register_backend2("Histomax", clustering3d.create_histoMax) chains.register_backend2( "Histomaxvardrth0", lambda p, i: clustering3d.create_histoMax_variableDr( p, i, seed_threshold=0.)) chains.register_backend2( "Histomaxvardrth10", lambda p, i: clustering3d.create_histoMax_variableDr( p, i, seed_threshold=10.))
# load HGCAL TPG simulation process.load('L1Trigger.L1THGCal.hgcalTriggerPrimitives_cff') process.load('L1Trigger.L1THGCalUtilities.hgcalTriggerNtuples_cff') from L1Trigger.L1THGCalUtilities.hgcalTriggerChains import HGCalTriggerChains import L1Trigger.L1THGCalUtilities.vfe as vfe import L1Trigger.L1THGCalUtilities.concentrator as concentrator import L1Trigger.L1THGCalUtilities.clustering2d as clustering2d import L1Trigger.L1THGCalUtilities.clustering3d as clustering3d import L1Trigger.L1THGCalUtilities.customNtuples as ntuple chains = HGCalTriggerChains() # Register algorithms ## VFE chains.register_vfe("Floatingpoint8", lambda p : vfe.create_compression(p, 4, 4, True)) ## ECON chains.register_concentrator("Supertriggercell", concentrator.create_supertriggercell) chains.register_concentrator("Threshold", concentrator.create_threshold) ## BE1 chains.register_backend1("Ref2d", clustering2d.create_constrainedtopological) chains.register_backend1("Dummy", clustering2d.create_dummy) ## BE2 chains.register_backend2("Ref3d", clustering3d.create_distance) chains.register_backend2("Histomax", clustering3d.create_histoMax) chains.register_backend2("Histomaxvardrth0", lambda p,i : clustering3d.create_histoMax_variableDr(p,i,seed_threshold=0.)) chains.register_backend2("Histomaxvardrth10", lambda p,i : clustering3d.create_histoMax_variableDr(p,i,seed_threshold=10.)) chains.register_backend2("Histomaxvardrth20", lambda p,i : clustering3d.create_histoMax_variableDr(p,i,seed_threshold=20.)) # Register ntuples # Store gen info only in the reference ntuple ntuple_list_ref = ['event', 'gen', 'multiclusters']
process.load('L1Trigger.L1THGCal.hgcalTriggerPrimitives_cff') process.load('L1Trigger.L1THGCalUtilities.HGC3DClusterGenMatchSelector_cff') process.load('L1Trigger.L1THGCalUtilities.hgcalTriggerNtuples_cff') from L1Trigger.L1THGCalUtilities.hgcalTriggerChains import HGCalTriggerChains import L1Trigger.L1THGCalUtilities.vfe as vfe import L1Trigger.L1THGCalUtilities.concentrator as concentrator import L1Trigger.L1THGCalUtilities.clustering2d as clustering2d import L1Trigger.L1THGCalUtilities.clustering3d as clustering3d import L1Trigger.L1THGCalUtilities.selectors as selectors import L1Trigger.L1THGCalUtilities.customNtuples as ntuple chains = HGCalTriggerChains() # Register algorithms ## VFE chains.register_vfe("Floatingpoint8", lambda p : vfe.create_compression(p, 4, 4, True)) ## ECON chains.register_concentrator("Supertriggercell", concentrator.create_supertriggercell) chains.register_concentrator("Threshold", concentrator.create_threshold) ## BE1 chains.register_backend1("Ref2d", clustering2d.create_constrainedtopological) chains.register_backend1("Dummy", clustering2d.create_dummy) ## BE2 chains.register_backend2("Ref3d", clustering3d.create_distance) chains.register_backend2("Histomax", clustering3d.create_histoMax) chains.register_backend2("Histomaxvardrth0", lambda p,i : clustering3d.create_histoMax_variableDr(p,i,seed_threshold=0.)) chains.register_backend2("Histomaxvardrth10", lambda p,i : clustering3d.create_histoMax_variableDr(p,i,seed_threshold=10.)) chains.register_backend2("Histomaxvardrth20", lambda p,i : clustering3d.create_histoMax_variableDr(p,i,seed_threshold=20.)) # Register selector chains.register_selector("Genmatch", selectors.create_genmatch) # Register ntuples