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 }
FastTimerService_cff.range
range
Definition: FastTimerService_cff.py:34
ESHandle.h
edm
HLT enums.
Definition: AlignableModifier.h:19
EDAnalyzer.h
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:46
edm::Handle< DTRecSegment4DCollection >
MakerMacros.h
Track.h
TrackFwd.h
ChamberSegmentUtility::getDTSegmentsInChamber
std::vector< DTRecSegment4D > getDTSegmentsInChamber(DTChamberId)
Definition: ChamberSegmentUtility.cc:53
DTGeometry.h
Event.h
edm::RangeMap::const_iterator
C::const_iterator const_iterator
constant access iterator type
Definition: RangeMap.h:43
CSCDetId
Definition: CSCDetId.h:26
ChamberSegmentUtility::ChamberSegmentUtility
ChamberSegmentUtility()
Definition: ChamberSegmentUtility.cc:36
ChamberSegmentUtility::getCSCSegmentsInChamber
std::vector< CSCSegment > getCSCSegmentsInChamber(CSCDetId)
Definition: ChamberSegmentUtility.cc:44
ChamberSegmentUtility.h
InputTag.h
edm::RangeMap::range
std::pair< const_iterator, const_iterator > range
iterator range
Definition: RangeMap.h:50
std
Definition: JetResolutionObject.h:76
Frameworkfwd.h
ChamberSegmentUtility::initCSU
void initCSU(const edm::Handle< DTRecSegment4DCollection > &, const edm::Handle< CSCSegmentCollection > &)
Definition: ChamberSegmentUtility.cc:38
DTChamberId
Definition: DTChamberId.h:14
ParameterSet.h
EgammaValidation_Wenu_cff.sel
sel
Definition: EgammaValidation_Wenu_cff.py:33
MuonGeometryRecord.h
DTRecSegment4DCollection.h