Alignment
MuonAlignmentAlgorithms
interface
MuonResiduals1DOFFitter.h
Go to the documentation of this file.
1
#ifndef Alignment_MuonAlignmentAlgorithms_MuonResiduals1DOFFitter_H
2
#define Alignment_MuonAlignmentAlgorithms_MuonResiduals1DOFFitter_H
3
10
#include "
Alignment/MuonAlignmentAlgorithms/interface/MuonResidualsFitter.h
"
11
12
class
MuonResiduals1DOFFitter
:
public
MuonResidualsFitter
{
13
public
:
14
enum
{
kAlign
= 0,
kSigma
,
kGamma
,
kNPar
};
15
16
enum
{
kResid
= 0,
kRedChi2
,
kNData
};
17
18
MuonResiduals1DOFFitter
(
int
residualsModel
,
int
minHits
,
int
useResiduals
,
bool
weightAlignment
=
true
)
19
:
MuonResidualsFitter
(
residualsModel
,
minHits
,
useResiduals
,
weightAlignment
) {}
20
21
int
type
()
const override
{
return
MuonResidualsFitter::k1DOF
; }
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
double
sumofweights
()
override
;
36
bool
fit
(
Alignable
*ali)
override
;
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_MuonResiduals1DOFFitter_H
MuonResidualsFitter
Definition:
MuonResidualsFitter.h:84
align_cfg.useResiduals
useResiduals
Definition:
align_cfg.py:36
Alignable
Definition:
Alignable.h:27
MuonResiduals1DOFFitter::npar
int npar() override
Definition:
MuonResiduals1DOFFitter.h:23
cms::cuda::assert
assert(be >=bs)
MuonResidualsFitter::kGaussPowerTails
Definition:
MuonResidualsFitter.h:86
TFileDirectory
Definition:
TFileDirectory.h:24
MuonResiduals1DOFFitter::inform
void inform(TMinuit *tMinuit) override
Definition:
MuonResiduals1DOFFitter.cc:9
MuonResiduals1DOFFitter::kRedChi2
Definition:
MuonResiduals1DOFFitter.h:16
MuonResiduals1DOFFitter::kSigma
Definition:
MuonResiduals1DOFFitter.h:14
MuonResiduals1DOFFitter::kAlign
Definition:
MuonResiduals1DOFFitter.h:14
MuonResiduals1DOFFitter::kGamma
Definition:
MuonResiduals1DOFFitter.h:14
MuonResiduals1DOFFitter::plot
double plot(std::string name, TFileDirectory *dir, Alignable *ali) override
Definition:
MuonResiduals1DOFFitter.cc:156
MuonResiduals1DOFFitter::kNData
Definition:
MuonResiduals1DOFFitter.h:16
MuonResiduals1DOFFitter::fit
bool fit(Alignable *ali) override
Definition:
MuonResiduals1DOFFitter.cc:64
MuonResiduals1DOFFitter::kResid
Definition:
MuonResiduals1DOFFitter.h:16
MuonResidualsFitter::kPowerLawTails
Definition:
MuonResidualsFitter.h:86
MuonResidualsFitter.h
MuonResiduals1DOFFitter::kNPar
Definition:
MuonResiduals1DOFFitter.h:14
MuonResidualsFitter::k1DOF
Definition:
MuonResidualsFitter.h:88
MuonResidualsFitter::kPureGaussian
Definition:
MuonResidualsFitter.h:86
MuonResiduals1DOFFitter::MuonResiduals1DOFFitter
MuonResiduals1DOFFitter(int residualsModel, int minHits, int useResiduals, bool weightAlignment=true)
Definition:
MuonResiduals1DOFFitter.h:18
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
MuonResidualsFitter::kROOTVoigt
Definition:
MuonResidualsFitter.h:86
align_cfg.weightAlignment
tuple weightAlignment
Definition:
align_cfg.py:30
Skims_PA_cff.name
name
Definition:
Skims_PA_cff.py:17
MuonResiduals1DOFFitter::ndata
int ndata() override
Definition:
MuonResiduals1DOFFitter.h:33
MuonResidualsFitter::residualsModel
int residualsModel() const
Definition:
MuonResidualsFitter.h:124
MuonResiduals1DOFFitter::type
int type() const override
Definition:
MuonResiduals1DOFFitter.h:21
reco_skim_cfg_mod.minHits
minHits
Definition:
reco_skim_cfg_mod.py:177
MuonResiduals1DOFFitter
Definition:
MuonResiduals1DOFFitter.h:12
DeadROC_duringRun.dir
dir
Definition:
DeadROC_duringRun.py:23
MuonResiduals1DOFFitter::sumofweights
double sumofweights() override
Definition:
MuonResiduals1DOFFitter.cc:45
Generated for CMSSW Reference Manual by
1.8.16