|
|
|
template<typename T > |
std::unique_ptr< edmNew::DetSetVector< T > > | cleanup (const edmNew::DetSetVector< T > &oldClusters, const std::vector< uint8_t > &isGood, reco::ClusterRemovalInfo::Indices &refs, const reco::ClusterRemovalInfo::Indices *oldRefs) |
|
void | mergeOld (reco::ClusterRemovalInfo::Indices &refs, const reco::ClusterRemovalInfo::Indices &oldRefs) |
|
void | process (const OmniClusterRef &cluRef, uint32_t subdet) |
|
void | process (const TrackingRecHit *hit, float chi2, const TrackerGeometry *tg) |
|
void | readPSet (const edm::ParameterSet &iConfig, const std::string &name, int id1=-1, int id2=-1, int id3=-1, int id4=-1, int id5=-1, int id6=-1) |
|
◆ PixelMaskContainer
◆ StripMaskContainer
◆ HLTTrackClusterRemoverNew()
HLTTrackClusterRemoverNew::HLTTrackClusterRemoverNew |
( |
const edm::ParameterSet & |
iConfig | ) |
|
Definition at line 134 of file HLTTrackClusterRemoverNew.cc.
141 iConfig.
existsAs<
bool>(
"doStripChargeCheck") ? iConfig.
getParameter<
bool>(
"doStripChargeCheck") :
false),
143 iConfig.
existsAs<
bool>(
"doPixelChargeCheck") ? iConfig.
getParameter<
bool>(
"doPixelChargeCheck") :
false)
146 if (iConfig.
exists(
"oldClusterRemovalInfo")) {
155 <<
"HLTTrackClusterRemoverNew: Charge check asked without cluster collection ";
158 <<
"HLTTrackClusterRemoverNew: Pixel cluster charge check not yet implemented";
168 readPSet(iConfig,
"Strip", 2, 3, 4, 5);
169 readPSet(iConfig,
"StripInner", 2, 3);
170 readPSet(iConfig,
"StripOuter", 4, 5);
177 bool usingCharge =
false;
181 <<
"HLTTrackClusterRemoverNew: Missing configuration for detector with subDetID = " << (
i + 1);
182 if (
pblocks_[
i].usesCharge_ && !usingCharge) {
184 <<
"HLTTrackClusterRemoverNew: Configuration for subDetID = " << (
i + 1)
185 <<
" uses cluster charge, which is not enabled.";
204 produces<edm::ContainerMask<edmNew::DetSetVector<SiPixelCluster> > >();
205 produces<edm::ContainerMask<edmNew::DetSetVector<SiStripCluster> > >();
References doPixel_, doPixelChargeCheck_, doStrip_, doStripChargeCheck_, doTracks_, Exception, edm::ParameterSet::exists(), ntuplemaker::fill, edm::ParameterSet::getParameter(), mps_fire::i, mergeOld_, NumberOfParamBlocks, oldPxlMaskToken_, oldStrMaskToken_, pblocks_, pixelClusters_, readPSet(), stripClusters_, and trajectories_.
◆ ~HLTTrackClusterRemoverNew()
HLTTrackClusterRemoverNew::~HLTTrackClusterRemoverNew |
( |
| ) |
|
|
override |
◆ cleanup()
◆ mergeOld()
◆ process() [1/2]
void HLTTrackClusterRemoverNew::process |
( |
const OmniClusterRef & |
cluRef, |
|
|
uint32_t |
subdet |
|
) |
| |
|
inlineprivate |
◆ process() [2/2]
Definition at line 277 of file HLTTrackClusterRemoverNew.cc.
278 DetId detid =
hit->geographicalId();
297 <<
"HLTTrackClusterRemoverNew: pixel cluster ref from Product ID = " << cluster.
id()
298 <<
" does not match with source cluster collection (ID = " <<
pixelSourceProdID <<
")\n.";
314 const type_info &hitType =
typeid(*hit);
350 <<
"Don't know how to handle " << hitType.name() <<
" on detid " << detid.
rawId() <<
"\n";
References cms::cuda::assert(), hltPixelTracks_cff::chi2, SiPixelRecHit::cluster(), collectedPixels_, doPixel_, doStrip_, Exception, TrackerGeometry::geomDetSubDetector(), edm::Ref< C, T, F >::id(), GeomDetEnumerators::isTrackerPixel(), edm::Ref< C, T, F >::key(), HLTTrackClusterRemoverNew::ParamBlock::maxSize_, SiStripMatchedRecHit2D::monoClusterRef(), NumberOfParamBlocks, TrackerSingleRecHit::omniClusterRef(), ProjectedSiStripRecHit2D::originalHit(), pblocks_, pixelSourceProdID, DetId::rawId(), SiStripMatchedRecHit2D::stereoClusterRef(), and DetId::subdetId().
Referenced by produce().
◆ produce()
Definition at line 364 of file HLTTrackClusterRemoverNew.cc.
365 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: "
References bsc_activity_cfg::clusters, collectedPixels_, collectedRegStrips_, edm::ContainerMask< T >::copyMaskTo(), submitPVResolutionJobs::count, doPixel_, doStrip_, doStripChargeCheck_, edm::EventSetup::get(), get, mps_fire::i, iEvent, B2GTnPMonitor_cfi::item, LogDebug, Trajectory::measurements(), mergeOld_, oldPxlMaskToken_, oldStrMaskToken_, pblocks_, LumiMonitor_cff::pixelClusters, pixelClusters_, pixelSourceProdID, process(), edm::ESHandle< T >::product(), edm::ContainerMask< T >::size(), HLT_FULL_cff::stripClusters, stripClusters_, stripSourceProdID, DetId::subdetId(), FastTrackerRecHitMaskProducer_cfi::trajectories, and trajectories_.
◆ readPSet()
void HLTTrackClusterRemoverNew::readPSet |
( |
const edm::ParameterSet & |
iConfig, |
|
|
const std::string & |
name, |
|
|
int |
id1 = -1 , |
|
|
int |
id2 = -1 , |
|
|
int |
id3 = -1 , |
|
|
int |
id4 = -1 , |
|
|
int |
id5 = -1 , |
|
|
int |
id6 = -1 |
|
) |
| |
|
private |
◆ collectedPixels_
std::vector<bool> HLTTrackClusterRemoverNew::collectedPixels_ |
|
private |
◆ collectedRegStrips_
std::vector<bool> HLTTrackClusterRemoverNew::collectedRegStrips_ |
|
private |
◆ doPixel_
bool HLTTrackClusterRemoverNew::doPixel_ |
|
private |
◆ doPixelChargeCheck_
bool HLTTrackClusterRemoverNew::doPixelChargeCheck_ |
|
private |
◆ doStrip_
bool HLTTrackClusterRemoverNew::doStrip_ |
|
private |
◆ doStripChargeCheck_
bool HLTTrackClusterRemoverNew::doStripChargeCheck_ |
|
private |
◆ doTracks_
bool HLTTrackClusterRemoverNew::doTracks_ |
|
private |
◆ makeProducts_
bool HLTTrackClusterRemoverNew::makeProducts_ |
|
private |
◆ mergeOld_
bool HLTTrackClusterRemoverNew::mergeOld_ |
|
private |
◆ NumberOfParamBlocks
const unsigned int HLTTrackClusterRemoverNew::NumberOfParamBlocks = 6 |
|
staticprivate |
◆ oldPxlMaskToken_
◆ oldStrMaskToken_
◆ pblocks_
◆ pixelClusters_
◆ pixels
std::vector<uint8_t> HLTTrackClusterRemoverNew::pixels |
|
private |
◆ pixelSourceProdID
◆ stripClusters_
◆ strips
std::vector<uint8_t> HLTTrackClusterRemoverNew::strips |
|
private |
◆ stripSourceProdID
◆ trajectories_
T const * product() const
void readPSet(const edm::ParameterSet &iConfig, const std::string &name, int id1=-1, int id2=-1, int id3=-1, int id4=-1, int id5=-1, int id6=-1)
edm::EDGetTokenT< StripMaskContainer > oldStrMaskToken_
ParamBlock pblocks_[NumberOfParamBlocks]
edm::ProductID stripSourceProdID
const_iterator begin(bool update=false) const
static const unsigned int NumberOfParamBlocks
std::vector< bool > collectedRegStrips_
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
edm::ProductID pixelSourceProdID
ClusterRef cluster() const
edm::EDGetTokenT< std::vector< Trajectory > > trajectories_
edm::EDGetTokenT< PixelMaskContainer > oldPxlMaskToken_
SiStripRecHit2D originalHit() const
edm::EDGetTokenT< edmNew::DetSetVector< SiPixelCluster > > pixelClusters_
size_type dataSize() const
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
void process(const TrackingRecHit *hit, float chi2, const TrackerGeometry *tg)
bool exists(std::string const ¶meterName) const
checks if a parameter exists
const GeomDetEnumerators::SubDetector geomDetSubDetector(int subdet) const
OmniClusterRef const & stereoClusterRef() const
bool isTrackerPixel(GeomDetEnumerators::SubDetector m)
edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > stripClusters_
void mergeOld(reco::ClusterRemovalInfo::Indices &refs, const reco::ClusterRemovalInfo::Indices &oldRefs)
Log< level::Error, false > LogError
OmniClusterRef const & monoClusterRef() const
DataContainer const & measurements() const
ProductID id() const
Accessor for product ID.
constexpr uint32_t rawId() const
get the raw id
data_type const * data(size_t cell) const
void copyMaskTo(std::vector< bool > &) const
const_iterator end(bool update=false) const
std::vector< bool > collectedPixels_
T getParameter(std::string const &) const
key_type key() const
Accessor for product key.
OmniClusterRef const & omniClusterRef() const