test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
setDefaults.py
Go to the documentation of this file.
1 # -*- coding: utf-8 -*-
2 
3 import FWCore.ParameterSet.Config as cms
4 import os
5 
6 def setDefaults(process):
7 
8  # Define configuration parameter default values
9  if not hasattr(process, "customization_options"):
10  process.customization_options = cms.PSet(
11  parseCommandLine = cms.bool(False), # enable reading of configuration parameter values by parsing command-line
12  isMC = cms.bool(True), # set to true for MC/false for data
13  ZmumuCollection = cms.InputTag('goldenZmumuCandidatesGe2IsoMuons'), # collection of selected Z->mumu candidates
14  inputProcessRECO = cms.string("RECO"), # instanceLabel to be used for retrieving collections of reconstructed objects reconstructed in original Z->mumu event
15  inputProcessSIM = cms.string("HLT"), # instanceLabel to be used for retrieving collections of generator level objects in original Z->mumu event
16  # CV: use inputProcessRECO = inputProcessSIM = 'HLT' for test samples privately producer with cmsDriver;
17  # use inputProcessRECO = 'RECO', inputProcessSIM = 'SIM' for samples from official production
18  cleaningMode = cms.string("DEDX"), # option for muon calo. cleaning: 'DEDX'=muon energy loss expected on average, 'PF'=actual energy deposits associated to PFMuon
19  muonCaloCleaningSF = cms.double(1.0), # option for subtracting too much (muonCaloSF > 1.0) or too few (muonCaloSF < 1.0) calorimeter energy around muon,
20  # too be used for studies of systematic uncertainties
21  muonTrackCleaningMode = cms.int32(2), # option for muon track cleaning: 1=remove at most one track/charged PFCandidate matching muon,
22  # 2=remove all tracks/charged PFCandidates matched to muon in dR
23  mdtau = cms.int32(0), # mdtau value passed to TAUOLA: 0=no tau decay mode selection,
24  useTauolaPolarization = cms.bool(False), # disable tau polarization effects in TAUOLA, weight events by weights computed by TauSpinner instead
25  transformationMode = cms.int32(1), # transformation mode: 0=mumu->mumu, 1=mumu->tautau
26  rfRotationAngle = cms.double(90.), # rotation angle around Z-boson direction, used when replacing muons by simulated taus
27  embeddingMode = cms.string("RH"), # embedding mode: 'PF'=particle flow embedding, 'RH'=recHit embedding
28  replaceGenOrRecMuonMomenta = cms.string("rec"), # take momenta of generated tau leptons from: 'rec'=reconstructed muons, 'gen'=generator level muons
29  applyMuonRadiationCorrection = cms.string(""), # should I correct the momementa of replaced muons for muon -> muon + photon radiation ?
30  # (""=no correction, "pythia"/"photos"=correction is applied using PYTHIA/PHOTOS)
31  minVisibleTransverseMomentum = cms.string(""), # generator level cut on visible transverse momentum (typeN:pT,[...];[...])
32  useJson = cms.bool(False), # should I enable event selection by JSON file ?
33  overrideBeamSpot = cms.bool(False), # should I override beamspot in globaltag ?
34  applyZmumuSkim = cms.bool(False), # should I apply the Z->mumu event selection cuts ?
35  applyMuonRadiationFilter = cms.bool(False), # should I apply the filter to reject events with muon -> muon + photon radiation ?
36  disableCaloNoise = cms.bool(True), # should I disable the simulation of calorimeter noise when simulating the detector response for the embedded taus ?
37  applyRochesterMuonCorr = cms.bool(True), # should I apply muon momentum corrections determined by the Rochester group (documented in AN-12/298) ?
38  skipCaloRecHitMixing = cms.bool(False), # disable mixing of calorimeter recHit collections
39  # WARNING: needs to be set to false for production samples !!
40  muonMixingMode = cms.int32(1) # option for mixing hits and tracks in muon detectors: 1=mix recHits, run muon track segment and track reconstruction on mixed recHit collection;
41  # mix recHits, but mix tracks instead of rerunning track reconstruction on mixed recHit collection; 3=mix tracks, do not mix recHits
42  # WARNING: options 2 and 3 not thoroughly tested yet !!
43  )
def setDefaults
Definition: setDefaults.py:6