|
|
Go to the documentation of this file.
24 LogDebug(
"Muon|RecoMuon|StandAloneMuonRefitter") <<
"Constructor called." << endl;
35 LogDebug(
"Muon|RecoMuon|StandAloneMuonRefitter") <<
"Destructor called." << endl;
44 vector<Trajectory> refitted;
54 reverse(trajRH.begin(), trajRH.end());
57 if (!refitted.empty())
64 LogDebug(
"Muon|RecoMuon|StandAloneMuonRefitter") <<
"---------------------------------" << endl;
65 LogDebug(
"Muon|RecoMuon|StandAloneMuonRefitter") <<
"Starting refitting loop:" << endl;
67 unsigned int nSuccess = 0;
68 unsigned int nOrigHits = trajectory.
recHits().size();
75 lastFitted = singleRefitResult.second;
76 unsigned int nLastHits = lastFitted.
recHits().size();
78 if (!singleRefitResult.first) {
80 LogDebug(
"Muon|RecoMuon|StandAloneMuonRefitter") <<
" refit n. " << nSuccess + 1 <<
": failed" << endl;
84 double lostFract = 1 - double(nLastHits) / nOrigHits;
87 LogDebug(
"Muon|RecoMuon|StandAloneMuonRefitter") <<
" refit n. " << nSuccess + 1 <<
": too many RH lost" << endl;
88 LogDebug(
"Muon|RecoMuon|StandAloneMuonRefitter")
89 <<
" Survived RecHits: " << nLastHits <<
"/" << nOrigHits << endl;
94 LogDebug(
"Muon|RecoMuon|StandAloneMuonRefitter") <<
" refit n. " << nSuccess <<
": OK" << endl;
95 LogDebug(
"Muon|RecoMuon|StandAloneMuonRefitter")
96 <<
" Survived RecHits: " << nLastHits <<
"/" << nOrigHits << endl;
100 LogDebug(
"Muon|RecoMuon|StandAloneMuonRefitter") << nSuccess <<
" successful refits!" << endl;
std::pair< bool, Trajectory > RefitResult
edm::ESHandle< TrajectoryFitter > theFitter
RefitResult singleRefit(const Trajectory &)
Refit.
virtual ~StandAloneMuonRefitter()
Destructor.
TrajectoryStateOnSurface const & updatedState() const
double theMaxFractionOfLostHits
bool isForceAllIterations
std::string theFitterName
std::vector< ConstRecHitPointer > ConstRecHitContainer
const MuonServiceProxy * theService
TrajectoryMeasurement const & lastMeasurement() const
std::vector< Trajectory > fit(const Trajectory &traj, fitType type=standard) const
void rescaleError(double factor)
StandAloneMuonRefitter(const edm::ParameterSet &par, const MuonServiceProxy *service)
Constructor.
ConstRecHitContainer recHits() const
TrajectorySeed const & seed() const
Access to the seed used to reconstruct the Trajectory.
T getParameter(std::string const &) const
unsigned int theNumberOfIterations
RefitResult refit(const Trajectory &)