test
CMS 3D CMS Logo

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