Main Page
Namespaces
Classes
Package Documentation
Alignment
HIPAlignmentAlgorithm
src
HIPAlignableSpecificParameters.cc
Go to the documentation of this file.
1
#include "
Alignment/HIPAlignmentAlgorithm/interface/HIPAlignableSpecificParameters.h
"
2
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
3
4
HIPAlignableSpecificParameters::HIPAlignableSpecificParameters
(
const
Alignable
* aliObj_,
bool
defaultFlag_) :
5
aliObj(aliObj_),
6
defaultFlag(defaultFlag_),
7
minRelParError(0),
8
maxRelParError(-1),
9
minNHits(0),
10
maxHitPull(-1),
11
applyPixelProbCut(
false
),
12
usePixelProbXYOrProbQ(
false
),
13
minPixelProbXY(0),
14
maxPixelProbXY(1),
15
minPixelProbQ(0),
16
maxPixelProbQ(1)
17
{}
18
19
HIPAlignableSpecificParameters::HIPAlignableSpecificParameters
(
const
HIPAlignableSpecificParameters
&
other
) :
20
aliObj
(other.
aliObj
),
21
defaultFlag
(other.
defaultFlag
),
22
minRelParError
(other.
minRelParError
),
23
maxRelParError
(other.
maxRelParError
),
24
minNHits
(other.
minNHits
),
25
maxHitPull
(other.
maxHitPull
),
26
applyPixelProbCut
(other.
applyPixelProbCut
),
27
usePixelProbXYOrProbQ
(other.
usePixelProbXYOrProbQ
),
28
minPixelProbXY
(other.
minPixelProbXY
),
29
maxPixelProbXY
(other.
maxPixelProbXY
),
30
minPixelProbQ
(other.
minPixelProbQ
),
31
maxPixelProbQ
(other.
maxPixelProbQ
)
32
{}
33
34
align::ID
HIPAlignableSpecificParameters::id
()
const
{
if
(
aliObj
!=
nullptr
)
return
aliObj
->
id
();
else
return
0; }
35
align::StructureType
HIPAlignableSpecificParameters::objId
()
const
{
if
(
aliObj
!=
nullptr
)
return
aliObj
->
alignableObjectId
();
else
return
align::invalid
; }
36
37
bool
HIPAlignableSpecificParameters::matchAlignable
(
const
Alignable
* ali)
const
{
38
if
(
aliObj
==(
Alignable
*)
nullptr
)
return
false
;
39
bool
result
= (
aliObj
==ali);
40
if
(!result){
// Check deep components of the alignable for this specification
41
for
(
auto
const
& alideep :
aliObj
->
deepComponents
()){
42
if
(alideep==ali){ result =
true
;
break
; }
43
}
44
//if (result) edm::LogWarning("Alignment") // This is correct. Ideally one should specify the same alignables aligned in the specifications
45
// << "[HIPAlignableSpecificParameters::matchAlignable] Alignment object with id " << ali->id() << " / " << ali->alignableObjectId()
46
// << " was found as a component of " << this->id() << " / " << this->objId();
47
}
48
return
result
;
49
}
50
51
bool
HIPAlignableSpecificParameters::isDefault
()
const
{
return
defaultFlag
; }
52
HIPAlignableSpecificParameters::HIPAlignableSpecificParameters
HIPAlignableSpecificParameters(const Alignable *aliObj_, bool defaultFlag_=false)
Definition:
HIPAlignableSpecificParameters.cc:4
Alignable::id
align::ID id() const
Return the ID of Alignable, i.e. DetId of 'first' component GeomDet(Unit).
Definition:
Alignable.h:189
HIPAlignableSpecificParameters::aliObj
const Alignable * aliObj
Definition:
HIPAlignableSpecificParameters.h:10
MessageLogger.h
HIPAlignableSpecificParameters::id
align::ID id() const
Definition:
HIPAlignableSpecificParameters.cc:34
Alignable
Definition:
Alignable.h:27
mps_fire.result
result
Definition:
mps_fire.py:226
HIPAlignableSpecificParameters::usePixelProbXYOrProbQ
bool usePixelProbXYOrProbQ
Definition:
HIPAlignableSpecificParameters.h:20
HIPAlignableSpecificParameters::minPixelProbXY
double minPixelProbXY
Definition:
HIPAlignableSpecificParameters.h:21
funct::false
false
Definition:
Factorize.h:35
align::ID
uint32_t ID
Definition:
Definitions.h:26
HIPAlignableSpecificParameters::matchAlignable
bool matchAlignable(const Alignable *ali) const
Definition:
HIPAlignableSpecificParameters.cc:37
HIPAlignableSpecificParameters
Definition:
HIPAlignableSpecificParameters.h:7
HIPAlignableSpecificParameters::defaultFlag
const bool defaultFlag
Definition:
HIPAlignableSpecificParameters.h:11
Alignable::alignableObjectId
virtual StructureType alignableObjectId() const =0
Return the alignable type identifier.
trackingPlots.other
other
Definition:
trackingPlots.py:1399
HIPAlignableSpecificParameters::minRelParError
double minRelParError
Definition:
HIPAlignableSpecificParameters.h:15
HIPAlignableSpecificParameters::minPixelProbQ
double minPixelProbQ
Definition:
HIPAlignableSpecificParameters.h:23
HIPAlignableSpecificParameters::applyPixelProbCut
bool applyPixelProbCut
Definition:
HIPAlignableSpecificParameters.h:19
align::invalid
Definition:
StructureType.h:20
HIPAlignableSpecificParameters::isDefault
bool isDefault() const
Definition:
HIPAlignableSpecificParameters.cc:51
HIPAlignableSpecificParameters::maxPixelProbXY
double maxPixelProbXY
Definition:
HIPAlignableSpecificParameters.h:22
HIPAlignableSpecificParameters::minNHits
int minNHits
Definition:
HIPAlignableSpecificParameters.h:17
Alignable::deepComponents
const Alignables & deepComponents() const
Definition:
Alignable.h:75
HIPAlignableSpecificParameters::objId
align::StructureType objId() const
Definition:
HIPAlignableSpecificParameters.cc:35
HIPAlignableSpecificParameters::maxPixelProbQ
double maxPixelProbQ
Definition:
HIPAlignableSpecificParameters.h:24
HIPAlignableSpecificParameters::maxHitPull
double maxHitPull
Definition:
HIPAlignableSpecificParameters.h:18
align::StructureType
StructureType
Definition:
StructureType.h:17
HIPAlignableSpecificParameters.h
HIPAlignableSpecificParameters::maxRelParError
double maxRelParError
Definition:
HIPAlignableSpecificParameters.h:16
Generated for CMSSW Reference Manual by
1.8.11