31 cosmicTrajectoryBuilder_(conf) ,
32 crackTrajectoryBuilder_(conf) ,
37 produces<TrackCandidateCollection>();
64 if( e.
getByLabel(pixelRecHitsTag, pixelHits)) {
65 pixelHitCollection = pixelHits.
product();
67 edm::LogWarning(
"CosmicTrackFinder") <<
"Collection SiPixelRecHitCollection with InputTag " << pixelRecHitsTag <<
" cannot be found, using empty collection of same type.";
76 e.
getByLabel( matchedrecHitsTag ,matchedrecHits);
80 e.
getByLabel( stereorecHitsTag, stereorecHits);
87 edm::LogVerbatim(
"CosmicTrackFinder") <<
"========== Cosmic Track Finder Info ==========";
88 edm::LogVerbatim(
"CosmicTrackFinder") <<
" Numbers of Seeds " << (*seed).size();
91 std::vector<Trajectory> trajoutput;
119 edm::LogVerbatim(
"CosmicTrackFinder") <<
" Numbers of Temp Trajectories " << trajoutput.size();
121 if(trajoutput.size()>0){
124 std::vector<Trajectory*> tmpTraj;
125 std::vector<Trajectory>::iterator itr;
126 for (itr=trajoutput.begin();itr!=trajoutput.end();itr++)tmpTraj.push_back(&(*itr));
136 const Trajectory theTraj = *(*tmpTraj.begin());
140 LogDebug(
"CosmicTrackFinder")<<
"Reconstruction " << (seedplus ?
"along" :
"opposite to") <<
" momentum";
165 unsigned int firstId;
168 firstState=theTraj.lastMeasurement().updatedState();
169 firstId = theTraj.lastMeasurement().recHitR().rawId();
185 edm::LogWarning(
"CosmicTrackFinder") <<
"invalid innerState, will not make TrackCandidate";
192 edm::LogWarning(
"CosmicTrackFinder") <<
"Mismatch in DetID of first hit: firstID= " <<firstId
201 output->push_back(
TrackCandidate(recHits,theTraj.seed(),state,theTraj.seedRef() ) );
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
const LocalTrajectoryParameters & localParameters() const
ROOT::Math::SMatrixIdentity AlgebraicMatrixID
std::vector< TrackCandidate > TrackCandidateCollection
CosmicTrajectoryBuilder cosmicTrajectoryBuilder_
ROOT::Math::SMatrix< double, 5, 5, ROOT::Math::MatRepSym< double, 5 > > AlgebraicSymMatrix55
const MagneticField * magneticField() const
uint32_t rawId() const
get the raw id
const TransientTrackingRecHitBuilder * hitBuilder() const
const SurfaceType & surface() const
void run(const TrajectorySeedCollection &collseed, const SiStripRecHit2DCollection &collstereo, const SiStripRecHit2DCollection &collrphi, const SiStripMatchedRecHit2DCollection &collmatched, const SiPixelRecHitCollection &collpixel, const edm::EventSetup &es, edm::Event &e, std::vector< Trajectory > &trajoutput)
Runs the algorithm.
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
CRackTrajectoryBuilder crackTrajectoryBuilder_
CosmicTrackFinder(const edm::ParameterSet &conf)
const TransientTrackingRecHitBuilder * hitBuilder() const
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual ~CosmicTrackFinder()
virtual void produce(edm::Event &e, const edm::EventSetup &c)
void run(const TrajectorySeedCollection &collseed, const SiStripRecHit2DCollection &collstereo, const SiStripRecHit2DCollection &collrphi, const SiStripMatchedRecHit2DCollection &collmatched, const SiPixelRecHitCollection &collpixel, const edm::EventSetup &es, edm::Event &e, std::vector< Trajectory > &trajoutput)
Runs the algorithm.
T const * product() const
DetId geographicalId() const