Alignment
MuonAlignmentAlgorithms
interface
MuonResiduals6DOFrphiFitter.h
Go to the documentation of this file.
1
#ifndef Alignment_MuonAlignmentAlgorithms_MuonResiduals6DOFrphiFitter_H
2
#define Alignment_MuonAlignmentAlgorithms_MuonResiduals6DOFrphiFitter_H
3
10
#ifdef STANDALONE_FITTER
11
#include "
MuonResidualsFitter.h
"
12
#else
13
#include "
Alignment/MuonAlignmentAlgorithms/interface/MuonResidualsFitter.h
"
14
#include "
Geometry/CSCGeometry/interface/CSCGeometry.h
"
15
#endif
16
17
class
TTree;
18
19
class
MuonResiduals6DOFrphiFitter
:
public
MuonResidualsFitter
{
20
public
:
21
enum
{
22
kAlignX
= 0,
23
kAlignY
,
24
kAlignZ
,
25
kAlignPhiX
,
26
kAlignPhiY
,
27
kAlignPhiZ
,
28
kResidSigma
,
29
kResSlopeSigma
,
30
kAlpha
,
31
kResidGamma
,
32
kResSlopeGamma
,
33
kNPar
34
};
35
36
enum
{
kResid
= 0,
kResSlope
,
kPositionX
,
kPositionY
,
kAngleX
,
kAngleY
,
kRedChi2
,
kPz
,
kPt
,
kCharge
,
kNData
};
37
38
MuonResiduals6DOFrphiFitter
(
int
residualsModel
,
int
minHits
,
int
useResiduals
,
bool
weightAlignment
=
true
)
39
:
MuonResidualsFitter
(
residualsModel
,
minHits
,
useResiduals
,
weightAlignment
) {}
40
41
#ifndef STANDALONE_FITTER
42
MuonResiduals6DOFrphiFitter
(
43
int
residualsModel
,
int
minHits
,
int
useResiduals
,
const
CSCGeometry
*cscGeometry,
bool
weightAlignment
=
true
)
44
:
MuonResidualsFitter
(
residualsModel
,
minHits
,
useResiduals
,
weightAlignment
) {}
45
#endif
46
47
~MuonResiduals6DOFrphiFitter
()
override
{}
48
49
int
type
()
const override
{
return
MuonResidualsFitter::k6DOFrphi
; }
50
51
int
npar
()
override
{
52
if
(
residualsModel
() ==
kPureGaussian
||
residualsModel
() ==
kPureGaussian2D
||
53
residualsModel
() ==
kGaussPowerTails
)
54
return
kNPar
- 2;
55
else
if
(
residualsModel
() ==
kPowerLawTails
)
56
return
kNPar
;
57
else
if
(
residualsModel
() ==
kROOTVoigt
)
58
return
kNPar
;
59
else
60
assert
(
false
);
61
}
62
int
ndata
()
override
{
return
kNData
; }
63
64
double
sumofweights
()
override
;
65
bool
fit
(
Alignable
*ali)
override
;
66
double
plot
(
std::string
name
,
TFileDirectory
*
dir
,
Alignable
*ali)
override
;
67
68
void
correctBField
()
override
;
69
70
TTree *
readNtuple
(
std::string
fname
,
71
unsigned
int
endcap
,
72
unsigned
int
station
,
73
unsigned
int
ring
,
74
unsigned
int
chamber
,
75
unsigned
int
preselected = 1);
76
77
protected
:
78
void
inform
(TMinuit *tMinuit)
override
;
79
80
private
:
81
//const CSCGeometry *m_cscGeometry;
82
};
83
84
#endif // Alignment_MuonAlignmentAlgorithms_MuonResiduals6DOFrphiFitter_H
MuonResidualsFitter
Definition:
MuonResidualsFitter.h:84
MuonResiduals6DOFrphiFitter::kAlpha
Definition:
MuonResiduals6DOFrphiFitter.h:30
MuonResiduals6DOFrphiFitter::kResid
Definition:
MuonResiduals6DOFrphiFitter.h:36
MuonResiduals6DOFrphiFitter::kPz
Definition:
MuonResiduals6DOFrphiFitter.h:36
MuonResiduals6DOFrphiFitter::kRedChi2
Definition:
MuonResiduals6DOFrphiFitter.h:36
MuonResiduals6DOFrphiFitter::MuonResiduals6DOFrphiFitter
MuonResiduals6DOFrphiFitter(int residualsModel, int minHits, int useResiduals, const CSCGeometry *cscGeometry, bool weightAlignment=true)
Definition:
MuonResiduals6DOFrphiFitter.h:42
MuonResiduals6DOFrphiFitter::kNData
Definition:
MuonResiduals6DOFrphiFitter.h:36
align_cfg.useResiduals
useResiduals
Definition:
align_cfg.py:36
MuonResidualsFitter::k6DOFrphi
Definition:
MuonResidualsFitter.h:88
MuonResiduals6DOFrphiFitter::kNPar
Definition:
MuonResiduals6DOFrphiFitter.h:33
relativeConstraints.station
station
Definition:
relativeConstraints.py:67
Alignable
Definition:
Alignable.h:27
cms::cuda::assert
assert(be >=bs)
MuonResiduals6DOFrphiFitter::correctBField
void correctBField() override
Definition:
MuonResiduals6DOFrphiFitter.cc:192
MuonResidualsFitter::kGaussPowerTails
Definition:
MuonResidualsFitter.h:86
TFileDirectory
Definition:
TFileDirectory.h:24
makeMuonMisalignmentScenario.endcap
endcap
Definition:
makeMuonMisalignmentScenario.py:320
MuonResiduals6DOFrphiFitter::~MuonResiduals6DOFrphiFitter
~MuonResiduals6DOFrphiFitter() override
Definition:
MuonResiduals6DOFrphiFitter.h:47
MuonResiduals6DOFrphiFitter::readNtuple
TTree * readNtuple(std::string fname, unsigned int endcap, unsigned int station, unsigned int ring, unsigned int chamber, unsigned int preselected=1)
Definition:
MuonResiduals6DOFrphiFitter.cc:658
CSCGeometry
Definition:
CSCGeometry.h:24
MuonResiduals6DOFrphiFitter::kAlignPhiZ
Definition:
MuonResiduals6DOFrphiFitter.h:27
MuonResiduals6DOFrphiFitter::kAngleY
Definition:
MuonResiduals6DOFrphiFitter.h:36
MuonResiduals6DOFrphiFitter::MuonResiduals6DOFrphiFitter
MuonResiduals6DOFrphiFitter(int residualsModel, int minHits, int useResiduals, bool weightAlignment=true)
Definition:
MuonResiduals6DOFrphiFitter.h:38
MuonResiduals6DOFrphiFitter::kResidGamma
Definition:
MuonResiduals6DOFrphiFitter.h:31
MuonResidualsFitter::kPowerLawTails
Definition:
MuonResidualsFitter.h:86
MuonResiduals6DOFrphiFitter::kPositionX
Definition:
MuonResiduals6DOFrphiFitter.h:36
MuonResiduals6DOFrphiFitter::sumofweights
double sumofweights() override
Definition:
MuonResiduals6DOFrphiFitter.cc:196
MuonResidualsFitter.h
MuonResiduals6DOFrphiFitter::kResSlope
Definition:
MuonResiduals6DOFrphiFitter.h:36
MuonResiduals6DOFrphiFitter::fit
bool fit(Alignable *ali) override
Definition:
MuonResiduals6DOFrphiFitter.cc:215
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
MuonResidualsFitter::kPureGaussian
Definition:
MuonResidualsFitter.h:86
MuonResiduals6DOFrphiFitter::inform
void inform(TMinuit *tMinuit) override
Definition:
MuonResiduals6DOFrphiFitter.cc:194
MuonResiduals6DOFrphiFitter::npar
int npar() override
Definition:
MuonResiduals6DOFrphiFitter.h:51
MuonResiduals6DOFrphiFitter::kResSlopeSigma
Definition:
MuonResiduals6DOFrphiFitter.h:29
MuonResiduals6DOFrphiFitter::kAlignPhiX
Definition:
MuonResiduals6DOFrphiFitter.h:25
MuonResiduals6DOFrphiFitter::kAlignY
Definition:
MuonResiduals6DOFrphiFitter.h:23
MuonResiduals6DOFrphiFitter::kPositionY
Definition:
MuonResiduals6DOFrphiFitter.h:36
MuonResidualsFitter::kROOTVoigt
Definition:
MuonResidualsFitter.h:86
MuonResiduals6DOFrphiFitter::kResidSigma
Definition:
MuonResiduals6DOFrphiFitter.h:28
MuonResiduals6DOFrphiFitter::ndata
int ndata() override
Definition:
MuonResiduals6DOFrphiFitter.h:62
alignmentValidation.fname
string fname
main script
Definition:
alignmentValidation.py:959
MuonResiduals6DOFrphiFitter::kAlignX
Definition:
MuonResiduals6DOFrphiFitter.h:22
MuonResiduals6DOFrphiFitter::kAlignPhiY
Definition:
MuonResiduals6DOFrphiFitter.h:26
align_cfg.weightAlignment
tuple weightAlignment
Definition:
align_cfg.py:30
relativeConstraints.ring
ring
Definition:
relativeConstraints.py:68
MuonResiduals6DOFrphiFitter::type
int type() const override
Definition:
MuonResiduals6DOFrphiFitter.h:49
relativeConstraints.chamber
chamber
Definition:
relativeConstraints.py:53
Skims_PA_cff.name
name
Definition:
Skims_PA_cff.py:17
MuonResiduals6DOFrphiFitter::kAlignZ
Definition:
MuonResiduals6DOFrphiFitter.h:24
MuonResiduals6DOFrphiFitter::kPt
Definition:
MuonResiduals6DOFrphiFitter.h:36
MuonResidualsFitter::kPureGaussian2D
Definition:
MuonResidualsFitter.h:86
MuonResidualsFitter::residualsModel
int residualsModel() const
Definition:
MuonResidualsFitter.h:124
MuonResiduals6DOFrphiFitter::plot
double plot(std::string name, TFileDirectory *dir, Alignable *ali) override
Definition:
MuonResiduals6DOFrphiFitter.cc:303
MuonResiduals6DOFrphiFitter::kAngleX
Definition:
MuonResiduals6DOFrphiFitter.h:36
reco_skim_cfg_mod.minHits
minHits
Definition:
reco_skim_cfg_mod.py:177
CSCGeometry.h
DeadROC_duringRun.dir
dir
Definition:
DeadROC_duringRun.py:23
MuonResiduals6DOFrphiFitter
Definition:
MuonResiduals6DOFrphiFitter.h:19
MuonResiduals6DOFrphiFitter::kResSlopeGamma
Definition:
MuonResiduals6DOFrphiFitter.h:32
MuonResiduals6DOFrphiFitter::kCharge
Definition:
MuonResiduals6DOFrphiFitter.h:36
Generated for CMSSW Reference Manual by
1.8.16