TrackingTools
TrackRefitter
interface
RefitDirection.h
Go to the documentation of this file.
1
#ifndef TrackingTools_TrackRefitter_RefitDirection_H
2
#define TrackingTools_TrackRefitter_RefitDirection_H
3
10
#include "
DataFormats/TrajectorySeed/interface/PropagationDirection.h
"
11
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
12
13
class
RefitDirection
{
14
public
:
15
enum
GeometricalDirection
{
insideOut
,
outsideIn
,
undetermined
};
16
18
RefitDirection
() {
19
thePropagationDirection
=
anyDirection
;
20
theGeoDirection
=
undetermined
;
21
}
22
23
explicit
RefitDirection
(
std::string
const
&
type
) {
24
thePropagationDirection
=
anyDirection
;
25
theGeoDirection
=
undetermined
;
26
27
if
(
type
==
"alongMomentum"
)
28
thePropagationDirection
=
alongMomentum
;
29
else
if
(
type
==
"oppositeToMomentum"
)
30
thePropagationDirection
=
oppositeToMomentum
;
31
else
if
(
type
==
"insideOut"
)
32
theGeoDirection
=
insideOut
;
33
else
if
(
type
==
"outsideIn"
)
34
theGeoDirection
=
outsideIn
;
35
else
36
throw
cms::Exception
(
"RefitDirection"
)
37
<<
"Wrong refit direction chosen in TrackTransformer ParameterSet"
38
<<
"\n"
39
<<
"Possible choices are:"
40
<<
"\n"
41
<<
"RefitDirection = [alongMomentum, oppositeToMomentum, insideOut, outsideIn]"
;
42
}
43
44
// Operations
45
inline
GeometricalDirection
geometricalDirection
()
const
{
46
if
(
theGeoDirection
==
undetermined
)
47
LogTrace
(
"Reco|TrackingTools|TrackTransformer"
) <<
"Try to use undetermined geometrical direction"
;
48
return
theGeoDirection
;
49
}
50
inline
PropagationDirection
propagationDirection
()
const
{
51
if
(
thePropagationDirection
==
anyDirection
)
52
LogTrace
(
"Reco|TrackingTools|TrackTransformer"
) <<
"Try to use anyDirection as propagation direction"
;
53
return
thePropagationDirection
;
54
}
55
56
protected
:
57
private
:
58
GeometricalDirection
theGeoDirection
;
59
PropagationDirection
thePropagationDirection
;
60
};
61
#endif
anyDirection
Definition:
PropagationDirection.h:4
MessageLogger.h
RefitDirection::RefitDirection
RefitDirection()
Constructor.
Definition:
RefitDirection.h:18
RefitDirection::GeometricalDirection
GeometricalDirection
Definition:
RefitDirection.h:15
oppositeToMomentum
Definition:
PropagationDirection.h:4
RefitDirection::thePropagationDirection
PropagationDirection thePropagationDirection
Definition:
RefitDirection.h:59
RefitDirection::RefitDirection
RefitDirection(std::string const &type)
Definition:
RefitDirection.h:23
RefitDirection::theGeoDirection
GeometricalDirection theGeoDirection
Definition:
RefitDirection.h:58
RefitDirection::undetermined
Definition:
RefitDirection.h:15
RefitDirection::propagationDirection
PropagationDirection propagationDirection() const
Definition:
RefitDirection.h:50
type
type
Definition:
SiPixelVCal_PayloadInspector.cc:39
RefitDirection
Definition:
RefitDirection.h:13
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
PropagationDirection.h
Exception
Definition:
hltDiff.cc:245
PropagationDirection
PropagationDirection
Definition:
PropagationDirection.h:4
RefitDirection::insideOut
Definition:
RefitDirection.h:15
RefitDirection::geometricalDirection
GeometricalDirection geometricalDirection() const
Definition:
RefitDirection.h:45
LogTrace
#define LogTrace(id)
Definition:
MessageLogger.h:234
RefitDirection::outsideIn
Definition:
RefitDirection.h:15
alongMomentum
Definition:
PropagationDirection.h:4
Generated for CMSSW Reference Manual by
1.8.16