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";
90 matchedDetHit != matchedDetHits.end(); ++matchedDetHit ) {
93 for ( std::vector<TrackingRecHit*>::iterator
hit = RecHitVec.begin();
94 hit != RecHitVec.end();
104 RecHitVec.push_back(rphi);
108 edm::LogWarning(
"RoadSearch") <<
"matched RecHit collection not set properly";
115 if( !StripDetId.
glued() ) {
119 rphiDetHit != rphiDetHits.
end();
124 edm::LogWarning(
"RoadSearch") <<
"rphi RecHit collection not set properly";
132 rphiDetHit != rphiDetHits.
end();
137 edm::LogWarning(
"RoadSearch") <<
"rphi RecHit collection not set properly";
144 stereoDetHit != stereoDetHits.
end();
149 edm::LogWarning(
"RoadSearch") <<
"stereo RecHit collection not set properly";
157 if( !StripDetId.
glued() ) {
161 rphiDetHit != rphiDetHits.
end();
166 edm::LogWarning(
"RoadSearch") <<
"rphi RecHit collection not set properly";
173 matchedDetHit != matchedDetHits.end(); ++matchedDetHit ) {
177 edm::LogWarning(
"RoadSearch") <<
"matched RecHit collection not set properly";
186 rphiDetHit != rphiDetHits.
end(); ++rphiDetHit ) {
192 matchedDetHit != matchedDetHits.end(); ++matchedDetHit ) {
193 if (rphiDetHit->localPosition().x()==matchedDetHit->monoHit()->localPosition().x()
194 && rphiDetHit->localPosition().y()==matchedDetHit->monoHit()->localPosition().y() ) {
199 if(use_rphi) RecHitVec.push_back((
TrackingRecHit*)(&(*rphiDetHit)));
202 edm::LogWarning(
"RoadSearch") <<
"rphi RecHit collection not set properly";
212 stereoDetHit != stereoDetHits.
end(); ++stereoDetHit ) {
213 bool use_stereo=
true;
218 matchedDetHit != matchedDetHits.end(); ++matchedDetHit ) {
219 if (stereoDetHit->localPosition().x()==matchedDetHit->stereoHit()->localPosition().x()
220 && stereoDetHit->localPosition().y()==matchedDetHit->stereoHit()->localPosition().y() ) {
225 if(use_stereo) RecHitVec.push_back((
TrackingRecHit*)(&(*stereoDetHit)));
228 edm::LogWarning(
"RoadSearch") <<
"stereo RecHit collection not set properly";
240 pixelDetHit!= pixelDetHits.
end(); ++pixelDetHit) {
244 edm::LogWarning(
"RoadSearch") <<
"pixel RecHit collection not set properly";
248 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)
void add(const std::vector< const T * > &source, std::vector< const T * > &dest)
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_
virtual LocalPoint localPosition() const =0