Alignment
MuonAlignmentAlgorithms
interface
MuonResidualsBfieldAngleFitter.h
Go to the documentation of this file.
1
#ifndef Alignment_MuonAlignmentAlgorithms_MuonResidualsBfieldAngleFitter_H
2
#define Alignment_MuonAlignmentAlgorithms_MuonResidualsBfieldAngleFitter_H
3
10
#include "
Alignment/MuonAlignmentAlgorithms/interface/MuonResidualsFitter.h
"
11
12
class
MuonResidualsBfieldAngleFitter
:
public
MuonResidualsFitter
{
13
public
:
14
enum
{
kAngle
= 0,
kBfrompt
,
kBfrompz
,
kdEdx
,
kSigma
,
kGamma
,
kNPar
};
15
16
enum
{
kResidual
= 0,
kQoverPt
,
kQoverPz
,
kNData
};
17
18
MuonResidualsBfieldAngleFitter
(
int
residualsModel
,
int
minHitsPerRegion,
int
useResiduals
,
bool
weightAlignment
=
true
)
19
:
MuonResidualsFitter
(
residualsModel
, minHitsPerRegion,
useResiduals
,
weightAlignment
) {}
20
21
int
type
()
const override
{
return
MuonResidualsFitter::kAngleBfieldFitter
; }
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_MuonResidualsBfieldAngleFitter_H
MuonResidualsFitter
Definition:
MuonResidualsFitter.h:84
MuonResidualsBfieldAngleFitter
Definition:
MuonResidualsBfieldAngleFitter.h:12
align_cfg.useResiduals
useResiduals
Definition:
align_cfg.py:36
MuonResidualsBfieldAngleFitter::type
int type() const override
Definition:
MuonResidualsBfieldAngleFitter.h:21
MuonResidualsBfieldAngleFitter::kQoverPt
Definition:
MuonResidualsBfieldAngleFitter.h:16
Alignable
Definition:
Alignable.h:27
MuonResidualsFitter::numResiduals
long numResiduals() const
Definition:
MuonResidualsFitter.h:125
cms::cuda::assert
assert(be >=bs)
MuonResidualsFitter::kGaussPowerTails
Definition:
MuonResidualsFitter.h:86
MuonResidualsBfieldAngleFitter::inform
void inform(TMinuit *tMinuit) override
Definition:
MuonResidualsBfieldAngleFitter.cc:5
TFileDirectory
Definition:
TFileDirectory.h:24
MuonResidualsBfieldAngleFitter::kQoverPz
Definition:
MuonResidualsBfieldAngleFitter.h:16
MuonResidualsBfieldAngleFitter::kNData
Definition:
MuonResidualsBfieldAngleFitter.h:16
MuonResidualsFitter::kAngleBfieldFitter
Definition:
MuonResidualsFitter.h:88
MuonResidualsBfieldAngleFitter::fit
bool fit(Alignable *ali) override
Definition:
MuonResidualsBfieldAngleFitter.cc:42
MuonResidualsBfieldAngleFitter::kdEdx
Definition:
MuonResidualsBfieldAngleFitter.h:14
MuonResidualsFitter::kPowerLawTails
Definition:
MuonResidualsFitter.h:86
MuonResidualsBfieldAngleFitter::kBfrompz
Definition:
MuonResidualsBfieldAngleFitter.h:14
MuonResidualsFitter.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
MuonResidualsBfieldAngleFitter::sumofweights
double sumofweights() override
Definition:
MuonResidualsBfieldAngleFitter.h:36
MuonResidualsFitter::kPureGaussian
Definition:
MuonResidualsFitter.h:86
MuonResidualsBfieldAngleFitter::kSigma
Definition:
MuonResidualsBfieldAngleFitter.h:14
MuonResidualsBfieldAngleFitter::plot
double plot(std::string name, TFileDirectory *dir, Alignable *ali) override
Definition:
MuonResidualsBfieldAngleFitter.cc:145
MuonResidualsBfieldAngleFitter::kResidual
Definition:
MuonResidualsBfieldAngleFitter.h:16
MuonResidualsBfieldAngleFitter::npar
int npar() override
Definition:
MuonResidualsBfieldAngleFitter.h:23
MuonResidualsBfieldAngleFitter::kNPar
Definition:
MuonResidualsBfieldAngleFitter.h:14
MuonResidualsFitter::kROOTVoigt
Definition:
MuonResidualsFitter.h:86
MuonResidualsBfieldAngleFitter::ndata
int ndata() override
Definition:
MuonResidualsBfieldAngleFitter.h:33
MuonResidualsBfieldAngleFitter::kAngle
Definition:
MuonResidualsBfieldAngleFitter.h:14
align_cfg.weightAlignment
tuple weightAlignment
Definition:
align_cfg.py:30
MuonResidualsBfieldAngleFitter::kGamma
Definition:
MuonResidualsBfieldAngleFitter.h:14
Skims_PA_cff.name
name
Definition:
Skims_PA_cff.py:17
MuonResidualsFitter::residualsModel
int residualsModel() const
Definition:
MuonResidualsFitter.h:124
MuonResidualsBfieldAngleFitter::kBfrompt
Definition:
MuonResidualsBfieldAngleFitter.h:14
DeadROC_duringRun.dir
dir
Definition:
DeadROC_duringRun.py:23
MuonResidualsBfieldAngleFitter::MuonResidualsBfieldAngleFitter
MuonResidualsBfieldAngleFitter(int residualsModel, int minHitsPerRegion, int useResiduals, bool weightAlignment=true)
Definition:
MuonResidualsBfieldAngleFitter.h:18
Generated for CMSSW Reference Manual by
1.8.16