CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
34 
35  int npar() {
37  else if (residualsModel() == kPowerLawTails) return kNPar;
38  else if (residualsModel() == kROOTVoigt) return kNPar;
39  else assert(false);
40  }
41  int ndata() { return kNData; }
42 
43  bool fit(Alignable *ali);
44  double sumofweights() { return numResiduals(); }
45  double plot(std::string name, TFileDirectory *dir, Alignable *ali);
46 
47 protected:
48  void inform(TMinuit *tMinuit);
49 };
50 
51 #endif // Alignment_MuonAlignmentAlgorithms_MuonResidualsBfieldAngleFitter_H
double plot(std::string name, TFileDirectory *dir, Alignable *ali)
tuple weightAlignment
Definition: align_cfg.py:30
MuonResidualsBfieldAngleFitter(int residualsModel, int minHitsPerRegion, int useResiduals, bool weightAlignment=true)
list useResiduals
Definition: align_cfg.py:36
dbl *** dir
Definition: mlp_gen.cc:35