Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Tulay Cuhadar Donszelmann
athena
Commits
af574f42
Commit
af574f42
authored
8 years ago
by
Soumya Mohapatra
Committed by
Graeme Stewart
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
new tag with bug fix in HFMuonHypo (TrigHIHypo-00-00-85)
parent
feb05e6e
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Trigger/TrigHypothesis/TrigHIHypo/python/VnHypos.py
+5
-5
5 additions, 5 deletions
Trigger/TrigHypothesis/TrigHIHypo/python/VnHypos.py
Trigger/TrigHypothesis/TrigHIHypo/src/HFMuonHypo.cxx
+24
-0
24 additions, 0 deletions
Trigger/TrigHypothesis/TrigHIHypo/src/HFMuonHypo.cxx
with
29 additions
and
5 deletions
Trigger/TrigHypothesis/TrigHIHypo/python/VnHypos.py
+
5
−
5
View file @
af574f42
...
...
@@ -90,7 +90,7 @@ def generateVnThresholds(a,b,c, etbins):
return
[
a
-
b
*
et
+
c
*
pow
(
et
,
2
)
for
et
in
etbins
]
def
generateAssymVnThresholds
(
a
,
b
,
c
,
d
,
etbins
):
return
[
a
+
b
*
et
+
c
*
pow
(
et
,
2
)
+
d
for
et
in
etbins
]
return
[
a
+
b
*
et
+
c
*
pow
(
et
,
3
)
+
d
for
et
in
etbins
]
# thresholds mappint
# %v2 %v3
#15 2.5 2.5
...
...
@@ -136,13 +136,13 @@ class V2HypoAssym(VnHypo):
self
.
CentralityBins
=
_EtCuts_v2_assym
if
side
==
"
A
"
:
self
.
MinEta
=
3.2
self
.
QxShifts
=
[
0
]
*
len
(
_EtCuts_v2_assym
)
self
.
QyShifts
=
[
0
]
*
len
(
_EtCuts_v2_assym
)
self
.
QxShifts
=
[
0
.0008
]
*
len
(
_EtCuts_v2_assym
)
self
.
QyShifts
=
[
-
0.004
]
*
len
(
_EtCuts_v2_assym
)
elif
side
==
"
C
"
:
self
.
MaxEta
=-
3.2
self
.
QxShifts
=
[
0
]
*
len
(
_EtCuts_v2_assym
)
self
.
QyShifts
=
[
0
]
*
len
(
_EtCuts_v2_assym
)
self
.
QxShifts
=
[
-
0.0015
]
*
len
(
_EtCuts_v2_assym
)
self
.
QyShifts
=
[
0
.0039
]
*
len
(
_EtCuts_v2_assym
)
else
:
raise
'
The V2 hypothesis algorithm is insufficiently configured, no FCal side specified
'
...
...
This diff is collapsed.
Click to expand it.
Trigger/TrigHypothesis/TrigHIHypo/src/HFMuonHypo.cxx
+
24
−
0
View file @
af574f42
...
...
@@ -14,6 +14,7 @@
HFMuonHypo
::
HFMuonHypo
(
const
std
::
string
&
name
,
ISvcLocator
*
pSvcLocator
)
:
HLT
::
HypoAlgo
(
name
,
pSvcLocator
){
ATH_MSG_INFO
(
"IN HFMuonHypo Constructor"
);
declareMonitoredVariable
(
"eloss_all"
,
m_eloss_all
,
-
1.
);
declareMonitoredVariable
(
"eloss_passing"
,
m_eloss_passing
,
-
1.
);
...
...
@@ -22,6 +23,7 @@ HFMuonHypo::HFMuonHypo(const std::string& name, ISvcLocator* pSvcLocator)
}
HLT
::
ErrorCode
HFMuonHypo
::
hltInitialize
()
{
ATH_MSG_INFO
(
"IN HFMuonHypo hltInitialize()"
);
return
HLT
::
OK
;
}
...
...
@@ -35,6 +37,9 @@ HLT::ErrorCode HFMuonHypo::hltFinalize( ) { return HLT::OK; }
HLT
::
ErrorCode
HFMuonHypo
::
hltExecute
(
const
HLT
::
TriggerElement
*
outputTE
,
bool
&
pass
)
{
pass
=
false
;
//static int event=0;
//std::cout<<"TEST "<<event++<<std::endl;
//Get Muon Container
const
xAOD
::
MuonContainer
*
m_muons
=
nullptr
;
HLT
::
ErrorCode
statusMuons
;
...
...
@@ -86,14 +91,33 @@ HLT::ErrorCode HFMuonHypo::hltExecute(const HLT::TriggerElement* outputTE, bool&
if
(
!
(
Muon
->
quality
()
==
xAOD
::
Muon
::
Medium
||
Muon
->
quality
()
==
xAOD
::
Muon
::
Tight
))
continue
;
//Determine Eloss, now cutting on it as well
/*
const xAOD::TrackParticle*msTrk= Muon->trackParticle( xAOD::Muon::MuonSpectrometerTrackParticle);//MS Only Track
const xAOD::TrackParticle*idTrk= Muon->trackParticle( xAOD::Muon::InnerDetectorTrackParticle);//ID Track
if(!msTrk || !idTrk){
if(!msTrk) ATH_MSG_WARNING("msTrk Not Found for muon, will abort chain");
if(!idTrk) ATH_MSG_WARNING("idTrk Not Found for muon, will abort chain");
//return HLT::ErrorCode(HLT::Action::ABORT_CHAIN, HLT::Reason::MISSING_FEATURE);
}
ATH_MSG_INFO("Found both track segements");
float eloss_parameterized;//paramaterized eloss
if(!(Muon->parameter(eloss_parameterized,xAOD::Muon::ParamEnergyLoss))){
ATH_MSG_DEBUG("The parameter xAOD::Muon::ParamEnergyLoss is inaccessible");
return HLT::ErrorCode(HLT::Action::ABORT_CHAIN, HLT::Reason::MISSING_FEATURE);
}
double eloss=(idTrk->p4().P() - msTrk->p4().P() - eloss_parameterized)/idTrk->p4().P();
// */
const
xAOD
::
TrackParticle
*
idTrk
=
Muon
->
trackParticle
(
xAOD
::
Muon
::
InnerDetectorTrackParticle
);
//ID Track
const
xAOD
::
TrackParticle
*
meTrk
=
Muon
->
trackParticle
(
xAOD
::
Muon
::
ExtrapolatedMuonSpectrometerTrackParticle
);
//ME Track
if
(
!
meTrk
||
!
idTrk
){
if
(
!
meTrk
)
ATH_MSG_WARNING
(
"meTrk Not Found for muon, will abort chain"
);
if
(
!
idTrk
)
ATH_MSG_WARNING
(
"idTrk Not Found for muon, will abort chain"
);
return
HLT
::
ErrorCode
(
HLT
::
Action
::
ABORT_CHAIN
,
HLT
::
Reason
::
MISSING_FEATURE
);
}
ATH_MSG_INFO
(
"Found both muon track segements"
);
double
eloss
=
(
idTrk
->
p4
().
P
()
-
meTrk
->
p4
().
P
())
/
idTrk
->
p4
().
P
();
if
(
eloss
>
m_eloss_cut
)
continue
;
...
...
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