test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MuonResiduals5DOFFitter.h
Go to the documentation of this file.
1 #ifndef Alignment_MuonAlignmentAlgorithms_MuonResiduals5DOFFitter_H
2 #define Alignment_MuonAlignmentAlgorithms_MuonResiduals5DOFFitter_H
3 
10 #ifdef STANDALONE_FITTER
11 #include "MuonResidualsFitter.h"
12 #else
14 #endif
15 
16 class TTree;
17 
19 {
20 public:
21  enum {
22  kAlignX = 0,
33  };
34 
35  enum {
36  kResid = 0,
43  kPz,
44  kPt,
47  };
48 
49  MuonResiduals5DOFFitter(int residualsModel, int minHits, int useResiduals, bool weightAlignment=true): MuonResidualsFitter(residualsModel, minHits, useResiduals, weightAlignment) {}
51 
52  int type() const { return MuonResidualsFitter::k5DOF; }
53 
54  int npar() {
56  else if (residualsModel() == kPowerLawTails) return kNPar;
57  else if (residualsModel() == kROOTVoigt) return kNPar;
58  else assert(false);
59  }
60  int ndata() { return kNData; }
61 
62  double sumofweights();
63  bool fit(Alignable *ali);
65 
66  void correctBField();
67 
68  TTree * readNtuple(std::string fname, unsigned int wheel, unsigned int station, unsigned int sector, unsigned int preselected = 1);
69 
70 protected:
71  void inform(TMinuit *tMinuit);
72 };
73 
74 #endif // Alignment_MuonAlignmentAlgorithms_MuonResiduals5DOFFitter_H
tuple weightAlignment
Definition: align_cfg.py:30
assert(m_qm.get())
MuonResiduals5DOFFitter(int residualsModel, int minHits, int useResiduals, bool weightAlignment=true)
TTree * readNtuple(std::string fname, unsigned int wheel, unsigned int station, unsigned int sector, unsigned int preselected=1)
list useResiduals
Definition: align_cfg.py:36
double plot(std::string name, TFileDirectory *dir, Alignable *ali)
string fname
main script
dbl *** dir
Definition: mlp_gen.cc:35
void inform(TMinuit *tMinuit)