44 Event.
getByLabel(
"dt4DSegments", all4DSegments);
46 unsigned int index = 0;
48 chamberId != CSCSegments->id_end(); ++chamberId, ++
index ) {
53 segment!=range.second; ++segment) {
54 if ((*chamberId).station() == 1) cscsegMap[1].push_back(*segment);
55 if ((*chamberId).station() == 2) cscsegMap[2].push_back(*segment);
56 if ((*chamberId).station() == 3) cscsegMap[3].push_back(*segment);
57 if ((*chamberId).station() == 4) cscsegMap[4].push_back(*segment);
62 for (chamberIdIt = all4DSegments->id_begin();
63 chamberIdIt != all4DSegments->id_end();
69 segment!=range.second; ++segment){
71 if ((*chamberIdIt).station() == 1) dtsegMap[1].push_back(*segment);
72 if ((*chamberIdIt).station() == 2) dtsegMap[2].push_back(*segment);
73 if ((*chamberIdIt).station() == 3) dtsegMap[3].push_back(*segment);
74 if ((*chamberIdIt).station() == 4) dtsegMap[4].push_back(*segment);
87 unsigned int index = 0;
89 chamberId != CSCSegments->id_end(); ++chamberId, ++
index ) {
91 if ((*chamberId).chamber() != sel.
chamber())
continue;
98 segment!=range.second; ++segment) {
99 cscseg.push_back(*segment);
112 for (chamberIdIt = all4DSegments->id_begin();
113 chamberIdIt != all4DSegments->id_end();
116 if (*chamberIdIt != sel)
continue;
123 segment!=range.second; ++segment){
124 dtseg.push_back(*segment);
135 vector<CSCRecHit2D> allchRH;
138 unsigned int index = 0;
140 chamberId != CSCSegments->id_end(); ++chamberId, ++
index ) {
147 segment!=range.second; ++segment) {
149 if((*segment).parameters() == selected.parameters()) {
150 allchRH = (*segment).specificRecHits();
161 vector<DTRecHit1D> allchRH;
167 for (chamberIdIt = all4DSegments->id_begin();
168 chamberIdIt != all4DSegments->id_end();
176 segment!=range.second; ++segment){
178 if((*segment).parameters() == selected.
parameters()) {
179 if((*segment).hasPhi()){
183 if((*segment).hasZed()){
189 for (vector<DTRecHit1D>::const_iterator itphi = phiSegRH.begin(); itphi != phiSegRH.end(); itphi++) allchRH.push_back(*itphi);
190 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 &)
C::const_iterator const_iterator
constant access iterator type
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
std::vector< DTRecHit1D > specificRecHits() const
Access to specific components.
std::vector< DTRecHit1D > getDTRHmap(const DTRecSegment4D &)