|
|
|
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) |
|
Definition at line 35 of file SeedClusterRemover.cc.
◆ PixelMaskContainer
◆ StripMaskContainer
◆ SeedClusterRemover()
Definition at line 113 of file SeedClusterRemover.cc.
114 :
tTrackerGeom_(esConsumes<TrackerGeometry, TrackerDigiGeometryRecord>()),
126 readPSet(iConfig,
"Strip", 2, 3, 4, 5);
127 readPSet(iConfig,
"StripInner", 2, 3);
128 readPSet(iConfig,
"StripOuter", 4, 5);
135 bool usingCharge =
false;
139 <<
"SeedClusterRemover: Missing configuration for detector with subDetID = " << (
i + 1);
140 if (
pblocks_[
i].usesCharge_ && !usingCharge) {
141 throw cms::Exception(
"Configuration Error") <<
"SeedClusterRemover: Configuration for subDetID = " << (
i + 1)
142 <<
" uses cluster charge, which is not enabled.";
156 produces<edm::ContainerMask<edmNew::DetSetVector<SiPixelCluster> > >();
157 produces<edm::ContainerMask<edmNew::DetSetVector<SiStripCluster> > >();
References doPixel_, doStrip_, Exception, ntuplemaker::fill, edm::ParameterSet::getParameter(), mps_fire::i, mergeOld_, NumberOfParamBlocks, oldPxlMaskToken_, oldStrMaskToken_, pblocks_, pixelClusters_, readPSet(), stripClusters_, and trajectories_.
◆ process() [1/2]
void SeedClusterRemover::process |
( |
const OmniClusterRef & |
cluRef, |
|
|
uint32_t |
subdet |
|
) |
| |
|
inlineprivate |
Definition at line 160 of file SeedClusterRemover.cc.
164 <<
"SeedClusterRemover: strip cluster ref from Product ID = " << cluster.
id()
165 <<
" does not match with source cluster collection (ID = " <<
stripSourceProdID <<
")\n.";
References cms::cuda::assert(), OmniClusterRef::cluster_strip(), collectedStrips_, edm::Ref< C, T, F >::id(), edm::Ref< C, T, F >::key(), SeedClusterRemover::ParamBlock::maxSize_, pblocks_, strips, and stripSourceProdID.
◆ process() [2/2]
Definition at line 176 of file SeedClusterRemover.cc.
177 DetId detid =
hit->geographicalId();
196 <<
"SeedClusterRemover: pixel cluster ref from Product ID = " << cluster.
id()
197 <<
" does not match with source cluster collection (ID = " <<
pixelSourceProdID <<
")\n.";
215 const type_info &hitType =
typeid(*hit);
234 <<
"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(), SeedClusterRemover::ParamBlock::maxSize_, SiStripMatchedRecHit2D::monoClusterRef(), NumberOfParamBlocks, TrackerSingleRecHit::omniClusterRef(), ProjectedSiStripRecHit2D::originalHit(), pblocks_, pixels, pixelSourceProdID, DetId::rawId(), SiStripMatchedRecHit2D::stereoClusterRef(), and DetId::subdetId().
Referenced by produce().
◆ produce()
Definition at line 238 of file SeedClusterRemover.cc.
268 LogDebug(
"SeedClusterRemover") <<
"to merge in, " << oldStrMask->
size() <<
" strp and " << oldPxlMask->
size()
283 for (
auto const &
hit :
seed.recHits()) {
293 LogDebug(
"SeedClusterRemover") <<
"total strip to skip: "
298 LogDebug(
"SeedClusterRemover") <<
"total pxl to skip: "
References cms::cuda::assert(), collectedPixels_, collectedStrips_, edm::ContainerMask< T >::copyMaskTo(), submitPVResolutionJobs::count, doPixel_, doStrip_, ntuplemaker::fill, edm::EventSetup::getData(), iEvent, LogDebug, mergeOld_, oldPxlMaskToken_, oldStrMaskToken_, LumiMonitor_cff::pixelClusters, pixelClusters_, pixels, pixelSourceProdID, process(), fileCollector::seed, DetachedQuadStep_cff::seeds, edm::ContainerMask< T >::size(), HLT_FULL_cff::stripClusters, stripClusters_, strips, stripSourceProdID, trajectories_, and tTrackerGeom_.
◆ readPSet()
void SeedClusterRemover::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> SeedClusterRemover::collectedPixels_ |
|
private |
◆ collectedStrips_
std::vector<bool> SeedClusterRemover::collectedStrips_ |
|
private |
◆ doPixel_
bool SeedClusterRemover::doPixel_ |
|
private |
◆ doStrip_
bool SeedClusterRemover::doStrip_ |
|
private |
◆ mergeOld_
bool SeedClusterRemover::mergeOld_ |
|
private |
◆ NumberOfParamBlocks
const unsigned int SeedClusterRemover::NumberOfParamBlocks = 6 |
|
staticprivate |
◆ oldPxlMaskToken_
◆ oldStrMaskToken_
◆ pblocks_
◆ pixelClusters_
◆ pixels
std::vector<uint8_t> SeedClusterRemover::pixels |
|
private |
◆ pixelSourceProdID
◆ stripClusters_
◆ strips
std::vector<uint8_t> SeedClusterRemover::strips |
|
private |
◆ stripSourceProdID
◆ trajectories_
◆ tTrackerGeom_
edm::ProductID stripSourceProdID
edm::EDGetTokenT< edmNew::DetSetVector< SiPixelCluster > > pixelClusters_
edm::EDGetTokenT< TrajectorySeedCollection > trajectories_
edm::ProductID pixelSourceProdID
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
ClusterRef cluster() const
std::vector< uint8_t > pixels
edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > stripClusters_
edm::EDGetTokenT< StripMaskContainer > oldStrMaskToken_
SiStripRecHit2D originalHit() const
std::vector< bool > collectedPixels_
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
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)
std::vector< uint8_t > strips
static const unsigned int NumberOfParamBlocks
OmniClusterRef const & monoClusterRef() const
bool getData(T &iHolder) 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)
ProductID id() const
Accessor for product ID.
ParamBlock pblocks_[NumberOfParamBlocks]
constexpr uint32_t rawId() const
get the raw id
void copyMaskTo(std::vector< bool > &) const
T getParameter(std::string const &) const
std::vector< bool > collectedStrips_
key_type key() const
Accessor for product key.
void process(const TrackingRecHit *hit, float chi2, const TrackerGeometry *tg)
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > tTrackerGeom_
OmniClusterRef const & omniClusterRef() const
edm::EDGetTokenT< PixelMaskContainer > oldPxlMaskToken_