61 std::vector<int> positionDT;
62 std::vector<int> positionCSC;
63 std::vector<TrackingRecHit*> my4DTrack;
77 int NumberOfDTSegment = 0;
79 for (segmentDT = DTSegments->begin(); segmentDT != DTSegments->end(); ++segmentDT) {
81 bool isNewChamber =
true;
84 for (std::vector<int>::iterator positionIt = positionDT.begin(); positionIt != positionDT.end(); positionIt++) {
86 if (NumberOfDTSegment == *positionIt)
95 for (std::vector<int>::iterator positionIt = (*collect).begin(); positionIt != (*collect).end();
98 if (NumberOfDTSegment == *positionIt)
105 DTChamberId myChamber((*segmentDT).geographicalId().rawId());
107 if (myLayer.wheel() == myChamber.wheel() && myLayer.station() == myChamber.station() &&
108 myLayer.sector() == myChamber.sector()) {
110 positionDT.push_back(NumberOfDTSegment);
125 int NumberOfCSCSegment = 0;
127 for (segmentCSC = CSCSegments->begin(); segmentCSC != CSCSegments->end(); segmentCSC++) {
129 bool isNewChamber =
true;
131 for (std::vector<int>::iterator positionIt = positionCSC.begin(); positionIt != positionCSC.end();
134 if (NumberOfCSCSegment == *positionIt)
135 isNewChamber =
false;
142 for (std::vector<int>::iterator positionIt = (*collect).begin(); positionIt != (*collect).end();
145 if (NumberOfCSCSegment == *positionIt)
146 isNewChamber =
false;
151 CSCDetId myChamber((*segmentCSC).geographicalId().rawId());
153 if (myLayer.chamberId() == myChamber.chamberId()) {
155 positionCSC.push_back(NumberOfCSCSegment);
161 NumberOfCSCSegment++;
169 if (TrackRefitterType ==
"CosmicLike") {
const edm::EDGetTokenT< CSCSegmentCollection > tokenCSCSegment_
const GeomDet * idToDet(DetId) const override
intDVector indexCollectionCSC
C::const_iterator const_iterator
constant access iterator type
intDVector indexCollectionDT
DetId geographicalId() const
constexpr uint32_t rawId() const
get the raw id
const GlobalTrackingGeometry * globalTrackingGeometry_
virtual SubDetector subDetector() const
Which subdetector.
T const * get() const
Returns C++ pointer to the item.
static MuonRecHitPointer specificBuild(const GeomDet *geom, const TrackingRecHit *rh)
std::vector< MuonRecHitPointer > MuonRecHitContainer
const edm::EDGetTokenT< DTRecSegment4DCollection > tokenDTSegment_