Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena-acts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dimitra Amperiadou
athena-acts
Commits
6127f348
Commit
6127f348
authored
9 years ago
by
Nikolai Krug
Committed by
Graeme Stewart
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Adding loop over L1 RoIs (TrigEgammaMatchingTool-00-00-09)
parent
1a76bc97
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Trigger/TrigAnalysis/TrigEgammaMatchingTool/Root/TrigEgammaMatchingTool.cxx
+18
-17
18 additions, 17 deletions
...is/TrigEgammaMatchingTool/Root/TrigEgammaMatchingTool.cxx
with
18 additions
and
17 deletions
Trigger/TrigAnalysis/TrigEgammaMatchingTool/Root/TrigEgammaMatchingTool.cxx
+
18
−
17
View file @
6127f348
...
...
@@ -57,7 +57,7 @@ namespace Trig {
if
(
eg
==
NULL
)
{
ATH_MSG_DEBUG
(
"NULL Offline object"
);
return
false
;
return
NULL
;
}
Trig
::
FeatureContainer
fc
=
m_trigDecTool
->
features
(
trigger
);
double
deltaR
=
0.
;
...
...
@@ -401,23 +401,24 @@ namespace Trig {
auto
fc
=
(
m_trigDecTool
->
features
(
trigger
,
TrigDefs
::
alsoDeactivateTEs
));
auto
initRois
=
fc
.
get
<
TrigRoiDescriptor
>
();
if
(
initRois
.
size
()
<
1
)
return
false
;
auto
itEmTau
=
m_trigDecTool
->
ancestor
<
xAOD
::
EmTauRoI
>
(
initRois
[
0
]);
const
xAOD
::
EmTauRoI
*
l1
=
itEmTau
.
cptr
(
);
if
(
l1
==
NULL
)
{
ATH_MSG_DEBUG
(
"EMTauRoI from TE
NULL
"
);
return
false
;
}
if
(
eg
->
type
()
==
xAOD
::
Type
::
Electron
){
const
xAOD
::
Electron
*
el
=
static_cast
<
const
xAOD
::
Electron
*>
(
eg
);
deltaR
=
dR
(
el
->
trackParticle
()
->
eta
(),
el
->
trackParticle
()
->
phi
(),
l1
->
eta
(),
l1
->
phi
());
}
else
if
(
eg
->
type
()
==
xAOD
::
Type
::
Photon
)
deltaR
=
dR
(
eg
->
caloCluster
()
->
eta
(),
eg
->
caloCluster
()
->
phi
(),
l1
->
eta
(),
l1
->
phi
());
for
(
auto
initRoi
:
initRois
)
{
auto
itEmTau
=
m_trigDecTool
->
ancestor
<
xAOD
::
EmTauRoI
>
(
initRoi
);
const
xAOD
::
EmTauRoI
*
l1
=
itEmTau
.
cptr
();
if
(
l1
==
NULL
)
{
ATH_MSG_DEBUG
(
"EMTauRoI from TE NULL"
)
;
return
false
;
}
if
(
eg
->
type
()
==
xAOD
::
Type
::
Electron
){
const
xAOD
::
Electron
*
el
=
static_cast
<
const
xAOD
::
Electron
*>
(
eg
);
deltaR
=
dR
(
el
->
trackParticle
()
->
eta
(),
el
->
trackParticle
()
->
phi
(),
l1
->
eta
(),
l1
->
phi
());
}
else
if
(
eg
->
type
()
==
xAOD
::
Type
::
Photon
)
deltaR
=
dR
(
eg
->
caloCluster
()
->
eta
(),
eg
->
caloCluster
()
->
phi
(),
l1
->
eta
(),
l1
->
phi
());
if
(
deltaR
<
m_dRL1
){
finalFC
=
(
itEmTau
.
te
());
return
true
;
if
(
deltaR
<
m_dRL1
){
finalFC
=
(
itEmTau
.
te
());
return
true
;
}
}
#endif
return
false
;
// otherwise, someone matched!*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment