CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MuonResiduals6DOFFitter.h
Go to the documentation of this file.
1 #ifndef Alignment_MuonAlignmentAlgorithms_MuonResiduals6DOFFitter_H
2 #define Alignment_MuonAlignmentAlgorithms_MuonResiduals6DOFFitter_H
3 
11 
13 public:
14  enum {
15  kAlignX = 0,
32  };
33 
34  enum {
35  kResidX = 0,
45  };
46 
47  MuonResiduals6DOFFitter(int residualsModel, int minHits, bool weightAlignment=true): MuonResidualsFitter(residualsModel, minHits, weightAlignment) {};
48 
49  int type() const { return MuonResidualsFitter::k6DOF; };
50 
51  int npar() {
53  else if (residualsModel() == kPowerLawTails) return kNPar;
54  else if (residualsModel() == kROOTVoigt) return kNPar;
55  else assert(false);
56  };
57  int ndata() { return kNData; };
58 
59  double sumofweights();
60  bool fit(Alignable *ali);
61  double plot(std::string name, TFileDirectory *dir, Alignable *ali);
62 
63 protected:
64  void inform(TMinuit *tMinuit);
65 };
66 
67 double MuonResiduals6DOFFitter_x(double delta_x, double delta_y, double delta_z, double delta_phix, double delta_phiy, double delta_phiz, double track_x, double track_y, double track_dxdz, double track_dydz, double alphax, double residual_dxdz);
68 double MuonResiduals6DOFFitter_y(double delta_x, double delta_y, double delta_z, double delta_phix, double delta_phiy, double delta_phiz, double track_x, double track_y, double track_dxdz, double track_dydz, double alphay, double residual_dydz);
69 double MuonResiduals6DOFFitter_dxdz(double delta_x, double delta_y, double delta_z, double delta_phix, double delta_phiy, double delta_phiz, double track_x, double track_y, double track_dxdz, double track_dydz);
70 double MuonResiduals6DOFFitter_dydz(double delta_x, double delta_y, double delta_z, double delta_phix, double delta_phiy, double delta_phiz, double track_x, double track_y, double track_dxdz, double track_dydz);
71 
72 #endif // Alignment_MuonAlignmentAlgorithms_MuonResiduals6DOFFitter_H
double MuonResiduals6DOFFitter_y(double delta_x, double delta_y, double delta_z, double delta_phix, double delta_phiy, double delta_phiz, double track_x, double track_y, double track_dxdz, double track_dydz, double alphay, double residual_dydz)
MuonResiduals6DOFFitter(int residualsModel, int minHits, bool weightAlignment=true)
tuple weightAlignment
Definition: align_cfg.py:24
double plot(std::string name, TFileDirectory *dir, Alignable *ali)
double MuonResiduals6DOFFitter_dydz(double delta_x, double delta_y, double delta_z, double delta_phix, double delta_phiy, double delta_phiz, double track_x, double track_y, double track_dxdz, double track_dydz)
double MuonResiduals6DOFFitter_dxdz(double delta_x, double delta_y, double delta_z, double delta_phix, double delta_phiy, double delta_phiz, double track_x, double track_y, double track_dxdz, double track_dydz)
void inform(TMinuit *tMinuit)
double MuonResiduals6DOFFitter_x(double delta_x, double delta_y, double delta_z, double delta_phix, double delta_phiy, double delta_phiz, double track_x, double track_y, double track_dxdz, double track_dydz, double alphax, double residual_dxdz)
dbl *** dir
Definition: mlp_gen.cc:35