CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_7/src/FastSimulation/MaterialEffects/python/MaterialEffects_cfi.py

Go to the documentation of this file.
00001 # The following comments couldn't be translated into the new config version:
00002 
00003 #        pi+      pi-    K0L      K+      K-      p      pbar     n      nbar
00004 #       0.2508, 0.2549, 0.3380, 0.2879, 0.3171, 0.3282, 0.5371, 0.3859, 0.5086 # before 170 tuning
00005 
00006 import FWCore.ParameterSet.Config as cms
00007 
00008 # Material effects to be simulated in the tracker material and associated cuts
00009 MaterialEffectsBlock = cms.PSet(
00010     MaterialEffects = cms.PSet(
00011 
00012         use_hardcoded_geometry = cms.bool(True),
00013     
00014         # Material Properties (Silicon)
00015         # A
00016         A = cms.double(28.0855),
00017         # Z
00018         Z = cms.double(14.0),
00019         # Density in g/cm3
00020         Density = cms.double(2.329),
00021         # One radiation length in cm
00022         RadiationLength = cms.double(9.36),
00023 
00024         # General switches
00025         # Enable photon pair conversion 
00026         PairProduction = cms.bool(True),
00027         # Smallest photon energy allowed for conversion
00028         photonEnergy = cms.double(0.1),
00029         # Enable electron Bremsstrahlung
00030         Bremsstrahlung = cms.bool(True),
00031         # Enable muon  Bremsstrahlung
00032         MuonBremsstrahlung = cms.bool(False),
00033         # Smallest bremstrahlung photon energy
00034         bremEnergy = cms.double(0.1),
00035         # Smallest bremsstrahlung energy fraction (wrt to the electron energy)
00036         bremEnergyFraction = cms.double(0.005),
00037         # Enable dE/dx
00038         EnergyLoss = cms.bool(True),
00039         # Enable Multiple Scattering
00040         MultipleScattering = cms.bool(True),
00041         # Smallest pT for the Mutliple Scattering 
00042         pTmin = cms.double(0.2),
00043         # Enable Nuclear Interactions
00044         NuclearInteraction = cms.bool(True),
00045         # The energies of the pions used in the above files (same order)
00046         pionEnergies = cms.untracked.vdouble(
00047             1.0, 2.0, 3.0, 4.0, 5.0, 7.0, 9.0, 12.0, 15.0, 20.0, 
00048             30.0, 50.0, 100.0, 200.0, 300.0, 500.0, 700.0, 1000.0
00049         ),
00050         # The particle types simulated
00051         pionTypes = cms.untracked.vint32(
00052             211, -211, 130, 321, -321, 2212, -2212, 2112, -2112
00053         ),
00054         # The corresponding particle names
00055         pionNames = cms.untracked.vstring(
00056             'piplus', 'piminus', 'K0L', 'Kplus', 'Kminus', 'p', 'pbar', 'n', 'nbar'
00057         ),
00058         # The corresponding particle masses
00059         pionMasses = cms.untracked.vdouble(
00060             0.13957, 0.13957, 0.497648, 0.493677, 0.493677, 
00061             0.93827, 0.93827, 0.939565, 0.939565 
00062         ),
00063         # The corresponding smallest momenta for which an inleatic interaction may occur
00064         pionMinP = cms.untracked.vdouble( 
00065             0.7, 0.0, 1.0, 1.0, 0.0, 1.1, 0.0, 1.1, 0.0 
00066         ),
00067 
00068 
00069         # The scaling of the inelastic cross section with energy 
00070         ratios = cms.untracked.vdouble(
00071             # pi+ (211)
00072             0.031390573,0.531842852,0.819614219,0.951251711,0.986382750,1.000000000,0.985087033,0.982996773,
00073             0.990832192,0.992237923,0.994841580,0.973816742,0.967264815,0.971714258,0.969122824,0.978681792,
00074             0.977312732,0.984255819,
00075             # pi- (-211)
00076             0.035326512,0.577356403,0.857118809,0.965683504,0.989659360,1.000000000,0.989599240,0.980665408,
00077             0.988384816,0.981038152,0.975002104,0.959996152,0.953310808,0.954705592,0.957615400,0.961150456,
00078             0.965022184,0.960573304,
00079             # K0L (130)
00080             0.000000000,0.370261189,0.649793096,0.734342408,0.749079499,0.753360057,0.755790543,0.755872164,
00081             0.751337674,0.746685288,0.747519634,0.739357554,0.735004444,0.803039922,0.832749896,0.890900187,
00082             0.936734805,1.000000000,
00083             # K+ (321)
00084             0.000000000,0.175571717,0.391683394,0.528946472,0.572818635,0.614210280,0.644125538,0.670304050,
00085             0.685144573,0.702870161,0.714708513,0.730805263,0.777711536,0.831090576,0.869267129,0.915747562,
00086             0.953370523,1.000000000,
00087             # K- (-321)
00088             0.000000000,0.365353210,0.611663677,0.715315908,0.733498956,0.738361302,0.745253654,0.751459671,
00089             0.750628335,0.746442657,0.750850669,0.744895986,0.735093960,0.791663444,0.828609543,0.889993040,
00090             0.940897842,1.000000000,
00091             # proton (2212)
00092             0.000000000,0.042849136,0.459103223,0.666165343,0.787930873,0.890397011,0.920999533,0.937832788,
00093             0.950920131,0.966595049,0.979542270,0.988061653,0.983260159,0.988958431,0.991723494,0.995273237,
00094             1.000000000,0.999962634,
00095             # anti-proton (-2212)
00096             1.000000000,0.849956907,0.775625988,0.802018230,0.816207485,0.785899785,0.754998487,0.728977244, 
00097             0.710010673,0.670890339,0.665627872,0.652682888,0.613334247,0.647534574,0.667910938,0.689919693, 
00098             0.709200185,0.724199928,
00099             # neutron (2112)
00100             0.000000000,0.059216484,0.437844536,0.610370629,0.702090648,0.780076890,0.802143073,0.819570432,
00101             0.825829666,0.840079750,0.838435509,0.837529986,0.835687165,0.885205014,0.912450156,0.951451221,
00102             0.973215562,1.000000000,
00103             # anti-neutron
00104             1.000000000,0.849573257,0.756479495,0.787147094,0.804572414,0.791806302,0.760234588,0.741109531,
00105             0.724118186,0.692829761,0.688465897,0.671806061,0.636461171,0.675314029,0.699134460,0.724305037,
00106             0.742556115,0.758504713
00107         ),
00108         
00109         # The correspondence between long-lived hadrons/ions and the simulated hadron list
00110         protons = cms.untracked.vint32(2212, 3222, -101, -102, -103, -104),
00111         antiprotons = cms.untracked.vint32(-2212, -3222),
00112         neutrons = cms.untracked.vint32(2112, 3122, 3112, 3312, 3322, 3334, -3334),
00113         antineutrons = cms.untracked.vint32(-2112, -3122, -3112, -3312, -3322), 
00114         K0Ls = cms.untracked.vint32(130, 310),
00115         Kplusses = cms.untracked.vint32(321),
00116         Kminusses = cms.untracked.vint32(-321),
00117         Piplusses = cms.untracked.vint32(211),
00118         Piminusses = cms.untracked.vint32(-211),
00119 
00120         # The smallest pion energy for which nuclear interactions are simulated
00121         pionEnergy = cms.double(0.2),
00122         
00123         # The algorihm to detrmine the distance between the primary and the secondaries
00124         # 0 = no link
00125         # 1 = sin(theta12) - ~ ok at all momenta
00126         # 2 = sin(theta12) * p1/p2 - bad, should not be used
00127         distAlgo = cms.uint32(1),
00128         distCut = cms.double(0.020), ## Default is 0.020 for algo 1;
00129         
00130         # The ratio between radiation lengths and interation lengths in the tracker at 15 GeV
00131         lengthRatio = cms.vdouble(
00132         #        pi+      pi-    K0L      K+      K-      p      pbar     n      nbar
00133         #   0.2508, 0.2549, 0.3380, 0.2879, 0.3171, 0.3282, 0.5371, 0.3859, 0.5086 # before 170 tuning
00134             0.2257, 0.2294, 0.3042, 0.2591, 0.2854, 0.3101, 0.5216, 0.3668, 0.4898 # after 170 tuning
00135         ),
00136 
00137         # and a global fudge factor for TEC Layers to make it fit
00138         fudgeFactor = cms.double(1.2),
00139         
00140         # The file with the last nuclear interaction read in the previous run
00141         # to be put in the local running directory (if desired)
00142         inputFile = cms.untracked.string('NuclearInteractionInputFile.txt'),
00143    )
00144 )
00145 
00146 MaterialEffectsForMuonsBlock = cms.PSet(
00147     MaterialEffectsForMuons = cms.PSet(
00148 
00149         use_hardcoded_geometry = cms.bool(True),
00150         #print hi
00151         #print use_hardcoded_geometry
00152 
00153         # Material Properties (Iron - this is for muons)
00154         # A
00155         A = cms.double(55.8455),
00156         # Z
00157         Z = cms.double(26.0),
00158         # Density in g/cm3
00159         Density = cms.double(7.87),
00160         # One radiation length in cm
00161         RadiationLength = cms.double(1.76),
00162 
00163         # GEneral switches
00164         # Enable photon pair conversion 
00165         PairProduction = cms.bool(False),
00166         # Smallest photon energy allowed for conversion
00167         photonEnergy = cms.double(0.1),
00168         # Enable electron Bremsstrahlung
00169         Bremsstrahlung = cms.bool(False),
00170         # Enable muon  Bremsstrahlung
00171         MuonBremsstrahlung = cms.bool(False),
00172         # Smallest bremstrahlung photon energy
00173         bremEnergy = cms.double(0.1),
00174         # Smallest bremsstrahlung energy fraction (wrt to the electron energy)
00175         bremEnergyFraction = cms.double(0.005),
00176         # Enable dE/dx
00177         EnergyLoss = cms.bool(True),
00178         # Enable Multiple Scattering
00179         MultipleScattering = cms.bool(True),
00180         # Smallest pT for the Mutliple Scattering 
00181         pTmin = cms.double(0.3),
00182         # Enable Nuclear Interactions
00183         NuclearInteraction = cms.bool(False)
00184 
00185     )
00186 )
00187 
00188 MaterialEffectsForMuonsInECALBlock = cms.PSet(
00189     MaterialEffectsForMuonsInECAL = cms.PSet(
00190 
00191         use_hardcoded_geometry = cms.bool(True),
00192 
00193         # Material Properties (PbW04 - this is for muons)
00194         # A
00195         A = cms.double(55.8455),
00196         # Z
00197         Z = cms.double(26.0),
00198         # Density in g/cm3
00199         Density = cms.double(8.280),
00200         # One radiation length in cm
00201         RadiationLength = cms.double(0.89),
00202 
00203         # GEneral switches
00204         # Enable photon pair conversion 
00205         PairProduction = cms.bool(False),
00206         # Smallest photon energy allowed for conversion
00207         photonEnergy = cms.double(0.1),
00208         # Enable electron Bremsstrahlung
00209         Bremsstrahlung = cms.bool(False),
00210         # Enable muon  Bremsstrahlung
00211         MuonBremsstrahlung = cms.bool(False),
00212         # Smallest bremstrahlung photon energy
00213         bremEnergy = cms.double(0.1),
00214         # Smallest bremsstrahlung energy fraction (wrt to the electron energy)
00215         bremEnergyFraction = cms.double(0.005),
00216         # Enable dE/dx
00217         EnergyLoss = cms.bool(False),
00218         # Enable Multiple Scattering
00219         MultipleScattering = cms.bool(False),
00220         # Smallest pT for the Mutliple Scattering 
00221         pTmin = cms.double(0.3),
00222         # Enable Nuclear Interactions
00223         NuclearInteraction = cms.bool(False)
00224     )
00225 )
00226 
00227 MaterialEffectsForMuonsInHCALBlock = cms.PSet(
00228     MaterialEffectsForMuonsInHCAL = cms.PSet(
00229 
00230         use_hardcoded_geometry = cms.bool(True),
00231 
00232         # Material Properties (BRASS - this is for muons)
00233         # A
00234         A = cms.double(64.0),
00235         # Z
00236         Z = cms.double(29.0),
00237         # Density in g/cm3
00238         Density = cms.double(8.5),
00239         # One radiation length in cm
00240         RadiationLength = cms.double(1.44),
00241 
00242         # GEneral switches
00243         # Enable photon pair conversion 
00244         PairProduction = cms.bool(False),
00245         # Smallest photon energy allowed for conversion
00246         photonEnergy = cms.double(0.1),
00247         # Enable electron Bremsstrahlung
00248         Bremsstrahlung = cms.bool(False),
00249         # Enable muon  Bremsstrahlung
00250         MuonBremsstrahlung = cms.bool(False),
00251         # Smallest bremstrahlung photon energy
00252         bremEnergy = cms.double(0.1),
00253         # Smallest bremsstrahlung energy fraction (wrt to the electron energy)
00254         bremEnergyFraction = cms.double(0.005),
00255         # Enable dE/dx
00256         EnergyLoss = cms.bool(False),
00257         # Enable Multiple Scattering
00258         MultipleScattering = cms.bool(False),
00259         # Smallest pT for the Mutliple Scattering 
00260         pTmin = cms.double(0.3),
00261         # Enable Nuclear Interactions
00262         NuclearInteraction = cms.bool(False)
00263 
00264     )
00265 )
00266