Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
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
kNData
55
};
56
57
MuonResiduals6DOFFitter
(
int
residualsModel
,
int
minHits
,
int
useResiduals
,
bool
weightAlignment
=
true
):
MuonResidualsFitter
(residualsModel, minHits, useResiduals,
weightAlignment
) {}
58
virtual
~MuonResiduals6DOFFitter
() {}
59
60
int
type
()
const
{
return
MuonResidualsFitter::k6DOF
; }
61
62
int
npar
() {
63
if
(
residualsModel
() ==
kPureGaussian
||
residualsModel
() ==
kPureGaussian2D
||
residualsModel
() ==
kGaussPowerTails
)
return
kNPar
- 4;
64
else
if
(
residualsModel
() ==
kPowerLawTails
)
return
kNPar
;
65
else
if
(
residualsModel
() ==
kROOTVoigt
)
return
kNPar
;
66
else
assert(
false
);
67
}
68
int
ndata
() {
return
kNData
; }
69
70
double
sumofweights
();
71
bool
fit
(
Alignable
*ali);
72
double
plot
(
std::string
name
,
TFileDirectory
*
dir
,
Alignable
*ali);
73
74
void
correctBField
();
75
76
TTree *
readNtuple
(
std::string
fname
,
unsigned
int
wheel,
unsigned
int
station
,
unsigned
int
sector,
unsigned
int
preselected = 1);
77
78
protected
:
79
void
inform
(TMinuit *tMinuit);
80
};
81
82
#endif // Alignment_MuonAlignmentAlgorithms_MuonResiduals6DOFFitter_H
MuonResiduals6DOFFitter::kResSlopeXGamma
Definition:
MuonResiduals6DOFFitter.h:36
align_cfg.weightAlignment
tuple weightAlignment
Definition:
align_cfg.py:30
MuonResiduals6DOFFitter::kAlignPhiZ
Definition:
MuonResiduals6DOFFitter.h:27
MuonResiduals6DOFFitter::kAlphaX
Definition:
MuonResiduals6DOFFitter.h:32
MuonResiduals6DOFFitter::correctBField
void correctBField()
Definition:
MuonResiduals6DOFFitter.cc:225
MuonResiduals6DOFFitter::kAlignPhiY
Definition:
MuonResiduals6DOFFitter.h:26
MuonResiduals6DOFFitter::kResidY
Definition:
MuonResiduals6DOFFitter.h:43
MuonResidualsFitter::kPureGaussian2D
Definition:
MuonResidualsFitter.h:88
MuonResiduals6DOFFitter::kPositionY
Definition:
MuonResiduals6DOFFitter.h:47
Alignable
Definition:
Alignable.h:29
MuonResidualsFitter::kROOTVoigt
Definition:
MuonResidualsFitter.h:86
MuonResiduals6DOFFitter::npar
int npar()
Definition:
MuonResiduals6DOFFitter.h:62
MuonResiduals6DOFFitter::sumofweights
double sumofweights()
Definition:
MuonResiduals6DOFFitter.cc:231
MuonResidualsFitter::kPowerLawTails
Definition:
MuonResidualsFitter.h:85
MuonResiduals6DOFFitter::kResSlopeYGamma
Definition:
MuonResiduals6DOFFitter.h:37
MuonResiduals6DOFFitter::kCharge
Definition:
MuonResiduals6DOFFitter.h:53
OccupancyClient_cfi.minHits
int minHits
Definition:
OccupancyClient_cfi.py:5
MuonResiduals6DOFFitter::kNPar
Definition:
MuonResiduals6DOFFitter.h:38
MuonResidualsFitter::residualsModel
int residualsModel() const
Definition:
MuonResidualsFitter.h:150
MuonResiduals6DOFFitter::MuonResiduals6DOFFitter
MuonResiduals6DOFFitter(int residualsModel, int minHits, int useResiduals, bool weightAlignment=true)
Definition:
MuonResiduals6DOFFitter.h:57
MuonResidualsFitter
Definition:
MuonResidualsFitter.h:80
MuonResiduals6DOFFitter::kAlignX
Definition:
MuonResiduals6DOFFitter.h:22
MuonResiduals6DOFFitter::plot
double plot(std::string name, TFileDirectory *dir, Alignable *ali)
Definition:
MuonResiduals6DOFFitter.cc:341
MuonResiduals6DOFFitter::kResidX
Definition:
MuonResiduals6DOFFitter.h:42
mergeVDriftHistosByStation.name
string name
Definition:
mergeVDriftHistosByStation.py:77
MuonResidualsFitter::kPureGaussian
Definition:
MuonResidualsFitter.h:84
MuonResidualsFitter.h
MuonResiduals6DOFFitter::kResSlopeY
Definition:
MuonResiduals6DOFFitter.h:45
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
MuonResiduals6DOFFitter::kResSlopeXSigma
Definition:
MuonResiduals6DOFFitter.h:30
MuonResiduals6DOFFitter::kPz
Definition:
MuonResiduals6DOFFitter.h:51
MuonResiduals6DOFFitter::readNtuple
TTree * readNtuple(std::string fname, unsigned int wheel, unsigned int station, unsigned int sector, unsigned int preselected=1)
Definition:
MuonResiduals6DOFFitter.cc:796
relativeConstraints.station
tuple station
Definition:
relativeConstraints.py:66
MuonResiduals6DOFFitter::kResSlopeYSigma
Definition:
MuonResiduals6DOFFitter.h:31
MuonResiduals6DOFFitter::kAngleY
Definition:
MuonResiduals6DOFFitter.h:49
MuonResiduals6DOFFitter::~MuonResiduals6DOFFitter
virtual ~MuonResiduals6DOFFitter()
Definition:
MuonResiduals6DOFFitter.h:58
MuonResiduals6DOFFitter::kResidXSigma
Definition:
MuonResiduals6DOFFitter.h:28
MuonResiduals6DOFFitter::kPt
Definition:
MuonResiduals6DOFFitter.h:52
MuonResiduals6DOFFitter
Definition:
MuonResiduals6DOFFitter.h:18
MuonResiduals6DOFFitter::kAlignPhiX
Definition:
MuonResiduals6DOFFitter.h:25
MuonResiduals6DOFFitter::type
int type() const
Definition:
MuonResiduals6DOFFitter.h:60
MuonResidualsFitter::kGaussPowerTails
Definition:
MuonResidualsFitter.h:87
MuonResiduals6DOFFitter::kRedChi2
Definition:
MuonResiduals6DOFFitter.h:50
MuonResiduals6DOFFitter::kAlignZ
Definition:
MuonResiduals6DOFFitter.h:24
MuonResiduals6DOFFitter::kResSlopeX
Definition:
MuonResiduals6DOFFitter.h:44
MuonResiduals6DOFFitter::kPositionX
Definition:
MuonResiduals6DOFFitter.h:46
MuonResiduals6DOFFitter::inform
void inform(TMinuit *tMinuit)
Definition:
MuonResiduals6DOFFitter.cc:219
MuonResiduals6DOFFitter::kNData
Definition:
MuonResiduals6DOFFitter.h:54
align_cfg.useResiduals
list useResiduals
Definition:
align_cfg.py:36
MuonResiduals6DOFFitter::ndata
int ndata()
Definition:
MuonResiduals6DOFFitter.h:68
alignmentValidation.fname
string fname
main script
Definition:
alignmentValidation.py:957
MuonResiduals6DOFFitter::kAngleX
Definition:
MuonResiduals6DOFFitter.h:48
TFileDirectory
Definition:
TFileDirectory.h:24
MuonResidualsFitter::k6DOF
Definition:
MuonResidualsFitter.h:94
dir
dbl *** dir
Definition:
mlp_gen.cc:35
MuonResiduals6DOFFitter::kAlphaY
Definition:
MuonResiduals6DOFFitter.h:33
MuonResiduals6DOFFitter::fit
bool fit(Alignable *ali)
Definition:
MuonResiduals6DOFFitter.cc:253
MuonResiduals6DOFFitter::kResidYGamma
Definition:
MuonResiduals6DOFFitter.h:35
MuonResiduals6DOFFitter::kAlignY
Definition:
MuonResiduals6DOFFitter.h:23
MuonResiduals6DOFFitter::kResidYSigma
Definition:
MuonResiduals6DOFFitter.h:29
MuonResiduals6DOFFitter::kResidXGamma
Definition:
MuonResiduals6DOFFitter.h:34
Generated for CMSSW Reference Manual by
1.8.5