CMS 3D CMS Logo

MuonResidualsAngleFitter.h
Go to the documentation of this file.
1 #ifndef Alignment_MuonAlignmentAlgorithms_MuonResidualsAngleFitter_H
2 #define Alignment_MuonAlignmentAlgorithms_MuonResidualsAngleFitter_H
3 
11 
13 public:
14  enum {
15  kAngle = 0,
21  };
22 
23  enum {
24  kResidual = 0,
28  };
29 
30  MuonResidualsAngleFitter(int residualsModel, int minHitsPerRegion, int useResiduals, bool weightAlignment=true): MuonResidualsFitter(residualsModel, minHitsPerRegion, useResiduals, weightAlignment) {}
31 
32  int type() const { return MuonResidualsFitter::kAngleFitter; }
33 
34  int npar() {
36  else if (residualsModel() == kPowerLawTails) return kNPar;
37  else if (residualsModel() == kROOTVoigt) return kNPar;
38  else assert(false);
39  }
40  int ndata() { return kNData; }
41 
42  bool fit(Alignable *ali);
43  double sumofweights() { return numResiduals(); }
45 
46 protected:
47  void inform(TMinuit *tMinuit);
48 };
49 
50 #endif // Alignment_MuonAlignmentAlgorithms_MuonResidualsAngleFitter_H
double plot(std::string name, TFileDirectory *dir, Alignable *ali)
MuonResidualsAngleFitter(int residualsModel, int minHitsPerRegion, int useResiduals, bool weightAlignment=true)
void inform(TMinuit *tMinuit)
tuple weightAlignment
Definition: align_cfg.py:30
dbl *** dir
Definition: mlp_gen.cc:35