CMS 3D CMS Logo

MuonResiduals1DOFFitter.h
Go to the documentation of this file.
1 #ifndef Alignment_MuonAlignmentAlgorithms_MuonResiduals1DOFFitter_H
2 #define Alignment_MuonAlignmentAlgorithms_MuonResiduals1DOFFitter_H
3 
11 
13 public:
14  enum {
15  kAlign = 0,
19  };
20 
21  enum {
22  kResid = 0,
25  };
26 
27  MuonResiduals1DOFFitter(int residualsModel, int minHits, int useResiduals, bool weightAlignment=true): MuonResidualsFitter(residualsModel, minHits, useResiduals, weightAlignment) {}
28 
29  int type() const override { return MuonResidualsFitter::k1DOF; }
30 
31  int npar() override {
33  else if (residualsModel() == kPowerLawTails) return kNPar;
34  else if (residualsModel() == kROOTVoigt) return kNPar;
35  else assert(false);
36  }
37  int ndata() override { return kNData; }
38 
39  double sumofweights() override;
40  bool fit(Alignable *ali) override;
41  double plot(std::string name, TFileDirectory *dir, Alignable *ali) override;
42 
43 protected:
44  void inform(TMinuit *tMinuit) override;
45 };
46 
47 #endif // Alignment_MuonAlignmentAlgorithms_MuonResiduals1DOFFitter_H
bool fit(Alignable *ali) override
tuple weightAlignment
Definition: align_cfg.py:30
double plot(std::string name, TFileDirectory *dir, Alignable *ali) override
dbl *** dir
Definition: mlp_gen.cc:35
MuonResiduals1DOFFitter(int residualsModel, int minHits, int useResiduals, bool weightAlignment=true)
void inform(TMinuit *tMinuit) override