Skip to content

Commit da02257

Browse files
carolinecollardferencek
authored andcommitted
change flags default and remove print out
1 parent 777c30f commit da02257

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

SimGeneral/PreMixingModule/python/mixOne_premix_on_sim_cfi.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,18 @@
159159
(runDependentForPixel & premix_stage2).toModify(mixData.workers.pixel,
160160
UseReweighting=False,
161161
applyLateReweighting=True,
162-
store_SimHitEntryExitPoints=False
162+
usePixelExtraLiteFormat = False,
163+
store_SimHitEntryExitPoints=False,
164+
store_SimHitEntryExitPointsLite = False
165+
)
166+
167+
from Configuration.ProcessModifiers.runDependentForPixelVal_cff import runDependentForPixelVal
168+
(runDependentForPixelVal & premix_stage2).toModify(mixData.workers.pixel,
169+
UseReweighting=False,
170+
applyLateReweighting=True,
171+
usePixelExtraLiteFormat = True,
172+
store_SimHitEntryExitPoints=False,
173+
store_SimHitEntryExitPointsLite = False
163174
)
164175

165176
from Configuration.Eras.Modifier_fastSim_cff import fastSim

SimTracker/Common/interface/SiPixelChargeReweightingAlgorithm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ bool SiPixelChargeReweightingAlgorithm::lateSignalReweight(const PixelGeomDetUni
785785
}
786786
ierr = PixelTempRewgt2D(ID0, ID1, pixrewgt);
787787
if (ierr != 0) {
788-
edm::LogError("SiPixelChargeReweightingAlgorithm") << "Cluster Charge Reweighting did not work properly.";
788+
LogDebug("SiPixelChargeReweightingAlgorithm ") << "Cluster Charge Reweighting did not work properly.";
789789
return false;
790790
}
791791
if (PrintClusters) {

SimTracker/SiPixelDigitizer/plugins/PreMixingSiPixelWorker.cc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ PreMixingSiPixelWorker::PreMixingSiPixelWorker(const edm::ParameterSet& ps,
107107
LogDebug("PreMixingSiPixelWorker") << "applyLateReweighting_ in PreMixingSiPixelWorker " << applyLateReweighting_;
108108

109109

110-
std::cout << " applyLateReweighting_ in PreMixingSiPixelWorker " << applyLateReweighting_ << std::endl;
111-
std::cout << " usePixelExtraLiteFormat_ in PreMixingSiPixelWorker " << usePixelExtraLiteFormat_ << std::endl;
110+
LogDebug("PreMixingSiPixelWorker") << " applyLateReweighting_ in PreMixingSiPixelWorker " << applyLateReweighting_ ;
111+
LogDebug("PreMixingSiPixelWorker") << " usePixelExtraLiteFormat_ in PreMixingSiPixelWorker " << usePixelExtraLiteFormat_ ;
112112

113113
PixelDigiToken_ = iC.consumes<edm::DetSetVector<PixelDigi>>(pixeldigi_collectionSig_);
114114
PixelDigiPToken_ = iC.consumes<edm::DetSetVector<PixelDigi>>(pixeldigi_collectionPile_);
@@ -273,7 +273,6 @@ void PreMixingSiPixelWorker::addPileups(PileUpEventPrincipal const& pep, edm::Ev
273273
if (iu->type().isTrackerPixel()) {
274274
uint32_t detIDinLoop = iu->geographicalId().rawId();
275275
if (detIDinLoop == detID) {
276-
std::cout << " lateSignalReweight with Extra " << std::endl;
277276
digitizer_.lateSignalReweight(
278277
dynamic_cast<const PixelGeomDetUnit*>(iu), TempDigis, TempSimExtra, tTopo, engine);
279278
break;
@@ -294,7 +293,6 @@ void PreMixingSiPixelWorker::addPileups(PileUpEventPrincipal const& pep, edm::Ev
294293
if (iu->type().isTrackerPixel()) {
295294
uint32_t detIDinLoop = iu->geographicalId().rawId();
296295
if (detIDinLoop == detID) {
297-
std::cout << " lateSignalReweight with Extra Lite " << std::endl;
298296
digitizer_.lateSignalReweight(
299297
dynamic_cast<const PixelGeomDetUnit*>(iu), TempDigis, TempSimExtra, tTopo, engine);
300298
break;

0 commit comments

Comments
 (0)