Skip to content

Commit

Permalink
change flags default and remove print out
Browse files Browse the repository at this point in the history
  • Loading branch information
carolinecollard authored and ferencek committed Dec 5, 2024
1 parent 777c30f commit da02257
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
13 changes: 12 additions & 1 deletion SimGeneral/PreMixingModule/python/mixOne_premix_on_sim_cfi.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,18 @@
(runDependentForPixel & premix_stage2).toModify(mixData.workers.pixel,
UseReweighting=False,
applyLateReweighting=True,
store_SimHitEntryExitPoints=False
usePixelExtraLiteFormat = False,
store_SimHitEntryExitPoints=False,
store_SimHitEntryExitPointsLite = False
)

from Configuration.ProcessModifiers.runDependentForPixelVal_cff import runDependentForPixelVal
(runDependentForPixelVal & premix_stage2).toModify(mixData.workers.pixel,
UseReweighting=False,
applyLateReweighting=True,
usePixelExtraLiteFormat = True,
store_SimHitEntryExitPoints=False,
store_SimHitEntryExitPointsLite = False
)

from Configuration.Eras.Modifier_fastSim_cff import fastSim
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ bool SiPixelChargeReweightingAlgorithm::lateSignalReweight(const PixelGeomDetUni
}
ierr = PixelTempRewgt2D(ID0, ID1, pixrewgt);
if (ierr != 0) {
edm::LogError("SiPixelChargeReweightingAlgorithm") << "Cluster Charge Reweighting did not work properly.";
LogDebug("SiPixelChargeReweightingAlgorithm ") << "Cluster Charge Reweighting did not work properly.";
return false;
}
if (PrintClusters) {
Expand Down
6 changes: 2 additions & 4 deletions SimTracker/SiPixelDigitizer/plugins/PreMixingSiPixelWorker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ PreMixingSiPixelWorker::PreMixingSiPixelWorker(const edm::ParameterSet& ps,
LogDebug("PreMixingSiPixelWorker") << "applyLateReweighting_ in PreMixingSiPixelWorker " << applyLateReweighting_;


std::cout << " applyLateReweighting_ in PreMixingSiPixelWorker " << applyLateReweighting_ << std::endl;
std::cout << " usePixelExtraLiteFormat_ in PreMixingSiPixelWorker " << usePixelExtraLiteFormat_ << std::endl;
LogDebug("PreMixingSiPixelWorker") << " applyLateReweighting_ in PreMixingSiPixelWorker " << applyLateReweighting_ ;
LogDebug("PreMixingSiPixelWorker") << " usePixelExtraLiteFormat_ in PreMixingSiPixelWorker " << usePixelExtraLiteFormat_ ;

PixelDigiToken_ = iC.consumes<edm::DetSetVector<PixelDigi>>(pixeldigi_collectionSig_);
PixelDigiPToken_ = iC.consumes<edm::DetSetVector<PixelDigi>>(pixeldigi_collectionPile_);
Expand Down Expand Up @@ -273,7 +273,6 @@ void PreMixingSiPixelWorker::addPileups(PileUpEventPrincipal const& pep, edm::Ev
if (iu->type().isTrackerPixel()) {
uint32_t detIDinLoop = iu->geographicalId().rawId();
if (detIDinLoop == detID) {
std::cout << " lateSignalReweight with Extra " << std::endl;
digitizer_.lateSignalReweight(
dynamic_cast<const PixelGeomDetUnit*>(iu), TempDigis, TempSimExtra, tTopo, engine);
break;
Expand All @@ -294,7 +293,6 @@ void PreMixingSiPixelWorker::addPileups(PileUpEventPrincipal const& pep, edm::Ev
if (iu->type().isTrackerPixel()) {
uint32_t detIDinLoop = iu->geographicalId().rawId();
if (detIDinLoop == detID) {
std::cout << " lateSignalReweight with Extra Lite " << std::endl;
digitizer_.lateSignalReweight(
dynamic_cast<const PixelGeomDetUnit*>(iu), TempDigis, TempSimExtra, tTopo, engine);
break;
Expand Down

0 comments on commit da02257

Please sign in to comment.