CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/L1Trigger/Configuration/python/customise_l1TriggerConfiguration.py

Go to the documentation of this file.
00001 #
00002 # special configuration cases for L1 trigger masks, prescale factors and L1 menu 
00003 #
00004 # comment/un-comment the corresponding flag
00005 #
00006 #
00007 # V.M. Ghete 2010-06-10
00008 
00009 import FWCore.ParameterSet.Config as cms
00010 
00011 def customiseL1TriggerConfiguration(process):
00012     
00013     # reset algorithm trigger masks
00014     
00015     resetL1GtTriggerMaskAlgoTrig = False
00016     resetL1GtTriggerMaskAlgoTrig = True
00017     
00018     if resetL1GtTriggerMaskAlgoTrig == True :
00019         from L1Trigger.Configuration.L1Trigger_custom import customiseResetMasksAlgoTriggers
00020         process=customiseResetMasksAlgoTriggers(process)
00021 
00022     # reset technical trigger masks
00023     
00024     resetL1GtTriggerMaskTechTrig = False
00025     resetL1GtTriggerMaskTechTrig = True
00026     
00027     if resetL1GtTriggerMaskTechTrig == True :
00028         from L1Trigger.Configuration.L1Trigger_custom import customiseResetMasksTechTriggers
00029         process=customiseResetMasksTechTriggers(process)
00030         
00031         
00032     # reset algorithm trigger veto masks
00033     
00034     resetL1GtTriggerMaskVetoAlgoTrig = False
00035     resetL1GtTriggerMaskVetoAlgoTrig = True
00036     
00037     if resetL1GtTriggerMaskVetoAlgoTrig == True :
00038         from L1Trigger.Configuration.L1Trigger_custom import customiseResetVetoMasksAlgoTriggers
00039         process=customiseResetVetoMasksAlgoTriggers(process)
00040 
00041     # reset technical trigger veto masks
00042     
00043     resetL1GtTriggerMaskVetoTechTrig = False
00044     resetL1GtTriggerMaskVetoTechTrig = True
00045     
00046     if resetL1GtTriggerMaskVetoTechTrig == True :
00047         from L1Trigger.Configuration.L1Trigger_custom import customiseResetVetoMasksTechTriggers
00048         process=customiseResetVetoMasksTechTriggers(process)
00049 
00050         
00051 
00052     
00053     # unprescale algorithm triggers (all prescale factors set to 1)
00054     
00055     # temporary solution
00056     unprescaleL1GtAlgoTriggers = False
00057     unprescaleL1GtAlgoTriggers = True
00058     
00059     if unprescaleL1GtAlgoTriggers == True :
00060         from L1Trigger.Configuration.L1Trigger_custom import customiseUnprescaleAlgoTriggers
00061         process=customiseUnprescaleAlgoTriggers(process)
00062 
00063     # unprescale technical triggers (all prescale factors set to 1)
00064     
00065     # temporary solution
00066     unprescaleL1GtTechTriggers = False
00067     unprescaleL1GtTechTriggers = True
00068     
00069     if unprescaleL1GtTechTriggers == True :
00070         from L1Trigger.Configuration.L1Trigger_custom import customiseUnprescaleTechTriggers
00071         process=customiseUnprescaleTechTriggers(process)
00072 
00073 
00074 
00075     # overwrite the L1 trigger menu
00076     
00077     overwriteL1Menu = False
00078     #overwriteL1Menu = True
00079     
00080     if overwriteL1Menu == True :
00081         from L1Trigger.Configuration.L1Trigger_custom import customiseL1Menu
00082         process=customiseL1Menu(process)
00083         
00084         
00085  
00086     #
00087     return (process)