Main Page
Namespaces
Classes
Package Documentation
Alignment
MuonAlignmentAlgorithms
interface
MuonResiduals6DOFFitter.h
Go to the documentation of this file.
1
#ifndef Alignment_MuonAlignmentAlgorithms_MuonResiduals6DOFFitter_H
2
#define Alignment_MuonAlignmentAlgorithms_MuonResiduals6DOFFitter_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
MuonResiduals6DOFFitter
:
public
MuonResidualsFitter
19
{
20
public
:
21
enum
{
22
kAlignX
= 0,
23
kAlignY
,
24
kAlignZ
,
25
kAlignPhiX
,
26
kAlignPhiY
,
27
kAlignPhiZ
,
28
kResidXSigma
,
29
kResidYSigma
,
30
kResSlopeXSigma
,
31
kResSlopeYSigma
,
32
kAlphaX
,
33
kAlphaY
,
34
kResidXGamma
,
35
kResidYGamma
,
36
kResSlopeXGamma
,
37
kResSlopeYGamma
,
38
kNPar
39
};
40
41
enum
{
42
kResidX
= 0,
43
kResidY
,
44
kResSlopeX
,
45
kResSlopeY
,
46
kPositionX
,
47
kPositionY
,
48
kAngleX
,
49
kAngleY
,
50
kRedChi2
,
51
kPz
,
52
kPt
,
53
kCharge
,
54
kStation
,
55
kWheel
,
56
kSector
,
57
kChambW
,
58
kChambl
,
59
kNData
60
};
61
62
MuonResiduals6DOFFitter
(
int
residualsModel
,
int
minHits
,
int
useResiduals
,
bool
weightAlignment
=
true
):
MuonResidualsFitter
(residualsModel, minHits, useResiduals,
weightAlignment
) {}
63
virtual
~MuonResiduals6DOFFitter
() {}
64
65
int
type
()
const
{
return
MuonResidualsFitter::k6DOF
; }
66
67
int
npar
() {
68
if
(
residualsModel
() ==
kPureGaussian
||
residualsModel
() ==
kPureGaussian2D
||
residualsModel
() ==
kGaussPowerTails
)
return
kNPar
- 4;
69
else
if
(
residualsModel
() ==
kPowerLawTails
)
return
kNPar
;
70
else
if
(
residualsModel
() ==
kROOTVoigt
)
return
kNPar
;
71
else
assert(
false
);
72
}
73
int
ndata
() {
return
kNData
; }
74
75
double
sumofweights
();
76
bool
fit
(
Alignable
*ali);
77
double
plot
(
std::string
name
,
TFileDirectory
*
dir
,
Alignable
*ali);
78
79
void
correctBField
();
80
81
TTree *
readNtuple
(
std::string
fname
,
unsigned
int
wheel
,
unsigned
int
station
,
unsigned
int
sector,
unsigned
int
preselected = 1);
82
83
protected
:
84
void
inform
(TMinuit *tMinuit);
85
};
86
87
#endif // Alignment_MuonAlignmentAlgorithms_MuonResiduals6DOFFitter_H
MuonResiduals6DOFFitter::kPositionX
Definition:
MuonResiduals6DOFFitter.h:46
MuonResiduals6DOFFitter::kAngleY
Definition:
MuonResiduals6DOFFitter.h:49
MuonResidualsFitter::kROOTVoigt
Definition:
MuonResidualsFitter.h:86
MuonResiduals6DOFFitter::correctBField
void correctBField()
Definition:
MuonResiduals6DOFFitter.cc:225
MuonResiduals6DOFFitter::kSector
Definition:
MuonResiduals6DOFFitter.h:56
MuonResidualsFitter::kPureGaussian
Definition:
MuonResidualsFitter.h:84
lostTracks_cfi.minHits
minHits
Definition:
lostTracks_cfi.py:13
Alignable
Definition:
Alignable.h:27
makeMuonMisalignmentScenario.wheel
wheel
Definition:
makeMuonMisalignmentScenario.py:317
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
MuonResiduals6DOFFitter::npar
int npar()
Definition:
MuonResiduals6DOFFitter.h:67
MuonResiduals6DOFFitter::sumofweights
double sumofweights()
Definition:
MuonResiduals6DOFFitter.cc:231
MuonResiduals6DOFFitter::kPositionY
Definition:
MuonResiduals6DOFFitter.h:47
MuonResidualsFitter::residualsModel
int residualsModel() const
Definition:
MuonResidualsFitter.h:140
MuonResiduals6DOFFitter::kResSlopeYGamma
Definition:
MuonResiduals6DOFFitter.h:37
MuonResiduals6DOFFitter::MuonResiduals6DOFFitter
MuonResiduals6DOFFitter(int residualsModel, int minHits, int useResiduals, bool weightAlignment=true)
Definition:
MuonResiduals6DOFFitter.h:62
MuonResidualsFitter
Definition:
MuonResidualsFitter.h:80
MuonResiduals6DOFFitter::kAlphaX
Definition:
MuonResiduals6DOFFitter.h:32
MuonResiduals6DOFFitter::plot
double plot(std::string name, TFileDirectory *dir, Alignable *ali)
Definition:
MuonResiduals6DOFFitter.cc:341
MuonResiduals6DOFFitter::kChambl
Definition:
MuonResiduals6DOFFitter.h:58
MuonResidualsFitter.h
MuonResiduals6DOFFitter::kPz
Definition:
MuonResiduals6DOFFitter.h:51
MuonResiduals6DOFFitter::kResidYGamma
Definition:
MuonResiduals6DOFFitter.h:35
MuonResiduals6DOFFitter::kResSlopeXSigma
Definition:
MuonResiduals6DOFFitter.h:30
MuonResiduals6DOFFitter::kNData
Definition:
MuonResiduals6DOFFitter.h:59
MuonResiduals6DOFFitter::kResSlopeYSigma
Definition:
MuonResiduals6DOFFitter.h:31
align_cfg.weightAlignment
tuple weightAlignment
Definition:
align_cfg.py:30
MuonResiduals6DOFFitter::readNtuple
TTree * readNtuple(std::string fname, unsigned int wheel, unsigned int station, unsigned int sector, unsigned int preselected=1)
Definition:
MuonResiduals6DOFFitter.cc:796
MuonResidualsFitter::kPureGaussian2D
Definition:
MuonResidualsFitter.h:88
MuonResiduals6DOFFitter::kAlignZ
Definition:
MuonResiduals6DOFFitter.h:24
MuonResiduals6DOFFitter::~MuonResiduals6DOFFitter
virtual ~MuonResiduals6DOFFitter()
Definition:
MuonResiduals6DOFFitter.h:63
MuonResiduals6DOFFitter::kAlphaY
Definition:
MuonResiduals6DOFFitter.h:33
MuonResiduals6DOFFitter::kRedChi2
Definition:
MuonResiduals6DOFFitter.h:50
MuonResiduals6DOFFitter::kPt
Definition:
MuonResiduals6DOFFitter.h:52
MuonResiduals6DOFFitter::kResidXSigma
Definition:
MuonResiduals6DOFFitter.h:28
MuonResiduals6DOFFitter
Definition:
MuonResiduals6DOFFitter.h:18
MuonResiduals6DOFFitter::kResidXGamma
Definition:
MuonResiduals6DOFFitter.h:34
align_cfg.useResiduals
useResiduals
Definition:
align_cfg.py:36
MuonResiduals6DOFFitter::kResidX
Definition:
MuonResiduals6DOFFitter.h:42
MuonResiduals6DOFFitter::kAlignPhiX
Definition:
MuonResiduals6DOFFitter.h:25
MuonResiduals6DOFFitter::type
int type() const
Definition:
MuonResiduals6DOFFitter.h:65
MuonResiduals6DOFFitter::kAlignPhiZ
Definition:
MuonResiduals6DOFFitter.h:27
MuonResiduals6DOFFitter::kStation
Definition:
MuonResiduals6DOFFitter.h:54
MuonResiduals6DOFFitter::inform
void inform(TMinuit *tMinuit)
Definition:
MuonResiduals6DOFFitter.cc:219
MuonResiduals6DOFFitter::ndata
int ndata()
Definition:
MuonResiduals6DOFFitter.h:73
MuonResiduals6DOFFitter::kAlignX
Definition:
MuonResiduals6DOFFitter.h:22
MuonResiduals6DOFFitter::kCharge
Definition:
MuonResiduals6DOFFitter.h:53
MuonResiduals6DOFFitter::kResSlopeY
Definition:
MuonResiduals6DOFFitter.h:45
MuonResiduals6DOFFitter::kResidYSigma
Definition:
MuonResiduals6DOFFitter.h:29
alignmentValidation.fname
string fname
main script
Definition:
alignmentValidation.py:957
MuonResidualsFitter::k6DOF
Definition:
MuonResidualsFitter.h:94
MuonResidualsFitter::kPowerLawTails
Definition:
MuonResidualsFitter.h:85
TFileDirectory
Definition:
TFileDirectory.h:24
MuonResiduals6DOFFitter::kChambW
Definition:
MuonResiduals6DOFFitter.h:57
MuonResiduals6DOFFitter::kAlignPhiY
Definition:
MuonResiduals6DOFFitter.h:26
MuonResiduals6DOFFitter::kAngleX
Definition:
MuonResiduals6DOFFitter.h:48
MuonResiduals6DOFFitter::kResidY
Definition:
MuonResiduals6DOFFitter.h:43
MuonResiduals6DOFFitter::kNPar
Definition:
MuonResiduals6DOFFitter.h:38
dir
dbl *** dir
Definition:
mlp_gen.cc:35
dataset.name
name
Definition:
dataset.py:45
MuonResiduals6DOFFitter::kResSlopeX
Definition:
MuonResiduals6DOFFitter.h:44
MuonResiduals6DOFFitter::fit
bool fit(Alignable *ali)
Definition:
MuonResiduals6DOFFitter.cc:253
MuonResiduals6DOFFitter::kWheel
Definition:
MuonResiduals6DOFFitter.h:55
MuonResidualsFitter::kGaussPowerTails
Definition:
MuonResidualsFitter.h:87
MuonResiduals6DOFFitter::kResSlopeXGamma
Definition:
MuonResiduals6DOFFitter.h:36
relativeConstraints.station
station
Definition:
relativeConstraints.py:66
MuonResiduals6DOFFitter::kAlignY
Definition:
MuonResiduals6DOFFitter.h:23
Generated for CMSSW Reference Manual by
1.8.11