65 std::vector<int> positionDT;
66 std::vector<int> positionCSC;
67 std::vector<TrackingRecHit*> my4DTrack;
81 int NumberOfDTSegment = 0;
83 for (segmentDT = DTSegments->begin(); segmentDT != DTSegments->end(); ++segmentDT) {
85 bool isNewChamber =
true;
88 for (std::vector<int>::iterator positionIt = positionDT.begin(); positionIt != positionDT.end(); positionIt++) {
90 if (NumberOfDTSegment == *positionIt)
99 for (std::vector<int>::iterator positionIt = (*collect).begin(); positionIt != (*collect).end();
102 if (NumberOfDTSegment == *positionIt)
103 isNewChamber =
false;
109 DTChamberId myChamber((*segmentDT).geographicalId().rawId());
111 if (myLayer.wheel() == myChamber.wheel() && myLayer.station() == myChamber.station() &&
112 myLayer.sector() == myChamber.sector()) {
114 positionDT.push_back(NumberOfDTSegment);
129 int NumberOfCSCSegment = 0;
131 for (segmentCSC = CSCSegments->begin(); segmentCSC != CSCSegments->end(); segmentCSC++) {
133 bool isNewChamber =
true;
135 for (std::vector<int>::iterator positionIt = positionCSC.begin(); positionIt != positionCSC.end();
138 if (NumberOfCSCSegment == *positionIt)
139 isNewChamber =
false;
146 for (std::vector<int>::iterator positionIt = (*collect).begin(); positionIt != (*collect).end();
149 if (NumberOfCSCSegment == *positionIt)
150 isNewChamber =
false;
155 CSCDetId myChamber((*segmentCSC).geographicalId().rawId());
157 if (myLayer.chamberId() == myChamber.chamberId()) {
159 positionCSC.push_back(NumberOfCSCSegment);
165 NumberOfCSCSegment++;
173 if (TrackRefitterType ==
"CosmicLike") {
T getParameter(std::string const &) const
edm::InputTag theCSCSegmentLabel
virtual ~SegmentToTrackAssociator()
edm::InputTag theDTSegmentLabel
const GeomDet * idToDet(DetId) const override
intDVector indexCollectionCSC
C::const_iterator const_iterator
constant access iterator type
intDVector indexCollectionDT
MuonTransientTrackingRecHit::MuonRecHitContainer associate(const edm::Event &, const edm::EventSetup &, const reco::Track &, std::string)
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.
SegmentToTrackAssociator(const edm::ParameterSet &, const GlobalTrackingGeometry *GlobalTrackingGeometry)
static MuonRecHitPointer specificBuild(const GeomDet *geom, const TrackingRecHit *rh)
std::vector< MuonRecHitPointer > MuonRecHitContainer