test
CMS 3D CMS Logo

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