Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
Alignment
MuonAlignmentAlgorithms
interface
MuonResiduals5DOFFitter.h
Go to the documentation of this file.
1
#ifndef Alignment_MuonAlignmentAlgorithms_MuonResiduals5DOFFitter_H
2
#define Alignment_MuonAlignmentAlgorithms_MuonResiduals5DOFFitter_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
MuonResiduals5DOFFitter
:
public
MuonResidualsFitter
19
{
20
public
:
21
enum
{
22
kAlignX
= 0,
23
kAlignZ
,
24
kAlignPhiX
,
25
kAlignPhiY
,
26
kAlignPhiZ
,
27
kResidSigma
,
28
kResSlopeSigma
,
29
kAlpha
,
30
kResidGamma
,
31
kResSlopeGamma
,
32
kNPar
33
};
34
35
enum
{
36
kResid
= 0,
37
kResSlope
,
38
kPositionX
,
39
kPositionY
,
40
kAngleX
,
41
kAngleY
,
42
kRedChi2
,
43
kPz
,
44
kPt
,
45
kCharge
,
46
kNData
47
};
48
49
MuonResiduals5DOFFitter
(
int
residualsModel
,
int
minHits
,
int
useResiduals
,
bool
weightAlignment
=
true
):
MuonResidualsFitter
(residualsModel, minHits, useResiduals,
weightAlignment
) {}
50
virtual
~MuonResiduals5DOFFitter
(){}
51
52
int
type
()
const
{
return
MuonResidualsFitter::k5DOF
; }
53
54
int
npar
() {
55
if
(
residualsModel
() ==
kPureGaussian
||
residualsModel
() ==
kPureGaussian2D
||
residualsModel
() ==
kGaussPowerTails
)
return
kNPar
- 2;
56
else
if
(
residualsModel
() ==
kPowerLawTails
)
return
kNPar
;
57
else
if
(
residualsModel
() ==
kROOTVoigt
)
return
kNPar
;
58
else
assert(
false
);
59
}
60
int
ndata
() {
return
kNData
; }
61
62
double
sumofweights
();
63
bool
fit
(
Alignable
*ali);
64
double
plot
(
std::string
name
,
TFileDirectory
*
dir
,
Alignable
*ali);
65
66
void
correctBField
();
67
68
TTree *
readNtuple
(
std::string
fname
,
unsigned
int
wheel,
unsigned
int
station
,
unsigned
int
sector,
unsigned
int
preselected = 1);
69
70
protected
:
71
void
inform
(TMinuit *tMinuit);
72
};
73
74
#endif // Alignment_MuonAlignmentAlgorithms_MuonResiduals5DOFFitter_H
align_cfg.weightAlignment
tuple weightAlignment
Definition:
align_cfg.py:30
MuonResiduals5DOFFitter::npar
int npar()
Definition:
MuonResiduals5DOFFitter.h:54
MuonResiduals5DOFFitter::ndata
int ndata()
Definition:
MuonResiduals5DOFFitter.h:60
MuonResidualsFitter::kPureGaussian
Definition:
MuonResidualsFitter.h:84
Alignable
Definition:
Alignable.h:29
MuonResidualsFitter::kGaussPowerTails
Definition:
MuonResidualsFitter.h:87
MuonResiduals5DOFFitter::kPz
Definition:
MuonResiduals5DOFFitter.h:43
MuonResiduals5DOFFitter::kAlpha
Definition:
MuonResiduals5DOFFitter.h:29
MuonResiduals5DOFFitter::kAngleY
Definition:
MuonResiduals5DOFFitter.h:41
OccupancyClient_cfi.minHits
int minHits
Definition:
OccupancyClient_cfi.py:5
MuonResidualsFitter::residualsModel
int residualsModel() const
Definition:
MuonResidualsFitter.h:150
MuonResiduals5DOFFitter::MuonResiduals5DOFFitter
MuonResiduals5DOFFitter(int residualsModel, int minHits, int useResiduals, bool weightAlignment=true)
Definition:
MuonResiduals5DOFFitter.h:49
MuonResiduals5DOFFitter::kAlignPhiX
Definition:
MuonResiduals5DOFFitter.h:24
MuonResiduals5DOFFitter::readNtuple
TTree * readNtuple(std::string fname, unsigned int wheel, unsigned int station, unsigned int sector, unsigned int preselected=1)
Definition:
MuonResiduals5DOFFitter.cc:502
MuonResidualsFitter
Definition:
MuonResidualsFitter.h:80
MuonResidualsFitter::kROOTVoigt
Definition:
MuonResidualsFitter.h:86
MuonResiduals5DOFFitter::sumofweights
double sumofweights()
Definition:
MuonResiduals5DOFFitter.cc:147
MuonResiduals5DOFFitter::kAlignPhiY
Definition:
MuonResiduals5DOFFitter.h:25
MuonResiduals5DOFFitter::correctBField
void correctBField()
Definition:
MuonResiduals5DOFFitter.cc:135
mergeVDriftHistosByStation.name
string name
Definition:
mergeVDriftHistosByStation.py:77
MuonResidualsFitter.h
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
MuonResiduals5DOFFitter::kAlignPhiZ
Definition:
MuonResiduals5DOFFitter.h:26
MuonResiduals5DOFFitter::fit
bool fit(Alignable *ali)
Definition:
MuonResiduals5DOFFitter.cc:169
MuonResiduals5DOFFitter::kResSlopeGamma
Definition:
MuonResiduals5DOFFitter.h:31
MuonResiduals5DOFFitter::kPositionY
Definition:
MuonResiduals5DOFFitter.h:39
MuonResiduals5DOFFitter::kResidSigma
Definition:
MuonResiduals5DOFFitter.h:27
MuonResiduals5DOFFitter::kResSlopeSigma
Definition:
MuonResiduals5DOFFitter.h:28
relativeConstraints.station
tuple station
Definition:
relativeConstraints.py:66
MuonResiduals5DOFFitter::kNPar
Definition:
MuonResiduals5DOFFitter.h:32
MuonResiduals5DOFFitter::kAlignZ
Definition:
MuonResiduals5DOFFitter.h:23
MuonResiduals5DOFFitter::kResidGamma
Definition:
MuonResiduals5DOFFitter.h:30
MuonResiduals5DOFFitter::kRedChi2
Definition:
MuonResiduals5DOFFitter.h:42
MuonResiduals5DOFFitter
Definition:
MuonResiduals5DOFFitter.h:18
MuonResiduals5DOFFitter::kAlignX
Definition:
MuonResiduals5DOFFitter.h:22
MuonResiduals5DOFFitter::kPositionX
Definition:
MuonResiduals5DOFFitter.h:38
MuonResiduals5DOFFitter::kAngleX
Definition:
MuonResiduals5DOFFitter.h:40
MuonResiduals5DOFFitter::kResid
Definition:
MuonResiduals5DOFFitter.h:36
align_cfg.useResiduals
list useResiduals
Definition:
align_cfg.py:36
MuonResiduals5DOFFitter::plot
double plot(std::string name, TFileDirectory *dir, Alignable *ali)
Definition:
MuonResiduals5DOFFitter.cc:226
MuonResiduals5DOFFitter::kResSlope
Definition:
MuonResiduals5DOFFitter.h:37
MuonResiduals5DOFFitter::type
int type() const
Definition:
MuonResiduals5DOFFitter.h:52
alignmentValidation.fname
string fname
main script
Definition:
alignmentValidation.py:957
TFileDirectory
Definition:
TFileDirectory.h:24
MuonResiduals5DOFFitter::kNData
Definition:
MuonResiduals5DOFFitter.h:46
MuonResiduals5DOFFitter::kPt
Definition:
MuonResiduals5DOFFitter.h:44
MuonResidualsFitter::kPowerLawTails
Definition:
MuonResidualsFitter.h:85
dir
dbl *** dir
Definition:
mlp_gen.cc:35
MuonResiduals5DOFFitter::inform
void inform(TMinuit *tMinuit)
Definition:
MuonResiduals5DOFFitter.cc:141
MuonResiduals5DOFFitter::~MuonResiduals5DOFFitter
virtual ~MuonResiduals5DOFFitter()
Definition:
MuonResiduals5DOFFitter.h:50
MuonResidualsFitter::kPureGaussian2D
Definition:
MuonResidualsFitter.h:88
MuonResidualsFitter::k5DOF
Definition:
MuonResidualsFitter.h:93
MuonResiduals5DOFFitter::kCharge
Definition:
MuonResiduals5DOFFitter.h:45
Generated for CMSSW Reference Manual by
1.8.5