-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #62 from cms-l1-dpg/EF_MuonShowers
Draft of muon showers implementation
- Loading branch information
Showing
3 changed files
with
91 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{# Template for signal type conditions like centrality or muon showers #} | ||
{# MuonShowerType from L1TNtuples: kInvalid, kOneNominal,kOneTight, kTwoLoose #} | ||
{# See in: L1Trigger/L1TNtuples/interface/L1AnalysisL1UpgradeDataFormat.h #} | ||
|
||
{% block SignalsTemplate scoped %} | ||
{% import 'macros.jinja2' as macros %} | ||
{% set object = cond.getObjects()[0] %} | ||
{% set prefix = object | getPrefix %} | ||
{% set analysis_type = object | getAnalysisType %} | ||
|
||
bool | ||
{{ cond.getName() }} | ||
(L1Analysis::L1AnalysisL1UpgradeDataFormat* data) | ||
{ | ||
bool pass = false; | ||
{# Is signals in same bx? #} | ||
if (data->{{ prefix }}Bx.at(0) == {{ object.getBxOffset() }}) | ||
{ | ||
{# Is signal set? #} | ||
if (data->{{ prefix }}Type.at(0) == L1Analysis::{{ analysis_type }}) | ||
{ | ||
pass = true; | ||
} | ||
} | ||
return pass; | ||
} | ||
{% endblock SignalsTemplate %} |