7 if (iter == dsv.
end()) {
38 setCollections(rphiRecHits,stereoRecHits,matchedRecHits,pixelRecHits);
60 std::vector<TrackingRecHit*> RecHitVec;
74 if( !StripDetId.
glued() ) {
78 rphiDetHit != rphiDetHits.
end();
83 edm::LogWarning(
"RoadSearch") <<
"rphi RecHit collection not set properly";
120 if( !StripDetId.
glued() ) {
124 rphiDetHit != rphiDetHits.
end();
129 edm::LogWarning(
"RoadSearch") <<
"rphi RecHit collection not set properly";
137 rphiDetHit != rphiDetHits.
end();
142 edm::LogWarning(
"RoadSearch") <<
"rphi RecHit collection not set properly";
149 stereoDetHit != stereoDetHits.
end();
154 edm::LogWarning(
"RoadSearch") <<
"stereo RecHit collection not set properly";
162 if( !StripDetId.
glued() ) {
166 rphiDetHit != rphiDetHits.
end();
171 edm::LogWarning(
"RoadSearch") <<
"rphi RecHit collection not set properly";
178 matchedDetHit != matchedDetHits.end(); ++matchedDetHit ) {
182 edm::LogWarning(
"RoadSearch") <<
"matched RecHit collection not set properly";
191 rphiDetHit != rphiDetHits.
end(); ++rphiDetHit ) {
197 matchedDetHit != matchedDetHits.end(); ++matchedDetHit ) {
203 if(use_rphi) RecHitVec.push_back((
TrackingRecHit*)(&(*rphiDetHit)));
206 edm::LogWarning(
"RoadSearch") <<
"rphi RecHit collection not set properly";
216 stereoDetHit != stereoDetHits.
end(); ++stereoDetHit ) {
217 bool use_stereo=
true;
222 matchedDetHit != matchedDetHits.end(); ++matchedDetHit ) {
228 if(use_stereo) RecHitVec.push_back((
TrackingRecHit*)(&(*stereoDetHit)));
231 edm::LogWarning(
"RoadSearch") <<
"stereo RecHit collection not set properly";
243 pixelDetHit!= pixelDetHits.
end(); ++pixelDetHit) {
247 edm::LogWarning(
"RoadSearch") <<
"pixel RecHit collection not set properly";
251 edm::LogError(
"RoadSearch") <<
"NEITHER PIXEL NOR STRIP DETECTOR ID";
const SiStripRecHit2DCollection * stereoHits_
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
void setCollections(const SiStripRecHit2DCollection *rphiRecHits, const SiStripRecHit2DCollection *stereoRecHits, const SiStripMatchedRecHit2DCollection *matchedRecHits, const SiPixelRecHitCollection *pixelRecHits)
const_iterator find(id_type i) const
uint32_t rawId() const
get the raw id
const SiPixelRecHitCollection * pixelHits_
unsigned int glued() const
glued
const_iterator end() const
std::vector< TrackingRecHit * > getHitVector(const DetId *detid)
const SiStripRecHit2DCollection * rphiHits_
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
edmNew::DetSet< T > detSetOrEmpty(const edmNew::DetSetVector< T > &dsv, DetId detid)
I need this because DetHitAccess assumes that it can search a hit container using a detid which is no...
const SiStripMatchedRecHit2DCollection * matchedHits_