Alignment
MuonAlignmentAlgorithms
interface
MuonResidualsAngleFitter.h
Go to the documentation of this file.
1
#ifndef Alignment_MuonAlignmentAlgorithms_MuonResidualsAngleFitter_H
2
#define Alignment_MuonAlignmentAlgorithms_MuonResidualsAngleFitter_H
3
10
#include "
Alignment/MuonAlignmentAlgorithms/interface/MuonResidualsFitter.h
"
11
12
class
MuonResidualsAngleFitter
:
public
MuonResidualsFitter
{
13
public
:
14
enum
{
kAngle
= 0,
kXControl
,
kYControl
,
kSigma
,
kGamma
,
kNPar
};
15
16
enum
{
kResidual
= 0,
kXAngle
,
kYAngle
,
kNData
};
17
18
MuonResidualsAngleFitter
(
int
residualsModel
,
int
minHitsPerRegion,
int
useResiduals
,
bool
weightAlignment
=
true
)
19
:
MuonResidualsFitter
(
residualsModel
, minHitsPerRegion,
useResiduals
,
weightAlignment
) {}
20
21
int
type
()
const override
{
return
MuonResidualsFitter::kAngleFitter
; }
22
23
int
npar
()
override
{
24
if
(
residualsModel
() ==
kPureGaussian
||
residualsModel
() ==
kGaussPowerTails
)
25
return
kNPar
- 1;
26
else
if
(
residualsModel
() ==
kPowerLawTails
)
27
return
kNPar
;
28
else
if
(
residualsModel
() ==
kROOTVoigt
)
29
return
kNPar
;
30
else
31
assert
(
false
);
32
}
33
int
ndata
()
override
{
return
kNData
; }
34
35
bool
fit
(
Alignable
*ali)
override
;
36
double
sumofweights
()
override
{
return
numResiduals
(); }
37
double
plot
(
std::string
name
,
TFileDirectory
*
dir
,
Alignable
*ali)
override
;
38
39
protected
:
40
void
inform
(TMinuit *tMinuit)
override
;
41
};
42
43
#endif // Alignment_MuonAlignmentAlgorithms_MuonResidualsAngleFitter_H
MuonResidualsFitter
Definition:
MuonResidualsFitter.h:84
MuonResidualsAngleFitter::kNPar
Definition:
MuonResidualsAngleFitter.h:14
MuonResidualsAngleFitter::MuonResidualsAngleFitter
MuonResidualsAngleFitter(int residualsModel, int minHitsPerRegion, int useResiduals, bool weightAlignment=true)
Definition:
MuonResidualsAngleFitter.h:18
align_cfg.useResiduals
useResiduals
Definition:
align_cfg.py:36
MuonResidualsAngleFitter::kGamma
Definition:
MuonResidualsAngleFitter.h:14
Alignable
Definition:
Alignable.h:27
MuonResidualsAngleFitter::npar
int npar() override
Definition:
MuonResidualsAngleFitter.h:23
MuonResidualsAngleFitter
Definition:
MuonResidualsAngleFitter.h:12
MuonResidualsFitter::numResiduals
long numResiduals() const
Definition:
MuonResidualsFitter.h:125
cms::cuda::assert
assert(be >=bs)
MuonResidualsFitter::kGaussPowerTails
Definition:
MuonResidualsFitter.h:86
TFileDirectory
Definition:
TFileDirectory.h:24
MuonResidualsAngleFitter::sumofweights
double sumofweights() override
Definition:
MuonResidualsAngleFitter.h:36
MuonResidualsAngleFitter::kResidual
Definition:
MuonResidualsAngleFitter.h:16
MuonResidualsFitter::kPowerLawTails
Definition:
MuonResidualsFitter.h:86
MuonResidualsFitter.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
MuonResidualsAngleFitter::type
int type() const override
Definition:
MuonResidualsAngleFitter.h:21
MuonResidualsAngleFitter::kXAngle
Definition:
MuonResidualsAngleFitter.h:16
MuonResidualsFitter::kPureGaussian
Definition:
MuonResidualsFitter.h:86
MuonResidualsAngleFitter::kSigma
Definition:
MuonResidualsAngleFitter.h:14
MuonResidualsFitter::kROOTVoigt
Definition:
MuonResidualsFitter.h:86
MuonResidualsAngleFitter::plot
double plot(std::string name, TFileDirectory *dir, Alignable *ali) override
Definition:
MuonResidualsAngleFitter.cc:138
MuonResidualsAngleFitter::ndata
int ndata() override
Definition:
MuonResidualsAngleFitter.h:33
MuonResidualsAngleFitter::kNData
Definition:
MuonResidualsAngleFitter.h:16
MuonResidualsAngleFitter::fit
bool fit(Alignable *ali) override
Definition:
MuonResidualsAngleFitter.cc:40
align_cfg.weightAlignment
tuple weightAlignment
Definition:
align_cfg.py:30
Skims_PA_cff.name
name
Definition:
Skims_PA_cff.py:17
MuonResidualsAngleFitter::kAngle
Definition:
MuonResidualsAngleFitter.h:14
MuonResidualsAngleFitter::inform
void inform(TMinuit *tMinuit) override
Definition:
MuonResidualsAngleFitter.cc:5
MuonResidualsAngleFitter::kXControl
Definition:
MuonResidualsAngleFitter.h:14
MuonResidualsAngleFitter::kYControl
Definition:
MuonResidualsAngleFitter.h:14
MuonResidualsFitter::residualsModel
int residualsModel() const
Definition:
MuonResidualsFitter.h:124
MuonResidualsAngleFitter::kYAngle
Definition:
MuonResidualsAngleFitter.h:16
MuonResidualsFitter::kAngleFitter
Definition:
MuonResidualsFitter.h:88
DeadROC_duringRun.dir
dir
Definition:
DeadROC_duringRun.py:23
Generated for CMSSW Reference Manual by
1.8.16