Skip to content

Commit

Permalink
put in failsafe to not run PreMixing and HIP simulation simultaneously
Browse files Browse the repository at this point in the history
  • Loading branch information
mdhildreth committed Dec 7, 2016
1 parent c02ee0e commit ef931f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion SimGeneral/MixingModule/python/SiStripSimParameters_cfi.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
SingleStripNoise = cms.bool(True), #The noise RMS is read from the Db. If false it is considered the central strip noise
CommonModeNoise = cms.bool(True),
BaselineShift = cms.bool(True),
APVSaturationFromHIP = cms.bool(True),
APVSaturationFromHIP = cms.bool(False),
APVSaturationProbScaling = cms.double(1.0),
APVProbabilityFile = cms.FileInPath("SimTracker/SiStripDigitizer/data/APVProbaList.txt"),
cmnRMStib = cms.double(5.92),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ SiStripDigitizerAlgorithm::SiStripDigitizerAlgorithm(const edm::ParameterSet& co
else LogDebug("SiStripDigitizerAlgorithm")<<" SingleStripNoise: OFF";
if(CommonModeNoise) LogDebug("SiStripDigitizerAlgorithm")<<" CommonModeNoise: ON";
else LogDebug("SiStripDigitizerAlgorithm")<<" CommonModeNoise: OFF";
if(PreMixing_ && APVSaturationFromHIP) throw cms::Exception("PreMixing does not work with HIP loss simulation yet");
}

SiStripDigitizerAlgorithm::~SiStripDigitizerAlgorithm(){
Expand Down

0 comments on commit ef931f1

Please sign in to comment.