|
|
Go to the documentation of this file.
48 maxChi2_(iConfig.getParameter<double>(
"maxChi2")),
96 fill(pblocks_, pblocks_ + NumberOfParamBlocks, pblock);
98 pblocks_[
id1] = pblock;
100 pblocks_[
id2] = pblock;
102 pblocks_[id3] = pblock;
104 pblocks_[id4] = pblock;
106 pblocks_[id5] = pblock;
108 pblocks_[id6] = pblock;
114 : doStrip_(iConfig.existsAs<
bool>(
"doStrip") ? iConfig.getParameter<
bool>(
"doStrip") :
true),
115 doPixel_(iConfig.existsAs<
bool>(
"doPixel") ? iConfig.getParameter<
bool>(
"doPixel") :
true),
116 mergeOld_(iConfig.exists(
"oldClusterRemovalInfo")) {
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> > >();
163 <<
"SeedClusterRemover: strip cluster ref from Product ID = " << cluster.
id()
164 <<
" does not match with source cluster collection (ID = " <<
stripSourceProdID <<
")\n.";
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";
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: "
T const * product() const
ParamBlock(const edm::ParameterSet &iConfig)
edm::ProductID stripSourceProdID
edm::EDGetTokenT< edmNew::DetSetVector< SiPixelCluster > > pixelClusters_
edm::EDGetTokenT< TrajectorySeedCollection > trajectories_
SeedClusterRemover(const edm::ParameterSet &iConfig)
edm::ProductID pixelSourceProdID
ClusterRef cluster() const
std::vector< uint8_t > pixels
ClusterStripRef cluster_strip() const
#define DEFINE_FWK_MODULE(type)
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
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
edm::ContainerMask< edmNew::DetSetVector< SiStripCluster > > StripMaskContainer
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.
edm::ContainerMask< edmNew::DetSetVector< SiPixelCluster > > PixelMaskContainer
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_