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:
14  enum {
15  kPosition = 0,
22  };
23 
24  enum {
25  kResidual = 0,
30  };
31 
32  MuonResidualsPositionFitter(int residualsModel, int minHits, int useResiduals, bool weightAlignment=true): MuonResidualsFitter(residualsModel, minHits, useResiduals, weightAlignment) {}
33 
34  int type() const override { return MuonResidualsFitter::kPositionFitter; }
35 
36  int npar() override {
38  else if (residualsModel() == kPowerLawTails) return kNPar;
39  else if (residualsModel() == kROOTVoigt) return kNPar;
40  else assert(false);
41  }
42  int ndata() override { return kNData; }
43 
44  bool fit(Alignable *ali) override;
45  double sumofweights() override { return numResiduals(); }
46  double plot(std::string name, TFileDirectory *dir, Alignable *ali) override;
47 
48 protected:
49  void inform(TMinuit *tMinuit) override;
50 };
51 
52 #endif // Alignment_MuonAlignmentAlgorithms_MuonResidualsPositionFitter_H
MuonResidualsPositionFitter(int residualsModel, int minHits, int useResiduals, bool weightAlignment=true)
double plot(std::string name, TFileDirectory *dir, Alignable *ali) override
tuple weightAlignment
Definition: align_cfg.py:30
void inform(TMinuit *tMinuit) override
dbl *** dir
Definition: mlp_gen.cc:35
bool fit(Alignable *ali) override