CMS 3D CMS Logo

ChamberSegmentUtility.cc
Go to the documentation of this file.
1 
20 
21 #include <map>
22 #include <vector>
23 
24 using namespace edm;
25 using namespace std;
26 using namespace reco;
27 
29 
31  const edm::Handle<CSCSegmentCollection>& CSCSegProd) {
32  all4DSegments = DTSegProd;
33  CSCSegments = CSCSegProd;
34 }
35 
37  cscseg.clear();
38  CSCSegmentCollection::range range = CSCSegments->get(sel);
39  for (CSCSegmentCollection::const_iterator segment = range.first; segment != range.second; ++segment) {
40  cscseg.push_back(*segment);
41  }
42  return cscseg;
43 }
44 
46  dtseg.clear();
47  DTRecSegment4DCollection::range range = all4DSegments->get(sel);
48  for (DTRecSegment4DCollection::const_iterator segment = range.first; segment != range.second; ++segment) {
49  dtseg.push_back(*segment);
50  }
51  return dtseg;
52 }
std::pair< const_iterator, const_iterator > range
iterator range
Definition: RangeMap.h:50
void initCSU(const edm::Handle< DTRecSegment4DCollection > &, const edm::Handle< CSCSegmentCollection > &)
std::vector< DTRecSegment4D > getDTSegmentsInChamber(DTChamberId)
std::vector< CSCSegment > getCSCSegmentsInChamber(CSCDetId)
C::const_iterator const_iterator
constant access iterator type
Definition: RangeMap.h:43
fixed size matrix
HLT enums.