Skip to content

Commit

Permalink
fixed check on input parameters, propagated new python name
Browse files Browse the repository at this point in the history
  • Loading branch information
veszpv committed Aug 6, 2021
1 parent 1e5f67d commit 4f1d3f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from RecoLocalTracker.SiStripZeroSuppression.SiStripZeroSuppression_cfi import *
from RecoLocalTracker.SiStripClusterizer.SiStripClusterizer_cfi import *
from RecoLocalTracker.SiPixelClusterizer.siPixelClustersPreSplitting_cff import *
from RecoLocalTracker.SiPixelDigiReProducers.siPixelDigiMorphed_cfi import *
from RecoLocalTracker.SiPixelDigiReProducers.siPixelDigisMorphed_cfi import *
from RecoLocalTracker.SiPixelRecHits.SiPixelRecHits_cfi import *
from RecoLocalTracker.SubCollectionProducers.clustersummaryproducer_cfi import *

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ SiPixelDigiMorphing::SiPixelDigiMorphing(edm::ParameterSet const& conf)
<< " number of ROCs\n";
}

if (ncols_r_ + 2 * iters_ <= int(sizeof(uint64_t))) {
if (ncols_r_ + 2 * iters_ <= int(sizeof(uint64_t)*8)) {
ksize_ = 2 * iters_ + 1;
} else {
throw cms::Exception("Configuration") << "[SiPixelDigiMorphing]:"
<< " too many columns per ROC"
<< " or too many iterations set\n"
<< " Ncol/Nrocs+2*iters should not be"
<< " more than " << sizeof(uint64_t) << "\n";
<< " more than " << sizeof(uint64_t)*8 << "\n";
}

std::vector<int32_t> k1(conf.getParameter<std::vector<int32_t>>("kernel1"));
Expand Down

0 comments on commit 4f1d3f7

Please sign in to comment.