parameters: (step, evt_type, energy, evtnumber)
return_statement: return generator
docstring: Here the settings for the Z ee simulation are added to the process.
      Energy parameter is not used.
docstring_summary: Here the settings for the Z ee simulation are added to the process.
      Energy parameter is not used.
docstring_tokens: Here the settings for the Z ee simulation are added to the process . Energy parameter is not used .
function: def _generate_ZPll(step, evt_type, energy, evtnumber):
      """
      Here the settings for the Z ee simulation are added to the process.
      Energy parameter is not used.
      """
        
      func_id=mod_id+"["+sys._getframe().f_code.co_name+"]"
      common.log( func_id+" Entering... ")      
  
      # Choose between muon or electron decay of the Z
      electron_flag = "0"
      muon_flag = "0"
      tau_flag = "0"
      if evt_type == "ZPEE":
          electron_flag = "1"
      elif evt_type == "ZPMUMU":
          muon_flag = "1"    
      elif evt_type == "ZPTT":
          tau_flag = "1"
      else:
          electron_flag=muon_flag=tau_flag= "1"    
      
      # Build the process source
      generator = cms.EDFilter('Pythia6GeneratorFilter', 
                        pythiaPylistVerbosity=cms.untracked.int32(0),
                        pythiaHepMCVerbosity=cms.untracked.bool(False),
                        maxEventsToPrint = cms.untracked.int32(0), 
                        filterEfficiency = cms.untracked.double(1),    
                        PythiaParameters = cms.PSet\
                                 (parameterSets = cms.vstring('PythiaUESettings','processParameters'),
                                  PythiaUESettings=user_pythia_ue_settings(),
                                  processParameters=\
                                      cms.vstring('MSEL       = 0    ', 
                                                  'MSUB(141)  = 1    ',#  !ff  gamma z0 Z0', 
                                                  'MSTP(44)   = 3    ',#  !only select the Z process', 
                                                  'PMAS(32,1) = %s' %energy,#  !mass of Zprime', 
                                                  'CKIN(1)    = 400  ',#  !(D=2. GeV)', 
                                                  'MDME(289,1)= 0    ',#  !d dbar', 
                                                  'MDME(290,1)= 0    ',#  !u ubar', 
                                                  'MDME(291,1)= 0    ',#  !s sbar', 
                                                  'MDME(292,1)= 0    ',#  !c cbar', 
                                                  'MDME(293,1)= 0    ',#  !b bar', 
                                                  'MDME(294,1)= 0    ',#  !t tbar', 
                                                  'MDME(295,1)= 0    ',#  !4th gen Q Qbar', 
                                                  'MDME(296,1)= 0    ',# !4th gen Q Qbar', 
                                                  'MDME(297,1)= %s ' %electron_flag,#  !e e', 
                                                  'MDME(298,1)= 0    ',#  !neutrino e e', 
                                                  'MDME(299,1)= %s ' %muon_flag,#  ! mu mu', 
                                                  'MDME(300,1)= 0    ',#  !neutrino mu mu', 
                                                  'MDME(301,1)= %s    ' %tau_flag,#  !tau tau', 
                                                  'MDME(302,1)= 0    ',#  !neutrino tau tau', 
                                                  'MDME(303,1)= 0    ',#  !4th generation lepton', 
                                                  'MDME(304,1)= 0    ',#  !4th generation neutrino', 
                                                  'MDME(305,1)= 0    ',#  !W W', 
                                                  'MDME(306,1)= 0    ',#  !H  charged higgs', 
                                                  'MDME(307,1)= 0    ',#  !Z', 
                                                  'MDME(308,1)= 0    ',#  !Z', 
                                                  'MDME(309,1)= 0    ',#  !sm higgs', 
                                                  'MDME(310,1)= 0    ' #  !weird neutral higgs HA')
                                                 )
                                 )
                       )
  
      common.log(func_id+" Returning Generator...")
       
      return generator
function_tokens: def _generate_ZPll ( step , evt_type , energy , evtnumber ) : func_id = mod_id + "[" + sys . _getframe ( ) . f_code . co_name + "]" common . log ( func_id + " Entering... " ) # Choose between muon or electron decay of the Z electron_flag = "0" muon_flag = "0" tau_flag = "0" if evt_type == "ZPEE" : electron_flag = "1" elif evt_type == "ZPMUMU" : muon_flag = "1" elif evt_type == "ZPTT" : tau_flag = "1" else : electron_flag = muon_flag = tau_flag = "1" # Build the process source generator = cms . EDFilter ( 'Pythia6GeneratorFilter' , pythiaPylistVerbosity = cms . untracked . int32 ( 0 ) , pythiaHepMCVerbosity = cms . untracked . bool ( False ) , maxEventsToPrint = cms . untracked . int32 ( 0 ) , filterEfficiency = cms . untracked . double ( 1 ) , PythiaParameters = cms . PSet ( parameterSets = cms . vstring ( 'PythiaUESettings' , 'processParameters' ) , PythiaUESettings = user_pythia_ue_settings ( ) , processParameters = cms . vstring ( 'MSEL       = 0    ' , 'MSUB(141)  = 1    ' , #  !ff  gamma z0 Z0',  'MSTP(44)   = 3    ' , #  !only select the Z process',  'PMAS(32,1) = %s' % energy , #  !mass of Zprime',  'CKIN(1)    = 400  ' , #  !(D=2. GeV)',  'MDME(289,1)= 0    ' , #  !d dbar',  'MDME(290,1)= 0    ' , #  !u ubar',  'MDME(291,1)= 0    ' , #  !s sbar',  'MDME(292,1)= 0    ' , #  !c cbar',  'MDME(293,1)= 0    ' , #  !b bar',  'MDME(294,1)= 0    ' , #  !t tbar',  'MDME(295,1)= 0    ' , #  !4th gen Q Qbar',  'MDME(296,1)= 0    ' , # !4th gen Q Qbar',  'MDME(297,1)= %s ' % electron_flag , #  !e e',  'MDME(298,1)= 0    ' , #  !neutrino e e',  'MDME(299,1)= %s ' % muon_flag , #  ! mu mu',  'MDME(300,1)= 0    ' , #  !neutrino mu mu',  'MDME(301,1)= %s    ' % tau_flag , #  !tau tau',  'MDME(302,1)= 0    ' , #  !neutrino tau tau',  'MDME(303,1)= 0    ' , #  !4th generation lepton',  'MDME(304,1)= 0    ' , #  !4th generation neutrino',  'MDME(305,1)= 0    ' , #  !W W',  'MDME(306,1)= 0    ' , #  !H  charged higgs',  'MDME(307,1)= 0    ' , #  !Z',  'MDME(308,1)= 0    ' , #  !Z',  'MDME(309,1)= 0    ' , #  !sm higgs',  'MDME(310,1)= 0    ' #  !weird neutral higgs HA') ) ) ) common . log ( func_id + " Returning Generator..." ) return generator