Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
extention of neutron background simulation
- Loading branch information
Showing
6 changed files
with
80 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#ifndef SimG4Core_Application_CMSEmParticleList_h | ||
#define SimG4Core_Application_CMSEmParticleList_h 1 | ||
|
||
// V.Ivanchenko 6 March 2017 | ||
// List of Geant4 basic particle names used in SIM step | ||
|
||
#include "globals.hh" | ||
|
||
static const G4int nEmParticles = 39; | ||
static const G4String EmPartNames[nEmParticles] = | ||
{ | ||
"gamma", "e-", "e+", "mu+", "mu-", | ||
"pi+", "pi-", "kaon+", "kaon-", "proton", | ||
"anti_proton", "alpha", "He3", "GenericIon", "B+", | ||
"B-", "D+", "D-", "Ds+", "Ds-", | ||
"anti_He3", "anti_alpha","anti_deuteron","anti_lambda_c+","anti_omega-", | ||
"anti_sigma_c+","anti_sigma_c++", "anti_sigma+", "anti_sigma-","anti_triton", | ||
"sigma_c+", "sigma_c++", "sigma+", "sigma-", "tau+", | ||
"tau-", "triton", "xi_c+", "xi-" | ||
}; | ||
|
||
|
||
#endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
def neutronBG(process): | ||
|
||
# common fragment allowing to simulate neutron background in muon system | ||
|
||
if hasattr(process,'g4SimHits'): | ||
# time window 100 millisecond | ||
process.common_maximum_time.MaxTrackTime = cms.double(10000000000.0) | ||
process.common_maximum_time.DeadRegions = cms.vstring() | ||
# Physics List XS | ||
process.g4SimHits.Physics.type = cms.string('SimG4Core/Physics/FTFP_BERT_XS_EML') | ||
process.g4SimHits.Physics.CutsOnProton = cms.untracked.bool(True) | ||
process.g4SimHits.Physics.FlagFluo = cms.bool(True) | ||
process.g4SimHits.Physics.ThermalNeutrons = cms.untracked.bool(False) | ||
# Eta cut | ||
process.g4SimHits.Generator.MinEtaCut = cms.double(-7.0) | ||
process.g4SimHits.Generator.MaxEtaCut = cms.double(7.0) | ||
# stacking action | ||
process.g4SimHits.StackingAction.MaxTrackTime = cms.double(10000000000.0) | ||
process.g4SimHits.StackingAction.DeadRegions = cms.vstring() | ||
process.g4SimHits.StackingAction.KillHeavy = cms.bool(False) | ||
process.g4SimHits.StackingAction.GammaThreshold = cms.double(0.0) | ||
# stepping action | ||
process.g4SimHits.SteppingAction.MaxTrackTime = cms.double(10000000000.0) | ||
process.g4SimHits.SteppingAction.DeadRegions = cms.vstring() | ||
# Russian roulette disabled | ||
process.g4SimHits.StackingAction.RusRoGammaEnergyLimit = cms.double(0.0) | ||
process.g4SimHits.StackingAction.RusRoNeutronEnergyLimit = cms.double(0.0) | ||
# full simulation of HF | ||
process.g4SimHits.HFShower.UseHFGflash = cms.bool(False) | ||
|
||
return(process) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters