94 : m_src(iConfig.getParameter<
edm::
InputTag>(
"src")),
98 produces<std::vector<Trajectory>>();
99 produces<TrajTrackAssociationCollection>();
123 auto trajectoryCollection = std::make_unique<std::vector<Trajectory>>();
136 std::vector<TrajectoryMeasurement::ConstRecHitPointer> transHits;
137 std::vector<TrajectoryStateOnSurface> TSOSes;
139 for (
auto const&
hit :
track->recHits()) {
156 transHits.push_back(hitPtr);
162 assert(clonedHits.
size() == transHits.size());
163 assert(transHits.size() == TSOSes.size());
166 if (!clonedHits.
empty()) {
173 std::vector<TrajectoryMeasurement::ConstRecHitPointer>::const_iterator transHitPtr = transHits.begin();
174 std::vector<TrajectoryStateOnSurface>::const_iterator
TSOS = TSOSes.begin();
175 for (; clonedHit != clonedHits.
end(); ++clonedHit, ++transHitPtr, ++
TSOS) {
179 trajectoryCollection->push_back(trajectory);
183 reference_map[trajCounter] = trackCounter;
188 unsigned int numTrajectories = trajectoryCollection->size();
194 auto trajTrackMap = std::make_unique<TrajTrackAssociationCollection>();
196 for (trajCounter = 0; trajCounter < numTrajectories; trajCounter++) {
199 trajTrackMap->insert(
edm::Ref<std::vector<Trajectory>>(ohTrajs, trajCounter),
std::remove_cv< typename std::remove_reference< argument_type >::type >::type key_type
#define DEFINE_FWK_MODULE(type)
const edm::ESGetToken< CSCGeometry, MuonGeometryRecord > cscGeomToken_
RecHitPointer build(const TrackingRecHit *p, edm::ESHandle< GlobalTrackingGeometry > trackingGeometry) const
Call the MuonTransientTrackingRecHit::specificBuild.
~CSCOverlapsTrackPreparation() override
ROOT::Math::SVector< double, 5 > AlgebraicVector5
bool getData(T &iHolder) const
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magneticFieldToken_
CSCOverlapsTrackPreparation(const edm::ParameterSet &)
TrajectoryStateOnSurface TSOS
const Plane & surface() const
The nominal surface of the GeomDet.
auto const & tracks
cannot be loose
TrackingRecHit::ConstRecHitPointer ConstRecHitPointer
const edm::ESGetToken< GlobalTrackingGeometry, GlobalTrackingGeometryRecord > globalGeomToken_
void push(const TrajectoryMeasurement &tm)
void produce(edm::Event &, const edm::EventSetup &) override
const GeomDet * idToDet(DetId) const override