src
Alignment
MuonAlignmentAlgorithms
interface
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
13
#include "
Alignment/MuonAlignmentAlgorithms/interface/MuonResidualsFitter.h
"
14
#endif
15
16
class
TTree;
17
18
class
MuonResiduals5DOFFitter
:
public
MuonResidualsFitter
{
19
public
:
20
enum
{
21
kAlignX
= 0,
22
kAlignZ
,
23
kAlignPhiX
,
24
kAlignPhiY
,
25
kAlignPhiZ
,
26
kResidSigma
,
27
kResSlopeSigma
,
28
kAlpha
,
29
kResidGamma
,
30
kResSlopeGamma
,
31
kNPar
32
};
33
34
enum
{
35
kResid
= 0,
36
kResSlope
,
37
kPositionX
,
38
kPositionY
,
39
kAngleX
,
40
kAngleY
,
41
kRedChi2
,
42
kPz
,
43
kPt
,
44
kCharge
,
45
kStation
,
46
kWheel
,
47
kSector
,
48
kChambW
,
49
kChambl
,
50
kNData
51
};
52
53
MuonResiduals5DOFFitter
(
int
residualsModel
,
int
minHits
,
int
useResiduals
,
bool
weightAlignment
=
true
)
54
:
MuonResidualsFitter
(
residualsModel
,
minHits
,
useResiduals
,
weightAlignment
) {}
55
~MuonResiduals5DOFFitter
()
override
{}
56
57
int
type
()
const override
{
return
MuonResidualsFitter::k5DOF
; }
58
59
int
npar
()
override
{
60
if
(
residualsModel
() ==
kPureGaussian
||
residualsModel
() ==
kPureGaussian2D
||
61
residualsModel
() ==
kGaussPowerTails
)
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
MuonResiduals5DOFFitter::kStation
Definition:
MuonResiduals5DOFFitter.h:45
MuonResiduals5DOFFitter::kRedChi2
Definition:
MuonResiduals5DOFFitter.h:41
MuonResiduals5DOFFitter::kAngleY
Definition:
MuonResiduals5DOFFitter.h:40
MuonResiduals5DOFFitter::kAlpha
Definition:
MuonResiduals5DOFFitter.h:28
MuonResiduals5DOFFitter::kAlignX
Definition:
MuonResiduals5DOFFitter.h:21
MuonResiduals5DOFFitter::kResSlopeSigma
Definition:
MuonResiduals5DOFFitter.h:27
MuonResiduals5DOFFitter::kPz
Definition:
MuonResiduals5DOFFitter.h:42
Alignable
Definition:
Alignable.h:27
MuonResiduals5DOFFitter::kChambW
Definition:
MuonResiduals5DOFFitter.h:48
MuonResiduals5DOFFitter::kNPar
Definition:
MuonResiduals5DOFFitter.h:31
MuonResiduals5DOFFitter::npar
int npar() override
Definition:
MuonResiduals5DOFFitter.h:59
makeMuonMisalignmentScenario.wheel
wheel
Definition:
makeMuonMisalignmentScenario.py:319
MuonResiduals5DOFFitter::plot
double plot(std::string name, TFileDirectory *dir, Alignable *ali) override
Definition:
MuonResiduals5DOFFitter.cc:255
MuonResiduals5DOFFitter::kResidGamma
Definition:
MuonResiduals5DOFFitter.h:29
MuonResidualsFitter::residualsModel
int residualsModel() const
Definition:
MuonResidualsFitter.h:124
MuonResiduals5DOFFitter::MuonResiduals5DOFFitter
MuonResiduals5DOFFitter(int residualsModel, int minHits, int useResiduals, bool weightAlignment=true)
Definition:
MuonResiduals5DOFFitter.h:53
MuonResiduals5DOFFitter::kPositionX
Definition:
MuonResiduals5DOFFitter.h:37
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
Definition:
MuonResidualsFitter.h:84
MuonResiduals5DOFFitter::kPositionY
Definition:
MuonResiduals5DOFFitter.h:38
MuonResidualsFitter::kPureGaussian2D
Definition:
MuonResidualsFitter.h:86
cms::cuda::assert
assert(be >=bs)
MuonResidualsFitter.h
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
MuonResidualsFitter::kGaussPowerTails
Definition:
MuonResidualsFitter.h:86
DeadROC_duringRun.dir
dir
Definition:
DeadROC_duringRun.py:23
MuonResiduals5DOFFitter::kWheel
Definition:
MuonResiduals5DOFFitter.h:46
MuonResiduals5DOFFitter::kAngleX
Definition:
MuonResiduals5DOFFitter.h:39
align_cfg.weightAlignment
tuple weightAlignment
Definition:
align_cfg.py:30
MuonResiduals5DOFFitter::kPt
Definition:
MuonResiduals5DOFFitter.h:43
MuonResiduals5DOFFitter::~MuonResiduals5DOFFitter
~MuonResiduals5DOFFitter() override
Definition:
MuonResiduals5DOFFitter.h:55
MuonResidualsFitter::kPowerLawTails
Definition:
MuonResidualsFitter.h:86
MuonResiduals5DOFFitter
Definition:
MuonResiduals5DOFFitter.h:18
MuonResiduals5DOFFitter::kResid
Definition:
MuonResiduals5DOFFitter.h:35
MuonResiduals5DOFFitter::kCharge
Definition:
MuonResiduals5DOFFitter.h:44
MuonResidualsFitter::k5DOF
Definition:
MuonResidualsFitter.h:88
MuonResiduals5DOFFitter::kResSlopeGamma
Definition:
MuonResiduals5DOFFitter.h:30
reco_skim_cfg_mod.minHits
minHits
Definition:
reco_skim_cfg_mod.py:177
align_cfg.useResiduals
useResiduals
Definition:
align_cfg.py:36
MuonResiduals5DOFFitter::kAlignPhiZ
Definition:
MuonResiduals5DOFFitter.h:25
MuonResiduals5DOFFitter::kNData
Definition:
MuonResiduals5DOFFitter.h:50
MuonResiduals5DOFFitter::kResidSigma
Definition:
MuonResiduals5DOFFitter.h:26
MuonResidualsFitter::kPureGaussian
Definition:
MuonResidualsFitter.h:86
MuonResiduals5DOFFitter::inform
void inform(TMinuit *tMinuit) override
Definition:
MuonResiduals5DOFFitter.cc:155
MuonResiduals5DOFFitter::kAlignPhiX
Definition:
MuonResiduals5DOFFitter.h:23
MuonResiduals5DOFFitter::correctBField
void correctBField() override
Definition:
MuonResiduals5DOFFitter.cc:153
alignmentValidation.fname
string fname
main script
Definition:
alignmentValidation.py:959
MuonResiduals5DOFFitter::type
int type() const override
Definition:
MuonResiduals5DOFFitter.h:57
MuonResidualsFitter::kROOTVoigt
Definition:
MuonResidualsFitter.h:86
TFileDirectory
Definition:
TFileDirectory.h:24
MuonResiduals5DOFFitter::kResSlope
Definition:
MuonResiduals5DOFFitter.h:36
MuonResiduals5DOFFitter::kAlignZ
Definition:
MuonResiduals5DOFFitter.h:22
MuonResiduals5DOFFitter::kChambl
Definition:
MuonResiduals5DOFFitter.h:49
nano_mu_digi_cff.sector
sector
Definition:
nano_mu_digi_cff.py:20
MuonResiduals5DOFFitter::kSector
Definition:
MuonResiduals5DOFFitter.h:47
MuonResiduals5DOFFitter::kAlignPhiY
Definition:
MuonResiduals5DOFFitter.h:24
MuonResiduals5DOFFitter::ndata
int ndata() override
Definition:
MuonResiduals5DOFFitter.h:70
MuonResiduals5DOFFitter::sumofweights
double sumofweights() override
Definition:
MuonResiduals5DOFFitter.cc:157
relativeConstraints.station
station
Definition:
relativeConstraints.py:67
Skims_PA_cff.name
name
Definition:
Skims_PA_cff.py:17
MuonResiduals5DOFFitter::fit
bool fit(Alignable *ali) override
Definition:
MuonResiduals5DOFFitter.cc:176
Generated for CMSSW Reference Manual by
1.8.14