CMS 3D CMS Logo

ChamberSegmentUtility.cc
Go to the documentation of this file.
1 
26 
27 #include <iostream>
28 #include <map>
29 #include <vector>
30 #include <iostream>
31 
32 using namespace edm;
33 using namespace std;
34 using namespace reco;
35 
37 
39  const edm::Handle<CSCSegmentCollection>& CSCSegProd) {
40  all4DSegments = DTSegProd;
41  CSCSegments = CSCSegProd;
42 }
43 
45  cscseg.clear();
46  CSCSegmentCollection::range range = CSCSegments->get(sel);
47  for (CSCSegmentCollection::const_iterator segment = range.first; segment != range.second; ++segment) {
48  cscseg.push_back(*segment);
49  }
50  return cscseg;
51 }
52 
54  dtseg.clear();
55  DTRecSegment4DCollection::range range = all4DSegments->get(sel);
56  for (DTRecSegment4DCollection::const_iterator segment = range.first; segment != range.second; ++segment) {
57  dtseg.push_back(*segment);
58  }
59  return dtseg;
60 }
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.