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:
14  enum {
15  kAngle = 0,
22  };
23 
24  enum {
25  kResidual = 0,
29  };
30 
31  MuonResidualsBfieldAngleFitter(int residualsModel, int minHitsPerRegion, int useResiduals, bool weightAlignment=true): MuonResidualsFitter(residualsModel, minHitsPerRegion, useResiduals, weightAlignment) {}
32 
33  int type() const override { return MuonResidualsFitter::kAngleBfieldFitter; }
34 
35  int npar() override {
37  else if (residualsModel() == kPowerLawTails) return kNPar;
38  else if (residualsModel() == kROOTVoigt) return kNPar;
39  else assert(false);
40  }
41  int ndata() override { return kNData; }
42 
43  bool fit(Alignable *ali) override;
44  double sumofweights() override { return numResiduals(); }
45  double plot(std::string name, TFileDirectory *dir, Alignable *ali) override;
46 
47 protected:
48  void inform(TMinuit *tMinuit) override;
49 };
50 
51 #endif // Alignment_MuonAlignmentAlgorithms_MuonResidualsBfieldAngleFitter_H
MuonResidualsBfieldAngleFitter(int residualsModel, int minHitsPerRegion, int useResiduals, bool weightAlignment=true)
void inform(TMinuit *tMinuit) 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