27 ~ClusterChargeMasker()
override {}
35 float minGoodStripCharge_;
45 : mergeOld_(iConfig.exists(
"oldClusterRemovalInfo")), minGoodStripCharge_(
clusterChargeCut(iConfig)) {
46 produces<edm::ContainerMask<edmNew::DetSetVector<SiPixelCluster>>>();
47 produces<edm::ContainerMask<edmNew::DetSetVector<SiStripCluster>>>();
52 consumes<edmNew::DetSetVector<SiStripCluster>>(iConfig.getParameter<
edm::InputTag>(
"stripClusters"));
55 oldPxlMaskToken_ = consumes<PixelMaskContainer>(iConfig.getParameter<
edm::InputTag>(
"oldClusterRemovalInfo"));
56 oldStrMaskToken_ = consumes<StripMaskContainer>(iConfig.getParameter<
edm::InputTag>(
"oldClusterRemovalInfo"));
66 std::vector<bool> collectedStrips;
67 std::vector<bool> collectedPixels;
72 iEvent.getByToken(oldPxlMaskToken_, oldPxlMask);
73 iEvent.getByToken(oldStrMaskToken_, oldStrMask);
74 LogDebug(
"ClusterChargeMasker") <<
"to merge in, " << oldStrMask->size() <<
" strp and " << oldPxlMask->size()
76 oldStrMask->copyMaskTo(collectedStrips);
77 oldPxlMask->copyMaskTo(collectedPixels);
94 if (clusCharge < minGoodStripCharge_)
95 collectedStrips[
i] =
true;
99 LogDebug(
"ClusterChargeMasker") <<
"total strip to skip: " 100 <<
std::count(collectedStrips.begin(), collectedStrips.end(),
true);
106 LogDebug(
"ClusterChargeMasker") <<
"total pxl to skip: " 107 <<
std::count(collectedPixels.begin(), collectedPixels.end(),
true);
T getParameter(std::string const &) const
float clusterChargeCut(const edm::ParameterSet &conf, const char *name="clusterChargeCut")
#define DEFINE_FWK_MODULE(type)