47 LogTrace(
"Reco|TrackingTools|SeedTransformer") <<
"SeedTransformer constructor called." << endl << endl;
50 theMuonRecHitBuilderName = iConfig.
getParameter<
string>(
"MuonRecHitBuilder");
53 nMinRecHits = iConfig.
getParameter<
unsigned int>(
"NMinRecHits");
54 errorRescale = iConfig.
getParameter<
double>(
"RescaleError");
55 useSubRecHits = iConfig.
getParameter<
bool>(
"UseSubRecHits");
59 LogTrace(
"Reco|TrackingTools|SeedTransformer") <<
"SeedTransformer destructor called." << endl << endl;
71 const string metname =
"Reco|TrackingTools|SeedTransformer";
75 if (aSeed.
nHits() < nMinRecHits) {
76 LogTrace(
metname) <<
" --- Too few RecHits, no refit performed! ---" << endl;
77 return vector<Trajectory>();
85 vector<TransientTrackingRecHit::ConstRecHitPointer>
recHits;
94 copy(subHits.begin(), subHits.end(), back_inserter(
recHits));
104 LogTrace(
metname) <<
" --- Initial state for refit not valid! ---" << endl;
105 return vector<Trajectory>();
108 vector<Trajectory> refittedSeed = theFitter->fit(aSeed,
recHits, aInitTSOS);
110 if (refittedSeed.empty()) {
112 return vector<Trajectory>();
115 else if (!refittedSeed.front().isValid()) {
116 LogTrace(
metname) <<
" --- Seed fitted, but trajectory not valid! ---" << endl;
117 return vector<Trajectory>();
129 const GeomDet* tmpGeomDet = theTrackingGeometry->idToDet(tmpDetId);