42 Event.
getByLabel(
"dt4DSegments", all4DSegments);
44 unsigned int index = 0;
45 for ( CSCSegmentCollection::id_iterator chamberId = CSCSegments->id_begin();
46 chamberId != CSCSegments->id_end(); ++chamberId, ++
index ) {
51 segment!=range.second; ++segment) {
52 if ((*chamberId).station() == 1) cscsegMap[1].push_back(*segment);
53 if ((*chamberId).station() == 2) cscsegMap[2].push_back(*segment);
54 if ((*chamberId).station() == 3) cscsegMap[3].push_back(*segment);
55 if ((*chamberId).station() == 4) cscsegMap[4].push_back(*segment);
59 DTRecSegment4DCollection::id_iterator chamberIdIt;
60 for (chamberIdIt = all4DSegments->id_begin();
61 chamberIdIt != all4DSegments->id_end();
67 segment!=range.second; ++segment){
69 if ((*chamberIdIt).station() == 1) dtsegMap[1].push_back(*segment);
70 if ((*chamberIdIt).station() == 2) dtsegMap[2].push_back(*segment);
71 if ((*chamberIdIt).station() == 3) dtsegMap[3].push_back(*segment);
72 if ((*chamberIdIt).station() == 4) dtsegMap[4].push_back(*segment);
85 unsigned int index = 0;
86 for ( CSCSegmentCollection::id_iterator chamberId = CSCSegments->id_begin();
87 chamberId != CSCSegments->id_end(); ++chamberId, ++
index ) {
89 if ((*chamberId).chamber() != sel.
chamber())
continue;
96 segment!=range.second; ++segment) {
97 cscseg.push_back(*segment);
109 DTRecSegment4DCollection::id_iterator chamberIdIt;
110 for (chamberIdIt = all4DSegments->id_begin();
111 chamberIdIt != all4DSegments->id_end();
114 if (*chamberIdIt != sel)
continue;
121 segment!=range.second; ++segment){
122 dtseg.push_back(*segment);
133 vector<CSCRecHit2D> allchRH;
136 unsigned int index = 0;
137 for ( CSCSegmentCollection::id_iterator chamberId = CSCSegments->id_begin();
138 chamberId != CSCSegments->id_end(); ++chamberId, ++
index ) {
145 segment!=range.second; ++segment) {
147 if((*segment).parameters() == selected.parameters()) {
148 allchRH = (*segment).specificRecHits();
159 vector<DTRecHit1D> allchRH;
164 DTRecSegment4DCollection::id_iterator chamberIdIt;
165 for (chamberIdIt = all4DSegments->id_begin();
166 chamberIdIt != all4DSegments->id_end();
174 segment!=range.second; ++segment){
176 if((*segment).parameters() == selected.
parameters()) {
177 if((*segment).hasPhi()){
181 if((*segment).hasZed()){
187 for (vector<DTRecHit1D>::const_iterator itphi = phiSegRH.begin(); itphi != phiSegRH.end(); itphi++) allchRH.push_back(*itphi);
188 for (vector<DTRecHit1D>::iterator itz = zSegRH.begin(); itz < zSegRH.end(); itz++) allchRH.push_back(*itz);
ChamberSegmentUtility(const edm::Event &, const edm::EventSetup &)
AlgebraicVector parameters() const
std::pair< const_iterator, const_iterator > range
iterator range
std::vector< DTRecSegment4D > getDTSegmentsInChamber(DTChamberId)
std::vector< CSCSegment > getCSCSegmentsInChamber(CSCDetId)
std::vector< CSCRecHit2D > getCSCRHmap(const CSCSegment &)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
std::vector< DTRecHit1D > specificRecHits() const
Access to specific components.
std::vector< DTRecHit1D > getDTRHmap(const DTRecSegment4D &)