CMS 3D CMS Logo

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 public:
20  enum {
21  kAlignX = 0,
32  };
33 
34  enum {
35  kResid = 0,
42  kPz,
43  kPt,
51  };
52 
56 
57  int type() const override { return MuonResidualsFitter::k5DOF; }
58 
59  int npar() override {
62  return kNPar - 2;
63  else if (residualsModel() == kPowerLawTails)
64  return kNPar;
65  else if (residualsModel() == kROOTVoigt)
66  return kNPar;
67  else
68  assert(false);
69  }
70  int ndata() override { return kNData; }
71 
72  double sumofweights() override;
73  bool fit(Alignable *ali) override;
74  double plot(std::string name, TFileDirectory *dir, Alignable *ali) override;
75 
76  void correctBField() override;
77 
78  TTree *readNtuple(
79  std::string fname, unsigned int wheel, unsigned int station, unsigned int sector, unsigned int preselected = 1);
80 
81 protected:
82  void inform(TMinuit *tMinuit) override;
83 };
84 
85 #endif // Alignment_MuonAlignmentAlgorithms_MuonResiduals5DOFFitter_H
MuonResidualsFitter
Definition: MuonResidualsFitter.h:84
MuonResiduals5DOFFitter::kRedChi2
Definition: MuonResiduals5DOFFitter.h:41
MuonResiduals5DOFFitter::kStation
Definition: MuonResiduals5DOFFitter.h:45
MuonResiduals5DOFFitter::kPositionY
Definition: MuonResiduals5DOFFitter.h:38
align_cfg.useResiduals
useResiduals
Definition: align_cfg.py:36
relativeConstraints.station
station
Definition: relativeConstraints.py:67
MuonResiduals5DOFFitter::kAlignZ
Definition: MuonResiduals5DOFFitter.h:22
Alignable
Definition: Alignable.h:27
MuonResiduals5DOFFitter::kSector
Definition: MuonResiduals5DOFFitter.h:47
cms::cuda::assert
assert(be >=bs)
MuonResiduals5DOFFitter::readNtuple
TTree * readNtuple(std::string fname, unsigned int wheel, unsigned int station, unsigned int sector, unsigned int preselected=1)
Definition: MuonResiduals5DOFFitter.cc:610
MuonResidualsFitter::kGaussPowerTails
Definition: MuonResidualsFitter.h:86
MuonResiduals5DOFFitter::kChambl
Definition: MuonResiduals5DOFFitter.h:49
TFileDirectory
Definition: TFileDirectory.h:24
MuonResiduals5DOFFitter::fit
bool fit(Alignable *ali) override
Definition: MuonResiduals5DOFFitter.cc:176
MuonResiduals5DOFFitter::sumofweights
double sumofweights() override
Definition: MuonResiduals5DOFFitter.cc:157
MuonResiduals5DOFFitter::kResidSigma
Definition: MuonResiduals5DOFFitter.h:26
MuonResiduals5DOFFitter::kChambW
Definition: MuonResiduals5DOFFitter.h:48
MuonResiduals5DOFFitter::plot
double plot(std::string name, TFileDirectory *dir, Alignable *ali) override
Definition: MuonResiduals5DOFFitter.cc:255
MuonResiduals5DOFFitter::kAngleX
Definition: MuonResiduals5DOFFitter.h:39
MuonResiduals5DOFFitter::kResSlope
Definition: MuonResiduals5DOFFitter.h:36
MuonResiduals5DOFFitter::kResSlopeGamma
Definition: MuonResiduals5DOFFitter.h:30
MuonResiduals5DOFFitter::~MuonResiduals5DOFFitter
~MuonResiduals5DOFFitter() override
Definition: MuonResiduals5DOFFitter.h:55
MuonResidualsFitter::kPowerLawTails
Definition: MuonResidualsFitter.h:86
MuonResiduals5DOFFitter::kResidGamma
Definition: MuonResiduals5DOFFitter.h:29
MuonResidualsFitter.h
MuonResiduals5DOFFitter::kCharge
Definition: MuonResiduals5DOFFitter.h:44
MuonResiduals5DOFFitter::kAlignPhiY
Definition: MuonResiduals5DOFFitter.h:24
MuonResiduals5DOFFitter::kAlignX
Definition: MuonResiduals5DOFFitter.h:21
MuonResiduals5DOFFitter::kAlpha
Definition: MuonResiduals5DOFFitter.h:28
MuonResiduals5DOFFitter::type
int type() const override
Definition: MuonResiduals5DOFFitter.h:57
MuonResiduals5DOFFitter::kResid
Definition: MuonResiduals5DOFFitter.h:35
MuonResidualsFitter::kPureGaussian
Definition: MuonResidualsFitter.h:86
MuonResiduals5DOFFitter::kWheel
Definition: MuonResiduals5DOFFitter.h:46
MuonResiduals5DOFFitter::kAlignPhiZ
Definition: MuonResiduals5DOFFitter.h:25
makeMuonMisalignmentScenario.wheel
wheel
Definition: makeMuonMisalignmentScenario.py:319
MuonResiduals5DOFFitter::MuonResiduals5DOFFitter
MuonResiduals5DOFFitter(int residualsModel, int minHits, int useResiduals, bool weightAlignment=true)
Definition: MuonResiduals5DOFFitter.h:53
MuonResiduals5DOFFitter::kPt
Definition: MuonResiduals5DOFFitter.h:43
MuonResiduals5DOFFitter::kNPar
Definition: MuonResiduals5DOFFitter.h:31
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
MuonResidualsFitter::kROOTVoigt
Definition: MuonResidualsFitter.h:86
MuonResidualsFitter::k5DOF
Definition: MuonResidualsFitter.h:88
MuonResiduals5DOFFitter::kAlignPhiX
Definition: MuonResiduals5DOFFitter.h:23
alignmentValidation.fname
string fname
main script
Definition: alignmentValidation.py:959
MuonResiduals5DOFFitter::inform
void inform(TMinuit *tMinuit) override
Definition: MuonResiduals5DOFFitter.cc:155
MuonResiduals5DOFFitter::kResSlopeSigma
Definition: MuonResiduals5DOFFitter.h:27
MuonResiduals5DOFFitter::correctBField
void correctBField() override
Definition: MuonResiduals5DOFFitter.cc:153
MuonResiduals5DOFFitter::kNData
Definition: MuonResiduals5DOFFitter.h:50
align_cfg.weightAlignment
tuple weightAlignment
Definition: align_cfg.py:30
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
MuonResiduals5DOFFitter::kAngleY
Definition: MuonResiduals5DOFFitter.h:40
MuonResiduals5DOFFitter::kPositionX
Definition: MuonResiduals5DOFFitter.h:37
MuonResiduals5DOFFitter
Definition: MuonResiduals5DOFFitter.h:18
MuonResiduals5DOFFitter::npar
int npar() override
Definition: MuonResiduals5DOFFitter.h:59
MuonResidualsFitter::kPureGaussian2D
Definition: MuonResidualsFitter.h:86
MuonResidualsFitter::residualsModel
int residualsModel() const
Definition: MuonResidualsFitter.h:124
MuonResiduals5DOFFitter::kPz
Definition: MuonResiduals5DOFFitter.h:42
reco_skim_cfg_mod.minHits
minHits
Definition: reco_skim_cfg_mod.py:177
MuonResiduals5DOFFitter::ndata
int ndata() override
Definition: MuonResiduals5DOFFitter.h:70
DeadROC_duringRun.dir
dir
Definition: DeadROC_duringRun.py:23