41 trackProducer ( conf.getParameter<std::string>(
"TrackProducer") ),
42 useTrajectory ( conf.getParameter<bool>(
"useTrajectory") ),
43 setTrackerOnly ( conf.getParameter<bool>(
"setTrackerOnly") ),
44 setArbitratedEcalSeeded ( conf.getParameter<bool>(
"setArbitratedEcalSeeded") ),
45 setArbitratedMerged ( conf.getParameter<bool>(
"setArbitratedMerged") ),
46 setArbitratedMergedEcalGeneral ( conf.getParameter<bool>(
"setArbitratedMergedEcalGeneral") ),
47 beamSpotInputTag ( conf.getParameter<edm::InputTag>(
"beamSpotInputTag") ),
48 filterOnConvTrackHyp( conf.getParameter<bool>(
"filterOnConvTrackHyp") ),
49 minConvRadius( conf.getParameter<double>(
"minConvRadius") )
52 produces<reco::ConversionTrackCollection>();
72 std::map<reco::TrackRef,edm::Ref<std::vector<Trajectory> > > tracktrajmap;
73 std::map<reco::GsfTrackRef,edm::Ref<std::vector<Trajectory> > > gsftracktrajmap;
76 if (hTrks->size()>0) {
77 if (dynamic_cast<const reco::GsfTrack*>(&hTrks->at(0))) {
81 reco::GsfTrackCollection,
unsigned short> >::const_iterator iPair = hTTAssGsf->begin();
82 iPair != hTTAssGsf->end(); ++iPair) {
84 gsftracktrajmap[iPair->val] = iPair->key;
93 iPair != hTTAss->end();
96 tracktrajmap[iPair->val] = iPair->key;
150 if (gsftracktrajmap.size()) {
bool isTangentPointDistanceLessThan(float rmax, const reco::Track *track, const math::XYZVector refPoint)
void setIsArbitratedMergedEcalGeneral(bool b)
void setMagnField(const MagneticField *magnField)
virtual void produce(edm::Event &e, const edm::EventSetup &c)
ConversionTrackProducer(const edm::ParameterSet &conf)
bool setArbitratedMergedEcalGeneral
virtual ~ConversionTrackProducer()
edm::InputTag beamSpotInputTag
void setTrajRef(edm::Ref< std::vector< Trajectory > > tr)
void setIsArbitratedEcalSeeded(bool b)
std::vector< ConversionTrack > ConversionTrackCollection
collection of ConversionTracks
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
std::vector< GsfTrack > GsfTrackCollection
collection of GsfTracks
std::auto_ptr< reco::ConversionTrackCollection > outputTrks
std::string trackProducer
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
bool setArbitratedEcalSeeded
IdealHelixParameters ConvTrackPreSelector
void setIsTrackerOnly(bool b)
XYZVectorD XYZVector
spatial vector with cartesian internal representation
T const * product() const
bool filterOnConvTrackHyp
void setIsArbitratedMerged(bool b)