ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigMonitoring
TrigIDR4Monitoring
src
GenericTrackSelector.cxx
Go to the documentation of this file.
1
19
20
#include "
xAODEgamma/ElectronContainer.h
"
21
22
#include "
GenericTrackSelector.h
"
23
24
#include <cmath>
25
26
27
IDTPM2::GenericTrackSelector::GenericTrackSelector
(
const
std::string& name )
28
:
asg
::
AsgTool
( name ) { }
29
30
31
32
StatusCode
IDTPM2::GenericTrackSelector::initialize
() {
33
if
(
m_initialized
)
return
StatusCode::SUCCESS;
34
ATH_CHECK
(
asg::AsgTool::initialize
() );
35
m_initialized
=
true
;
36
return
StatusCode::SUCCESS;
37
}
38
39
40
41
bool
IDTPM2::GenericTrackSelector::selectTrack
(
const
TrackView
& t )
const
{
42
44
48
49
if
( t.pt() <
m_minPt
)
return
false
;
50
if
( t.pt() >
m_maxPt
)
return
false
;
51
55
56
if
( t.hasParent() ) {
57
if
( t.parent()->ET() <
m_minET
)
return
false
;
58
if
( std::fabs(t.parent()->ET()/t.pt()) <
m_minETovpt
)
return
false
;
59
}
60
else
{
61
if
( t.ET() <
m_minET
)
return
false
;
62
if
( std::fabs(t.ET()/t.pt()) <
m_minETovpt
)
return
false
;
63
}
64
65
if
( t.eta() >
m_maxEta
)
return
false
;
66
if
( t.eta() <
m_minEta
)
return
false
;
67
if
( std::fabs(t.eta()) <
m_minAbsEta
)
return
false
;
68
69
if
( t.d0() <
m_minD0
)
return
false
;
70
if
( t.d0() >
m_maxD0
)
return
false
;
71
if
( t.z0() <
m_minZ0
)
return
false
;
72
if
( t.z0() >
m_maxZ0
)
return
false
;
73
74
if
( std::fabs(t.d0()) <
m_minAbsD0
)
return
false
;
75
if
( std::fabs(t.d0()) >
m_maxAbsD0
)
return
false
;
76
if
( std::fabs(t.z0()) <
m_minAbsZ0
)
return
false
;
77
if
( std::fabs(t.z0()) >
m_maxAbsZ0
)
return
false
;
78
79
if
( t.phi() <
m_minPhi
)
return
false
;
80
if
( t.phi() >
m_maxPhi
)
return
false
;
81
83
// if ( std::fabs(t.phi()) < m_minAbsPhi ) return false;
84
// if ( std::fabs(t.phi()) > m_maxAbsPhi ) return false;
85
88
89
double
qoverpt = t.qOverP()/std::sin(t.theta());
90
91
if
( qoverpt <
m_minQoPT
)
return
false
;
92
if
( qoverpt >
m_maxQoPT
)
return
false
;
93
97
if
( std::fabs(qoverpt) <
m_minAbsQoPT
)
return
false
;
98
if
( std::fabs(qoverpt) >
m_maxAbsQoPT
)
return
false
;
99
100
//}
101
102
return
true
;
103
}
104
ATH_CHECK
#define ATH_CHECK
Evaluate an expression and check for errors.
Definition
AthCheckMacros.h:40
ElectronContainer.h
GenericTrackSelector.h
emacs: this is -*- c++ -*-
IDTPM2::GenericTrackSelector::m_maxZ0
Gaudi::Property< ConfiguredValue< float > > m_maxZ0
Definition
GenericTrackSelector.h:63
IDTPM2::GenericTrackSelector::m_minAbsEta
Gaudi::Property< ConfiguredValue< float > > m_minAbsEta
Definition
GenericTrackSelector.h:56
IDTPM2::GenericTrackSelector::m_maxQoPT
Gaudi::Property< ConfiguredValue< float > > m_maxQoPT
Definition
GenericTrackSelector.h:77
IDTPM2::GenericTrackSelector::m_minPhi
Gaudi::Property< ConfiguredValue< float > > m_minPhi
Definition
GenericTrackSelector.h:70
IDTPM2::GenericTrackSelector::m_maxAbsQoPT
Gaudi::Property< ConfiguredValue< float > > m_maxAbsQoPT
Definition
GenericTrackSelector.h:80
IDTPM2::GenericTrackSelector::m_minETovpt
Gaudi::Property< ConfiguredValue< float > > m_minETovpt
Definition
GenericTrackSelector.h:54
IDTPM2::GenericTrackSelector::m_minAbsZ0
Gaudi::Property< ConfiguredValue< float > > m_minAbsZ0
Definition
GenericTrackSelector.h:66
IDTPM2::GenericTrackSelector::m_maxAbsD0
Gaudi::Property< ConfiguredValue< float > > m_maxAbsD0
Definition
GenericTrackSelector.h:65
IDTPM2::GenericTrackSelector::m_minET
Gaudi::Property< ConfiguredValue< float > > m_minET
Definition
GenericTrackSelector.h:53
IDTPM2::GenericTrackSelector::m_minPt
Gaudi::Property< ConfiguredValue< float > > m_minPt
Definition
GenericTrackSelector.h:50
IDTPM2::GenericTrackSelector::m_maxEta
Gaudi::Property< ConfiguredValue< float > > m_maxEta
Definition
GenericTrackSelector.h:58
IDTPM2::GenericTrackSelector::selectTrack
virtual bool selectTrack(const TrackView &t) const
Definition
GenericTrackSelector.cxx:41
IDTPM2::GenericTrackSelector::m_minAbsD0
Gaudi::Property< ConfiguredValue< float > > m_minAbsD0
Definition
GenericTrackSelector.h:64
IDTPM2::GenericTrackSelector::m_maxD0
Gaudi::Property< ConfiguredValue< float > > m_maxD0
Definition
GenericTrackSelector.h:61
IDTPM2::GenericTrackSelector::m_minZ0
Gaudi::Property< ConfiguredValue< float > > m_minZ0
Definition
GenericTrackSelector.h:62
IDTPM2::GenericTrackSelector::m_minAbsQoPT
Gaudi::Property< ConfiguredValue< float > > m_minAbsQoPT
Definition
GenericTrackSelector.h:79
IDTPM2::GenericTrackSelector::m_maxPt
Gaudi::Property< ConfiguredValue< float > > m_maxPt
Definition
GenericTrackSelector.h:51
IDTPM2::GenericTrackSelector::m_maxPhi
Gaudi::Property< ConfiguredValue< float > > m_maxPhi
Definition
GenericTrackSelector.h:71
IDTPM2::GenericTrackSelector::GenericTrackSelector
GenericTrackSelector(const std::string &name)
Definition
GenericTrackSelector.cxx:27
IDTPM2::GenericTrackSelector::m_minEta
Gaudi::Property< ConfiguredValue< float > > m_minEta
Definition
GenericTrackSelector.h:57
IDTPM2::GenericTrackSelector::m_minD0
Gaudi::Property< ConfiguredValue< float > > m_minD0
Definition
GenericTrackSelector.h:60
IDTPM2::GenericTrackSelector::initialize
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition
GenericTrackSelector.cxx:32
IDTPM2::GenericTrackSelector::m_minQoPT
Gaudi::Property< ConfiguredValue< float > > m_minQoPT
Abs phi ???? why would anyone ever want abs(phi) ??
Definition
GenericTrackSelector.h:76
IDTPM2::GenericTrackSelector::m_initialized
bool m_initialized
Definition
GenericTrackSelector.h:84
IDTPM2::GenericTrackSelector::m_maxAbsZ0
Gaudi::Property< ConfiguredValue< float > > m_maxAbsZ0
Definition
GenericTrackSelector.h:67
TrackView
forward declaration required for function prototype
Definition
TrackView.h:43
asg::AsgTool::AsgTool
AsgTool(const std::string &name)
Constructor specifying the tool instance's name.
Definition
AsgTool.cxx:58
asg::AsgTool::initialize
virtual StatusCode initialize()
Dummy implementation of the initialisation function.
Definition
AsgTool.h:133
asg
Definition
DataHandleTestTool.h:28
Generated on
for ATLAS Offline Software by
1.17.0