src
Alignment
MuonAlignmentAlgorithms
interface
MuonResiduals6DOFFitter.h
Go to the documentation of this file.
1
#ifndef Alignment_MuonAlignmentAlgorithms_MuonResiduals6DOFFitter_H
2
#define Alignment_MuonAlignmentAlgorithms_MuonResiduals6DOFFitter_H
3
10
#ifdef STANDALONE_FITTER
11
#include "
MuonResidualsFitter.h
"
12
#else
13
#include "
Alignment/MuonAlignmentAlgorithms/interface/MuonResidualsFitter.h
"
14
#endif
15
16
class
TTree;
17
18
class
MuonResiduals6DOFFitter
:
public
MuonResidualsFitter
{
19
public
:
20
enum
{
21
kAlignX
= 0,
22
kAlignY
,
23
kAlignZ
,
24
kAlignPhiX
,
25
kAlignPhiY
,
26
kAlignPhiZ
,
27
kResidXSigma
,
28
kResidYSigma
,
29
kResSlopeXSigma
,
30
kResSlopeYSigma
,
31
kAlphaX
,
32
kAlphaY
,
33
kResidXGamma
,
34
kResidYGamma
,
35
kResSlopeXGamma
,
36
kResSlopeYGamma
,
37
kNPar
38
};
39
40
enum
{
41
kResidX
= 0,
42
kResidY
,
43
kResSlopeX
,
44
kResSlopeY
,
45
kPositionX
,
46
kPositionY
,
47
kAngleX
,
48
kAngleY
,
49
kRedChi2
,
50
kPz
,
51
kPt
,
52
kCharge
,
53
kStation
,
54
kWheel
,
55
kSector
,
56
kChambW
,
57
kChambl
,
58
kNData
59
};
60
61
MuonResiduals6DOFFitter
(
int
residualsModel
,
int
minHits
,
int
useResiduals
,
bool
weightAlignment
=
true
)
62
:
MuonResidualsFitter
(
residualsModel
,
minHits
,
useResiduals
,
weightAlignment
) {}
63
~MuonResiduals6DOFFitter
()
override
{}
64
65
int
type
()
const override
{
return
MuonResidualsFitter::k6DOF
; }
66
67
int
npar
()
override
{
68
if
(
residualsModel
() ==
kPureGaussian
||
residualsModel
() ==
kPureGaussian2D
||
69
residualsModel
() ==
kGaussPowerTails
)
70
return
kNPar
- 4;
71
else
if
(
residualsModel
() ==
kPowerLawTails
)
72
return
kNPar
;
73
else
if
(
residualsModel
() ==
kROOTVoigt
)
74
return
kNPar
;
75
else
76
assert
(
false
);
77
}
78
int
ndata
()
override
{
return
kNData
; }
79
80
double
sumofweights
()
override
;
81
bool
fit
(
Alignable
*ali)
override
;
82
double
plot
(
std::string
name
,
TFileDirectory
*
dir
,
Alignable
*ali)
override
;
83
84
void
correctBField
()
override
;
85
86
TTree *
readNtuple
(
87
std::string
fname
,
unsigned
int
wheel
,
unsigned
int
station
,
unsigned
int
sector
,
unsigned
int
preselected = 1);
88
89
protected
:
90
void
inform
(TMinuit *tMinuit)
override
;
91
};
92
93
#endif // Alignment_MuonAlignmentAlgorithms_MuonResiduals6DOFFitter_H
MuonResiduals6DOFFitter::kResSlopeY
Definition:
MuonResiduals6DOFFitter.h:44
MuonResiduals6DOFFitter::kResidXGamma
Definition:
MuonResiduals6DOFFitter.h:33
MuonResiduals6DOFFitter::kCharge
Definition:
MuonResiduals6DOFFitter.h:52
MuonResiduals6DOFFitter::kResSlopeXSigma
Definition:
MuonResiduals6DOFFitter.h:29
MuonResiduals6DOFFitter::kNPar
Definition:
MuonResiduals6DOFFitter.h:37
MuonResiduals6DOFFitter::kAlignPhiX
Definition:
MuonResiduals6DOFFitter.h:24
Alignable
Definition:
Alignable.h:27
MuonResiduals6DOFFitter::kResidY
Definition:
MuonResiduals6DOFFitter.h:42
makeMuonMisalignmentScenario.wheel
wheel
Definition:
makeMuonMisalignmentScenario.py:319
MuonResiduals6DOFFitter::fit
bool fit(Alignable *ali) override
Definition:
MuonResiduals6DOFFitter.cc:285
MuonResiduals6DOFFitter::kChambW
Definition:
MuonResiduals6DOFFitter.h:56
MuonResidualsFitter::residualsModel
int residualsModel() const
Definition:
MuonResidualsFitter.h:124
MuonResiduals6DOFFitter::kAlphaX
Definition:
MuonResiduals6DOFFitter.h:31
MuonResiduals6DOFFitter::kResidYSigma
Definition:
MuonResiduals6DOFFitter.h:28
MuonResiduals6DOFFitter::inform
void inform(TMinuit *tMinuit) override
Definition:
MuonResiduals6DOFFitter.cc:262
MuonResiduals6DOFFitter::kResSlopeYSigma
Definition:
MuonResiduals6DOFFitter.h:30
MuonResiduals6DOFFitter::kAlphaY
Definition:
MuonResiduals6DOFFitter.h:32
MuonResiduals6DOFFitter::MuonResiduals6DOFFitter
MuonResiduals6DOFFitter(int residualsModel, int minHits, int useResiduals, bool weightAlignment=true)
Definition:
MuonResiduals6DOFFitter.h:61
MuonResidualsFitter
Definition:
MuonResidualsFitter.h:84
MuonResiduals6DOFFitter::kResSlopeX
Definition:
MuonResiduals6DOFFitter.h:43
MuonResidualsFitter::kPureGaussian2D
Definition:
MuonResidualsFitter.h:86
cms::cuda::assert
assert(be >=bs)
MuonResiduals6DOFFitter::kAlignPhiZ
Definition:
MuonResiduals6DOFFitter.h:26
MuonResiduals6DOFFitter::kWheel
Definition:
MuonResiduals6DOFFitter.h:54
MuonResidualsFitter.h
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
MuonResidualsFitter::kGaussPowerTails
Definition:
MuonResidualsFitter.h:86
MuonResiduals6DOFFitter::kPt
Definition:
MuonResiduals6DOFFitter.h:51
DeadROC_duringRun.dir
dir
Definition:
DeadROC_duringRun.py:23
MuonResiduals6DOFFitter::correctBField
void correctBField() override
Definition:
MuonResiduals6DOFFitter.cc:264
MuonResiduals6DOFFitter::plot
double plot(std::string name, TFileDirectory *dir, Alignable *ali) override
Definition:
MuonResiduals6DOFFitter.cc:443
MuonResidualsFitter::k6DOF
Definition:
MuonResidualsFitter.h:88
align_cfg.weightAlignment
tuple weightAlignment
Definition:
align_cfg.py:30
MuonResiduals6DOFFitter::kResidXSigma
Definition:
MuonResiduals6DOFFitter.h:27
MuonResiduals6DOFFitter::readNtuple
TTree * readNtuple(std::string fname, unsigned int wheel, unsigned int station, unsigned int sector, unsigned int preselected=1)
Definition:
MuonResiduals6DOFFitter.cc:1028
MuonResiduals6DOFFitter::kAlignX
Definition:
MuonResiduals6DOFFitter.h:21
MuonResiduals6DOFFitter::kSector
Definition:
MuonResiduals6DOFFitter.h:55
MuonResiduals6DOFFitter::kAngleY
Definition:
MuonResiduals6DOFFitter.h:48
MuonResiduals6DOFFitter::kPositionX
Definition:
MuonResiduals6DOFFitter.h:45
MuonResidualsFitter::kPowerLawTails
Definition:
MuonResidualsFitter.h:86
MuonResiduals6DOFFitter::kPositionY
Definition:
MuonResiduals6DOFFitter.h:46
MuonResiduals6DOFFitter::sumofweights
double sumofweights() override
Definition:
MuonResiduals6DOFFitter.cc:266
MuonResiduals6DOFFitter::npar
int npar() override
Definition:
MuonResiduals6DOFFitter.h:67
MuonResiduals6DOFFitter
Definition:
MuonResiduals6DOFFitter.h:18
MuonResiduals6DOFFitter::kResidYGamma
Definition:
MuonResiduals6DOFFitter.h:34
reco_skim_cfg_mod.minHits
minHits
Definition:
reco_skim_cfg_mod.py:177
align_cfg.useResiduals
useResiduals
Definition:
align_cfg.py:36
MuonResiduals6DOFFitter::kRedChi2
Definition:
MuonResiduals6DOFFitter.h:49
MuonResiduals6DOFFitter::kResSlopeYGamma
Definition:
MuonResiduals6DOFFitter.h:36
MuonResiduals6DOFFitter::~MuonResiduals6DOFFitter
~MuonResiduals6DOFFitter() override
Definition:
MuonResiduals6DOFFitter.h:63
MuonResidualsFitter::kPureGaussian
Definition:
MuonResidualsFitter.h:86
MuonResiduals6DOFFitter::kStation
Definition:
MuonResiduals6DOFFitter.h:53
MuonResiduals6DOFFitter::kAlignY
Definition:
MuonResiduals6DOFFitter.h:22
MuonResiduals6DOFFitter::ndata
int ndata() override
Definition:
MuonResiduals6DOFFitter.h:78
alignmentValidation.fname
string fname
main script
Definition:
alignmentValidation.py:959
MuonResidualsFitter::kROOTVoigt
Definition:
MuonResidualsFitter.h:86
TFileDirectory
Definition:
TFileDirectory.h:24
MuonResiduals6DOFFitter::kAlignZ
Definition:
MuonResiduals6DOFFitter.h:23
MuonResiduals6DOFFitter::kResSlopeXGamma
Definition:
MuonResiduals6DOFFitter.h:35
nano_mu_digi_cff.sector
sector
Definition:
nano_mu_digi_cff.py:20
MuonResiduals6DOFFitter::type
int type() const override
Definition:
MuonResiduals6DOFFitter.h:65
MuonResiduals6DOFFitter::kResidX
Definition:
MuonResiduals6DOFFitter.h:41
MuonResiduals6DOFFitter::kChambl
Definition:
MuonResiduals6DOFFitter.h:57
MuonResiduals6DOFFitter::kAngleX
Definition:
MuonResiduals6DOFFitter.h:47
MuonResiduals6DOFFitter::kNData
Definition:
MuonResiduals6DOFFitter.h:58
relativeConstraints.station
station
Definition:
relativeConstraints.py:67
MuonResiduals6DOFFitter::kAlignPhiY
Definition:
MuonResiduals6DOFFitter.h:25
MuonResiduals6DOFFitter::kPz
Definition:
MuonResiduals6DOFFitter.h:50
Skims_PA_cff.name
name
Definition:
Skims_PA_cff.py:17
Generated for CMSSW Reference Manual by
1.8.14