CMS 3D CMS Logo

MuonResidualsPositionFitter.h
Go to the documentation of this file.
1 #ifndef Alignment_MuonAlignmentAlgorithms_MuonResidualsPositionFitter_H
2 #define Alignment_MuonAlignmentAlgorithms_MuonResidualsPositionFitter_H
3 
11 
13 public:
15 
17 
20 
21  int type() const override { return MuonResidualsFitter::kPositionFitter; }
22 
23  int npar() override {
25  return kNPar - 1;
26  else if (residualsModel() == kPowerLawTails)
27  return kNPar;
28  else if (residualsModel() == kROOTVoigt)
29  return kNPar;
30  else
31  assert(false);
32  }
33  int ndata() override { return kNData; }
34 
35  bool fit(Alignable *ali) override;
36  double sumofweights() override { return numResiduals(); }
37  double plot(std::string name, TFileDirectory *dir, Alignable *ali) override;
38 
39 protected:
40  void inform(TMinuit *tMinuit) override;
41 };
42 
43 #endif // Alignment_MuonAlignmentAlgorithms_MuonResidualsPositionFitter_H
MuonResidualsPositionFitter(int residualsModel, int minHits, int useResiduals, bool weightAlignment=true)
assert(be >=bs)
double plot(std::string name, TFileDirectory *dir, Alignable *ali) override
tuple weightAlignment
Definition: align_cfg.py:30
void inform(TMinuit *tMinuit) override
bool fit(Alignable *ali) override