test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 {}
38 
40  const edm::Handle<CSCSegmentCollection>& CSCSegProd) {
41  all4DSegments = DTSegProd;
42  CSCSegments = CSCSegProd;
43 }
44 
45 
47 {
48  cscseg.clear();
49  CSCSegmentCollection::range range = CSCSegments->get(sel);
50  for (CSCSegmentCollection::const_iterator segment = range.first;
51  segment!=range.second; ++segment) {
52  cscseg.push_back(*segment);
53  }
54  return cscseg;
55 }
56 
57 
59 {
60  dtseg.clear();
61  DTRecSegment4DCollection::range range = all4DSegments->get(sel);
62  for (DTRecSegment4DCollection::const_iterator segment = range.first;
63  segment!=range.second; ++segment){
64  dtseg.push_back(*segment);
65  }
66  return dtseg;
67 }
68 
69 
70 
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)