54 maxChi2_(iConfig.getParameter<double>(
"maxChi2")),
95 const std::vector<uint8_t> &isGood,
110 using namespace reco;
117 fill(pblocks_, pblocks_ + NumberOfParamBlocks, pblock);
119 pblocks_[
id1] = pblock;
121 pblocks_[
id2] = pblock;
123 pblocks_[id3] = pblock;
125 pblocks_[id4] = pblock;
127 pblocks_[id5] = pblock;
129 pblocks_[id6] = pblock;
136 doTracks_(iConfig.exists(
"trajectories")),
137 doStrip_(iConfig.existsAs<
bool>(
"doStrip") ? iConfig.getParameter<
bool>(
"doStrip") :
true),
138 doPixel_(iConfig.existsAs<
bool>(
"doPixel") ? iConfig.getParameter<
bool>(
"doPixel") :
true),
142 iConfig.existsAs<
bool>(
"doStripChargeCheck") ? iConfig.getParameter<
bool>(
"doStripChargeCheck") :
false),
144 iConfig.existsAs<
bool>(
"doPixelChargeCheck") ? iConfig.getParameter<
bool>(
"doPixelChargeCheck") :
false)
147 if (iConfig.
exists(
"oldClusterRemovalInfo")) {
156 <<
"HLTTrackClusterRemoverNew: Charge check asked without cluster collection ";
159 <<
"HLTTrackClusterRemoverNew: Pixel cluster charge check not yet implemented";
169 readPSet(iConfig,
"Strip", 2, 3, 4, 5);
170 readPSet(iConfig,
"StripInner", 2, 3);
171 readPSet(iConfig,
"StripOuter", 4, 5);
178 bool usingCharge =
false;
182 <<
"HLTTrackClusterRemoverNew: Missing configuration for detector with subDetID = " << (
i + 1);
183 if (
pblocks_[
i].usesCharge_ && !usingCharge) {
185 <<
"HLTTrackClusterRemoverNew: Configuration for subDetID = " << (
i + 1)
186 <<
" uses cluster charge, which is not enabled.";
205 produces<edm::ContainerMask<edmNew::DetSetVector<SiPixelCluster> > >();
206 produces<edm::ContainerMask<edmNew::DetSetVector<SiStripCluster> > >();
213 for (
size_t i = 0,
n = refs.size();
i <
n; ++
i) {
214 refs[
i] = oldRefs[refs[
i]];
218 template <
typename T>
221 const std::vector<uint8_t> &isGood,
227 auto output = std::make_unique<DSV>();
230 unsigned int countOld = 0;
231 unsigned int countNew = 0;
234 const T *firstOffset = &oldClusters.
data().front();
235 for (
typename DSV::const_iterator itdet = oldClusters.
begin(), enddet = oldClusters.
end(); itdet != enddet; ++itdet) {
241 uint32_t
id = oldDS.detId();
244 for (
typename DS::const_iterator it = oldDS.begin(), ed = oldDS.end(); it != ed; ++it) {
245 uint32_t
index = ((&*it) - firstOffset);
248 outds.push_back(*it);
250 refs.push_back(
index);
259 if (oldRefs !=
nullptr)
267 <<
"HLTTrackClusterRemoverNew: strip cluster ref from Product ID = " << clusterReg.
id()
268 <<
" does not match with source cluster collection (ID = " <<
stripSourceProdID <<
")\n.";
279 DetId detid =
hit->geographicalId();
298 <<
"HLTTrackClusterRemoverNew: pixel cluster ref from Product ID = " << cluster.
id()
299 <<
" does not match with source cluster collection (ID = " <<
pixelSourceProdID <<
")\n.";
315 const type_info &hitType =
typeid(*hit);
351 <<
"Don't know how to handle " << hitType.name() <<
" on detid " << detid.
rawId() <<
"\n";
366 ProductID pixelOldProdID, stripOldProdID;
391 LogDebug(
"TrackClusterRemover") <<
"to merge in, " << oldStrMask->
size() <<
" strp and " << oldPxlMask->
size()
404 for (std::vector<Trajectory>::const_iterator it =
trajectories->begin(), ed =
trajectories->end(); it != ed; ++it) {
406 const std::vector<TrajectoryMeasurement> &tms = tj.
measurements();
408 std::vector<TrajectoryMeasurement>::const_iterator itm, endtm;
409 for (itm = tms.begin(), endtm = tms.end(); itm != endtm; ++itm) {
432 if (!
pblocks_[subdet - 1].cutOnStripCharge_)
439 for (
auto cAmp :
clusters[
i].amplitudes())
443 if (clusCharge <
pblocks_[subdet - 1].minGoodStripCharge_)
451 LogDebug(
"TrackClusterRemover") <<
"total strip to skip: "
457 LogDebug(
"TrackClusterRemover") <<
"total pxl to skip: "