50 consumes<edm::View<reco::Track> >(thetp);
52 consumes<TrajTrackAssociationCollection>(thetp);
54 consumes<TrajGsfTrackAssociationCollection>(thetp);
55 produces<reco::ConversionTrackCollection>();
74 std::map<reco::TrackRef,edm::Ref<std::vector<Trajectory> > > tracktrajmap;
75 std::map<reco::GsfTrackRef,edm::Ref<std::vector<Trajectory> > > gsftracktrajmap;
78 if (!hTrks->empty()) {
79 if (dynamic_cast<const reco::GsfTrack*>(&hTrks->at(0))) {
84 iPair != hTTAssGsf->
end(); ++iPair) {
86 gsftracktrajmap[iPair->val] = iPair->key;
95 iPair != hTTAss->
end();
98 tracktrajmap[iPair->val] = iPair->key;
106 outputTrks = std::make_unique<reco::ConversionTrackCollection>();
122 <<
"invalid collection for the BeamSpot";
132 for (
size_t i = 0;
i < hTrks->size(); ++
i) {
153 if (!gsftracktrajmap.empty()) {
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
setArbitratedMergedEcalGeneral
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
void setIsArbitratedMerged(bool b)