31 produces<reco::TrackCollection>().setBranchAlias(
alias_ +
"Tracks" );
32 produces<reco::TrackExtraCollection>().setBranchAlias(
alias_ +
"TrackExtras" );
33 produces<TrackingRecHitCollection>().setBranchAlias(
alias_ +
"RecHits" );
34 produces<std::vector<Trajectory> >();
35 produces<TrajTrackAssociationCollection>();
36 produces<TrajAnnealingCollection>().setBranchAlias(
alias_ +
"TrajectoryAnnealing" );
44 edm::LogInfo(
"DAFTrackProducer") <<
"Analyzing event number: " << theEvent.
id() <<
"\n";
50 std::auto_ptr<std::vector<Trajectory> > outputTrajectoryColl(
new std::vector<Trajectory>);
60 getFromES(setup,theG,theMF,theFitter,thePropagator,theMeasTk,theBuilder);
82 getFromEvt(theEvent,theTrajectoryCollection,bs);
88 LogDebug(
"DAFTrackProducer") <<
"run the DAF algorithm" <<
"\n";
95 edm::LogInfo(
"DAFTrackProducer") <<
"cms::Exception caught!!!" <<
"\n" << e <<
"\n";
101 outputRHColl, outputTColl, outputTEColl,
102 outputTrajectoryColl, algoResults, theBuilder.
product());
105 LogDebug(
"DAFTrackProducer") <<
"end the DAF algorithm." <<
"\n";
118 bs = *recoBeamSpotHandle;
123 std::auto_ptr<TrajAnnealingCollection>& outputTrajAnnColl){
124 const int size = trajannResults.size();
125 outputTrajAnnColl->reserve(size);
127 for(
unsigned int i = 0;
i < trajannResults.size() ;
i++){
128 outputTrajAnnColl->push_back(trajannResults[
i]);
131 theEvent.
put( outputTrajAnnColl );
T getParameter(std::string const &) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< Track > TrackCollection
collection of Tracks
DAFTrackProducerAlgorithm theAlgo
std::vector< TrajAnnealing > TrajAnnealingCollection
void setAlias(std::string alias)
set the aliases of produced collections
virtual void putInEvt(edm::Event &, const Propagator *prop, const MeasurementTracker *measTk, std::auto_ptr< TrackingRecHitCollection > &, std::auto_ptr< reco::TrackCollection > &, std::auto_ptr< reco::TrackExtraCollection > &, std::auto_ptr< std::vector< Trajectory > > &, AlgoProductCollection &, TransientTrackingRecHitBuilder const *)
Put produced collections in the event.
void setConf(const edm::ParameterSet &conf)
Set parameter set.
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
void getFromEvt(edm::Event &, edm::Handle< TrajectoryCollection > &, reco::BeamSpot &)
std::vector< AlgoProduct > AlgoProductCollection
edm::EDGetTokenT< MeasurementTrackerEvent > mteSrc_
void setSrc(const edm::EDGetToken &src, const edm::EDGetTokenT< reco::BeamSpot > &bsSrc, const edm::EDGetTokenT< MeasurementTrackerEvent > &mteSrc)
set label of source collection
virtual void produce(edm::Event &, const edm::EventSetup &)
std::vector< TrackExtra > TrackExtraCollection
collection of TrackExtra objects
void putInEvtTrajAnn(edm::Event &theEvent, TrajAnnealingCollection &trajannResults, std::auto_ptr< TrajAnnealingCollection > &selTrajAnn)
T const * product() const
edm::EDGetTokenT< reco::BeamSpot > bsSrc_
void runWithCandidate(const TrackingGeometry *, const MagneticField *, const std::vector< Trajectory > &, const MeasurementTrackerEvent *measTk, const TrajectoryFitter *, const TransientTrackingRecHitBuilder *, const MultiRecHitCollector *measurementTracker, const SiTrackerMultiRecHitUpdator *, const reco::BeamSpot &, AlgoProductCollection &, TrajAnnealingCollection &, bool) const
Run the Final Fit taking TrackCandidates as input.
volatile std::atomic< bool > shutdown_flag false
DAFTrackProducer(const edm::ParameterSet &iConfig)
const edm::ParameterSet & getConf() const
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
tuple size
Write out results.
virtual void getFromES(const edm::EventSetup &, edm::ESHandle< TrackerGeometry > &, edm::ESHandle< MagneticField > &, edm::ESHandle< TrajectoryFitter > &, edm::ESHandle< Propagator > &, edm::ESHandle< MeasurementTracker > &, edm::ESHandle< TransientTrackingRecHitBuilder > &)
Get needed services from the Event Setup.