|
|
|
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 36 of file SeedClusterRemover.cc.
◆ PixelMaskContainer
◆ StripMaskContainer
◆ SeedClusterRemover()
Definition at line 113 of file SeedClusterRemover.cc.
125 readPSet(iConfig,
"Strip", 2, 3, 4, 5);
126 readPSet(iConfig,
"StripInner", 2, 3);
127 readPSet(iConfig,
"StripOuter", 4, 5);
134 bool usingCharge =
false;
138 <<
"SeedClusterRemover: Missing configuration for detector with subDetID = " << (
i + 1);
139 if (
pblocks_[
i].usesCharge_ && !usingCharge) {
140 throw cms::Exception(
"Configuration Error") <<
"SeedClusterRemover: Configuration for subDetID = " << (
i + 1)
141 <<
" uses cluster charge, which is not enabled.";
155 produces<edm::ContainerMask<edmNew::DetSetVector<SiPixelCluster> > >();
156 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 159 of file SeedClusterRemover.cc.
163 <<
"SeedClusterRemover: strip cluster ref from Product ID = " << cluster.
id()
164 <<
" 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 175 of file SeedClusterRemover.cc.
176 DetId detid =
hit->geographicalId();
195 <<
"SeedClusterRemover: pixel cluster ref from Product ID = " << cluster.
id()
196 <<
" does not match with source cluster collection (ID = " <<
pixelSourceProdID <<
")\n.";
214 const type_info &hitType =
typeid(*hit);
233 <<
"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 237 of file SeedClusterRemover.cc.
268 LogDebug(
"SeedClusterRemover") <<
"to merge in, " << oldStrMask->
size() <<
" strp and " << oldPxlMask->
size()
295 LogDebug(
"SeedClusterRemover") <<
"total strip to skip: "
300 LogDebug(
"SeedClusterRemover") <<
"total pxl to skip: "
References cms::cuda::assert(), collectedPixels_, collectedStrips_, edm::ContainerMask< T >::copyMaskTo(), KineDebug3::count(), doPixel_, doStrip_, ntuplemaker::fill, edm::EventSetup::get(), get, hfClusterShapes_cfi::hits, iEvent, LogDebug, mergeOld_, oldPxlMaskToken_, oldStrMaskToken_, LumiMonitor_cff::pixelClusters, pixelClusters_, pixels, pixelSourceProdID, process(), edm::ESHandle< T >::product(), SurveyInfoScenario_cff::seed, InitialStep_cff::seeds, edm::ContainerMask< T >::size(), HLT_2018_cff::stripClusters, stripClusters_, strips, stripSourceProdID, and trajectories_.
◆ 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_
T const * product() const
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
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)
T getParameter(std::string const &) const
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
std::vector< bool > collectedStrips_
key_type key() const
Accessor for product key.
void process(const TrackingRecHit *hit, float chi2, const TrackerGeometry *tg)
OmniClusterRef const & omniClusterRef() const
edm::EDGetTokenT< PixelMaskContainer > oldPxlMaskToken_