CMS 3D CMS Logo

MuonResidualsBfieldAngleFitter.h
Go to the documentation of this file.
1 #ifndef Alignment_MuonAlignmentAlgorithms_MuonResidualsBfieldAngleFitter_H
2 #define Alignment_MuonAlignmentAlgorithms_MuonResidualsBfieldAngleFitter_H
3 
11 
13 public:
15 
16  enum { kResidual = 0, kQoverPt, kQoverPz, kNData };
17 
18  MuonResidualsBfieldAngleFitter(int residualsModel, int minHitsPerRegion, int useResiduals, bool weightAlignment = true)
20 
21  int type() const override { return MuonResidualsFitter::kAngleBfieldFitter; }
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_MuonResidualsBfieldAngleFitter_H
MuonResidualsBfieldAngleFitter(int residualsModel, int minHitsPerRegion, int useResiduals, bool weightAlignment=true)
assert(be >=bs)
void inform(TMinuit *tMinuit) override
tuple weightAlignment
Definition: align_cfg.py:30
double plot(std::string name, TFileDirectory *dir, Alignable *ali) override