92 produces<reco::ConversionTrackCollection>();
104 std::map<reco::TrackRef, edm::Ref<std::vector<Trajectory> > > tracktrajmap;
105 std::map<reco::GsfTrackRef, edm::Ref<std::vector<Trajectory> > > gsftracktrajmap;
109 if (dynamic_cast<const reco::GsfTrack*>(&
trks.at(0))) {
112 gsftracktrajmap[pair.val] = pair.key;
117 tracktrajmap[pair.val] = pair.key;
124 auto outputTrks = std::make_unique<reco::ConversionTrackCollection>();
138 for (
size_t i = 0;
i <
trks.size(); ++
i) {
159 if (!gsftracktrajmap.empty()) {
166 outputTrks->push_back(convTrack);
T getParameter(std::string const &) const
void setIsGsfTrackOpen(bool b)
void setIsArbitratedMergedEcalGeneral(bool b)
void setMagnField(const MagneticField *magnField)
edm::EDGetTokenT< edm::View< reco::Track > > genericTracks
edm::EDGetTokenT< TrajTrackAssociationCollection > kfTrajectories
ConversionTrackProducer(const edm::ParameterSet &conf)
bool setArbitratedMergedEcalGeneral
edm::AssociationMap< edm::OneToOne< std::vector< Trajectory >, reco::GsfTrackCollection, unsigned short > > TrajGsfTrackAssociationCollection
void setTrajRef(edm::Ref< std::vector< Trajectory > > tr)
void setIsArbitratedEcalSeeded(bool b)
std::vector< GsfTrack > GsfTrackCollection
collection of GsfTracks
#define DEFINE_FWK_MODULE(type)
bool getData(T &iHolder) const
~ConversionTrackProducer() override
bool setArbitratedEcalSeeded
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)
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magFieldToken
void produce(edm::Event &e, const edm::EventSetup &c) override
value_type const * get() const
setArbitratedMergedEcalGeneral
void setIsArbitratedMerged(bool b)