RecoMuon
GlobalTrackingTools
src
ChamberSegmentUtility.cc
Go to the documentation of this file.
1
13
#include "
RecoMuon/GlobalTrackingTools/interface/ChamberSegmentUtility.h
"
14
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
15
#include "
FWCore/Framework/interface/EDAnalyzer.h
"
16
#include "
FWCore/Framework/interface/Event.h
"
17
#include "
FWCore/Framework/interface/MakerMacros.h
"
18
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
19
#include "
FWCore/Utilities/interface/InputTag.h
"
20
#include "
DataFormats/TrackReco/interface/Track.h
"
21
#include "
DataFormats/TrackReco/interface/TrackFwd.h
"
22
#include "
Geometry/DTGeometry/interface/DTGeometry.h
"
23
#include "
DataFormats/DTRecHit/interface/DTRecSegment4DCollection.h
"
24
#include "
FWCore/Framework/interface/ESHandle.h
"
25
#include "
Geometry/Records/interface/MuonGeometryRecord.h
"
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
36
ChamberSegmentUtility::ChamberSegmentUtility
() {}
37
38
void
ChamberSegmentUtility::initCSU
(
const
edm::Handle<DTRecSegment4DCollection>
& DTSegProd,
39
const
edm::Handle<CSCSegmentCollection>
& CSCSegProd) {
40
all4DSegments = DTSegProd;
41
CSCSegments = CSCSegProd;
42
}
43
44
vector<CSCSegment>
ChamberSegmentUtility::getCSCSegmentsInChamber
(
CSCDetId
sel
) {
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
53
vector<DTRecSegment4D>
ChamberSegmentUtility::getDTSegmentsInChamber
(
DTChamberId
sel
) {
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:45
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
Generated for CMSSW Reference Manual by
1.8.16