51 consumes<edm::View<reco::Track> >(thetp);
53 consumes<TrajTrackAssociationCollection>(thetp);
55 consumes<TrajGsfTrackAssociationCollection>(thetp);
56 produces<reco::ConversionTrackCollection>();
75 std::map<reco::TrackRef,edm::Ref<std::vector<Trajectory> > > tracktrajmap;
76 std::map<reco::GsfTrackRef,edm::Ref<std::vector<Trajectory> > > gsftracktrajmap;
79 if (!hTrks->empty()) {
80 if (dynamic_cast<const reco::GsfTrack*>(&hTrks->at(0))) {
85 iPair != hTTAssGsf->
end(); ++iPair) {
87 gsftracktrajmap[iPair->val] = iPair->key;
96 iPair != hTTAss->
end();
99 tracktrajmap[iPair->val] = iPair->key;
107 outputTrks = std::make_unique<reco::ConversionTrackCollection>();
123 <<
"invalid collection for the BeamSpot";
133 for (
size_t i = 0;
i < hTrks->size(); ++
i) {
155 if (!gsftracktrajmap.empty()) {
void setIsGsfTrackOpen(bool b)
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
void setIsArbitratedMergedEcalGeneral(bool b)
friend struct const_iterator
const_iterator end() const
last iterator over the map (read only)
void setMagnField(const MagneticField *magnField)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< edm::View< reco::Track > > genericTracks
edm::EDGetTokenT< TrajTrackAssociationCollection > kfTrajectories
ConversionTrackProducer(const edm::ParameterSet &conf)
bool setArbitratedMergedEcalGeneral
void setTrajRef(edm::Ref< std::vector< Trajectory > > tr)
void setIsArbitratedEcalSeeded(bool b)
std::string trackProducer
~ConversionTrackProducer() override
bool setArbitratedEcalSeeded
std::unique_ptr< reco::ConversionTrackCollection > outputTrks
IdealHelixParameters ConvTrackPreSelector
void setIsTrackerOnly(bool b)
XYZVectorD XYZVector
spatial vector with cartesian internal representation
edm::EDGetTokenT< reco::BeamSpot > beamSpotInputTag
edm::EDGetTokenT< TrajGsfTrackAssociationCollection > gsfTrajectories
bool filterOnConvTrackHyp
bool isTangentPointDistanceLessThan(float rmax, const reco::Track *track, const math::XYZVector &refPoint)
void produce(edm::Event &e, const edm::EventSetup &c) override
const_iterator begin() const
first iterator over the map (read only)
T const * product() const
setArbitratedMergedEcalGeneral
void setIsArbitratedMerged(bool b)