.....
69 pixelHitCollection = pixelHits.
product();
74 <<
"Collection SiPixelRecHitCollection with InputTag " 76 <<
" cannot be found, using empty collection of same type.";
92 auto output = std::make_unique<TrackCandidateCollection>();
96 edm::LogVerbatim(
"CosmicTrackFinder") <<
"========== Cosmic Track Finder Info ==========";
97 edm::LogVerbatim(
"CosmicTrackFinder") <<
" Numbers of Seeds " << (*seed).size();
100 std::vector<Trajectory> trajoutput;
128 edm::LogVerbatim(
"CosmicTrackFinder") <<
" Numbers of Temp Trajectories " << trajoutput.size();
130 if(!trajoutput.empty()){
133 std::vector<Trajectory*> tmpTraj;
134 std::vector<Trajectory>::iterator itr;
135 for (itr=trajoutput.begin();itr!=trajoutput.end();itr++)tmpTraj.push_back(&(*itr));
140 if (
geometry==
"MTCC") stable_sort(tmpTraj.begin(),tmpTraj.end(),CompareTrajLay());
141 else stable_sort(tmpTraj.begin(),tmpTraj.end(),CompareTrajChi());
145 const Trajectory theTraj = *(*tmpTraj.begin());
149 LogDebug(
"CosmicTrackFinder")<<
"Reconstruction " << (seedplus ?
"along" :
"opposite to") <<
" momentum";
174 unsigned int firstId;
177 firstState=theTraj.lastMeasurement().updatedState();
178 firstId = theTraj.lastMeasurement().recHitR().rawId();
194 edm::LogWarning(
"CosmicTrackFinder") <<
"invalid innerState, will not make TrackCandidate";
201 edm::LogWarning(
"CosmicTrackFinder") <<
"Mismatch in DetID of first hit: firstID= " <<firstId
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
const LocalTrajectoryParameters & localParameters() const
edm::EDGetTokenT< SiStripRecHit2DCollection > stereorecHitsToken_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
ROOT::Math::SMatrixIdentity AlgebraicMatrixID
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.
CRackTrajectoryBuilder crackTrajectoryBuilder_
edm::EDGetTokenT< SiPixelRecHitCollection > pixelRecHitsToken_
const TransientTrackingRecHitBuilder * hitBuilder() const
edm::EDGetTokenT< TrajectorySeedCollection > seedToken_
T const * product() const
edm::EDGetTokenT< SiStripMatchedRecHit2DCollection > matchedrecHitsToken_
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.
edm::EDGetTokenT< SiStripRecHit2DCollection > rphirecHitsToken_
DetId geographicalId() const