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>>();
130 for (reco::TrackCollection::const_iterator
track = tracks->begin();
track != tracks->end(); ++
track) {
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),
RecHitPointer build(const TrackingRecHit *p, edm::ESHandle< GlobalTrackingGeometry > trackingGeometry) const
Call the MuonTransientTrackingRecHit::specificBuild.
std::remove_cv< typename std::remove_reference< argument_type >::type >::type key_type
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
#define DEFINE_FWK_MODULE(type)
auto const & tracks
cannot be loose
const edm::ESGetToken< CSCGeometry, MuonGeometryRecord > cscGeomToken_
const Plane & surface() const
The nominal surface of the GeomDet.
bool getData(T &iHolder) const
~CSCOverlapsTrackPreparation() override
ROOT::Math::SVector< double, 5 > AlgebraicVector5
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magneticFieldToken_
CSCOverlapsTrackPreparation(const edm::ParameterSet &)
TrajectoryStateOnSurface TSOS
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