Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
atlas
athena
Commits
a0b6a277
Commit
a0b6a277
authored
Sep 08, 2021
by
Paula Martinez Suarez
Browse files
Update algo name
parent
c7810bd8
Changes
6
Hide whitespace changes
Inline
Side-by-side
Trigger/TrigT1/L1Topo/L1TopoAlgorithms/L1TopoAlgorithms/InvariantMassThreeTOBsIncl.h
→
Trigger/TrigT1/L1Topo/L1TopoAlgorithms/L1TopoAlgorithms/InvariantMassThreeTOBsIncl
1
.h
View file @
a0b6a277
/*
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/
// InvariantMassThreeTOBsIncl.h
// InvariantMassThreeTOBsIncl
1
.h
// TopoCore
// Created by Carlos Moreno based on InvariantMassInclusive1 by Joerg Stelzer on 11/16/12.
#ifndef
__TopoCore__InvariantMassThreeTOBsIncl__
#define
__TopoCore__InvariantMassThreeTOBsIncl__
#ifndef
L1TOPOALGORITHMS_INVARIANTMASSTHREETOBSINCL1_H
#define
L1TOPOALGORITHMS_INVARIANTMASSTHREETOBSINCL1_H
#include <iostream>
#include "L1TopoInterfaces/DecisionAlg.h"
namespace
TCS
{
class
InvariantMassThreeTOBsIncl
:
public
DecisionAlg
{
class
InvariantMassThreeTOBsIncl
1
:
public
DecisionAlg
{
public:
InvariantMassThreeTOBsIncl
(
const
std
::
string
&
name
);
virtual
~
InvariantMassThreeTOBsIncl
();
InvariantMassThreeTOBsIncl
1
(
const
std
::
string
&
name
);
virtual
~
InvariantMassThreeTOBsIncl
1
();
virtual
StatusCode
initialize
()
override
final
;
...
...
Trigger/TrigT1/L1Topo/L1TopoAlgorithms/L1TopoAlgorithms/InvariantMassThreeTOBsInclCharge.h
→
Trigger/TrigT1/L1Topo/L1TopoAlgorithms/L1TopoAlgorithms/InvariantMassThreeTOBsIncl
1
Charge.h
View file @
a0b6a277
/*
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
*/
// InvariantMassThreeTOBsInclCharge.h
// InvariantMassThreeTOBsIncl
1
Charge.h
// TopoCore
// Created by Paula Martinez based on InvariantMassInclusive1 by Joerg Stelzer on 11/16/12.
#ifndef L1TOPOALGORITHMS_INVARIANTMASSTHREETOBSINCLCHARGE_H
#define L1TOPOALGORITHMS_INVARIANTMASSTHREETOBSINCLCHARGE_H
#ifndef L1TOPOALGORITHMS_INVARIANTMASSTHREETOBSINCL
1
CHARGE_H
#define L1TOPOALGORITHMS_INVARIANTMASSTHREETOBSINCL
1
CHARGE_H
#include <iostream>
#include "L1TopoInterfaces/DecisionAlg.h"
namespace
TCS
{
class
InvariantMassThreeTOBsInclCharge
:
public
DecisionAlg
{
class
InvariantMassThreeTOBsIncl
1
Charge
:
public
DecisionAlg
{
public:
InvariantMassThreeTOBsInclCharge
(
const
std
::
string
&
name
);
virtual
~
InvariantMassThreeTOBsInclCharge
();
InvariantMassThreeTOBsIncl
1
Charge
(
const
std
::
string
&
name
);
virtual
~
InvariantMassThreeTOBsIncl
1
Charge
();
virtual
StatusCode
initialize
()
override
final
;
...
...
Trigger/TrigT1/L1Topo/L1TopoAlgorithms/Root/InvariantMassThreeTOBsIncl.cxx
→
Trigger/TrigT1/L1Topo/L1TopoAlgorithms/Root/InvariantMassThreeTOBsIncl
1
.cxx
View file @
a0b6a277
...
...
@@ -2,7 +2,7 @@
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
*/
/*********************************
* InvariantMassThreeTOBsIncl.cxx
* InvariantMassThreeTOBsIncl
1
.cxx
* Created by Carlos Moreno based on InvariantMassInclusive1 by V Sorin
*
* For questions contact atlas-trig-l1topo-algcom@cern.ch.
...
...
@@ -24,14 +24,14 @@
#include <sstream>
#include <vector>
#include "L1TopoAlgorithms/InvariantMassThreeTOBsIncl.h"
#include "L1TopoAlgorithms/InvariantMassThreeTOBsIncl
1
.h"
#include "L1TopoCommon/Exception.h"
#include "L1TopoInterfaces/Decision.h"
REGISTER_ALG_TCS
(
InvariantMassThreeTOBsIncl
)
REGISTER_ALG_TCS
(
InvariantMassThreeTOBsIncl
1
)
TCS
::
InvariantMassThreeTOBsIncl
::
InvariantMassThreeTOBsIncl
(
const
std
::
string
&
name
)
:
DecisionAlg
(
name
)
TCS
::
InvariantMassThreeTOBsIncl
1
::
InvariantMassThreeTOBsIncl
1
(
const
std
::
string
&
name
)
:
DecisionAlg
(
name
)
{
defineParameter
(
"InputWidth"
,
3
);
defineParameter
(
"MaxTob"
,
0
);
...
...
@@ -59,11 +59,11 @@ TCS::InvariantMassThreeTOBsIncl::InvariantMassThreeTOBsIncl(const std::string &
setNumberOutputBits
(
6
);
}
TCS
::
InvariantMassThreeTOBsIncl
::~
InvariantMassThreeTOBsIncl
(){}
TCS
::
InvariantMassThreeTOBsIncl
1
::~
InvariantMassThreeTOBsIncl
1
(){}
TCS
::
StatusCode
TCS
::
InvariantMassThreeTOBsIncl
::
initialize
()
{
TCS
::
InvariantMassThreeTOBsIncl
1
::
initialize
()
{
if
(
parameter
(
"MaxTob"
).
value
()
>
0
)
{
p_NumberLeading1
=
parameter
(
"MaxTob"
).
value
();
}
else
{
...
...
@@ -90,8 +90,8 @@ TCS::InvariantMassThreeTOBsIncl::initialize() {
// book histograms
for
(
unsigned
int
i
=
0
;
i
<
numberOutputBits
();
++
i
)
{
std
::
string
hname_accept
=
"hInvariantMassThreeTOBsIncl_accept_bit"
+
std
::
to_string
((
int
)
i
);
std
::
string
hname_reject
=
"hInvariantMassThreeTOBsIncl_reject_bit"
+
std
::
to_string
((
int
)
i
);
std
::
string
hname_accept
=
"hInvariantMassThreeTOBsIncl
1
_accept_bit"
+
std
::
to_string
((
int
)
i
);
std
::
string
hname_reject
=
"hInvariantMassThreeTOBsIncl
1
_reject_bit"
+
std
::
to_string
((
int
)
i
);
// mass
bookHist
(
m_histAccept
,
hname_accept
,
"INVM"
,
100
,
sqrt
(
p_InvMassMin
[
i
]),
sqrt
(
p_InvMassMax
[
i
]));
bookHist
(
m_histReject
,
hname_reject
,
"INVM"
,
100
,
sqrt
(
p_InvMassMin
[
i
]),
sqrt
(
p_InvMassMax
[
i
]));
...
...
@@ -105,7 +105,7 @@ TCS::InvariantMassThreeTOBsIncl::initialize() {
TCS
::
StatusCode
TCS
::
InvariantMassThreeTOBsIncl
::
processBitCorrect
(
const
std
::
vector
<
TCS
::
TOBArray
const
*>
&
input
,
TCS
::
InvariantMassThreeTOBsIncl
1
::
processBitCorrect
(
const
std
::
vector
<
TCS
::
TOBArray
const
*>
&
input
,
const
std
::
vector
<
TCS
::
TOBArray
*>
&
output
,
Decision
&
decision
)
{
...
...
@@ -167,7 +167,7 @@ TCS::InvariantMassThreeTOBsIncl::processBitCorrect( const std::vector<TCS::TOBAr
}
}
else
{
TCS_EXCEPTION
(
"InvariantMassThreeTOBsIncl alg must have 1 input list, but got "
<<
input
.
size
());
TCS_EXCEPTION
(
"InvariantMassThreeTOBsIncl
1
alg must have 1 input list, but got "
<<
input
.
size
());
}
...
...
@@ -176,7 +176,7 @@ TCS::InvariantMassThreeTOBsIncl::processBitCorrect( const std::vector<TCS::TOBAr
}
TCS
::
StatusCode
TCS
::
InvariantMassThreeTOBsIncl
::
process
(
const
std
::
vector
<
TCS
::
TOBArray
const
*>
&
input
,
TCS
::
InvariantMassThreeTOBsIncl
1
::
process
(
const
std
::
vector
<
TCS
::
TOBArray
const
*>
&
input
,
const
std
::
vector
<
TCS
::
TOBArray
*>
&
output
,
Decision
&
decision
)
{
...
...
@@ -239,7 +239,7 @@ TCS::InvariantMassThreeTOBsIncl::process( const std::vector<TCS::TOBArray const
}
}
else
{
TCS_EXCEPTION
(
"InvariantMassThreeTOBsIncl alg must have either 1 input list, but got "
<<
input
.
size
());
TCS_EXCEPTION
(
"InvariantMassThreeTOBsIncl
1
alg must have either 1 input list, but got "
<<
input
.
size
());
}
...
...
Trigger/TrigT1/L1Topo/L1TopoAlgorithms/Root/InvariantMassThreeTOBsInclCharge.cxx
→
Trigger/TrigT1/L1Topo/L1TopoAlgorithms/Root/InvariantMassThreeTOBsIncl
1
Charge.cxx
View file @
a0b6a277
...
...
@@ -2,7 +2,7 @@
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
*/
/*********************************
* InvariantMassThreeTOBsInclCharge.cxx
* InvariantMassThreeTOBsIncl
1
Charge.cxx
* Created by Paula Martinez based on InvariantMassInclusive1 by V Sorin
*
* For questions contact atlas-trig-l1topo-algcom@cern.ch.
...
...
@@ -22,15 +22,15 @@
#include <sstream>
#include <vector>
#include "L1TopoAlgorithms/InvariantMassThreeTOBsInclCharge.h"
#include "L1TopoAlgorithms/InvariantMassThreeTOBsIncl
1
Charge.h"
#include "L1TopoCommon/Exception.h"
#include "L1TopoInterfaces/Decision.h"
REGISTER_ALG_TCS
(
InvariantMassThreeTOBsInclCharge
)
REGISTER_ALG_TCS
(
InvariantMassThreeTOBsIncl
1
Charge
)
TCS
::
InvariantMassThreeTOBsInclCharge
::
InvariantMassThreeTOBsInclCharge
(
const
std
::
string
&
name
)
:
DecisionAlg
(
name
)
TCS
::
InvariantMassThreeTOBsIncl
1
Charge
::
InvariantMassThreeTOBsIncl
1
Charge
(
const
std
::
string
&
name
)
:
DecisionAlg
(
name
)
{
defineParameter
(
"InputWidth"
,
3
);
defineParameter
(
"MaxTob"
,
0
);
...
...
@@ -58,11 +58,11 @@ TCS::InvariantMassThreeTOBsInclCharge::InvariantMassThreeTOBsInclCharge(const st
setNumberOutputBits
(
6
);
}
TCS
::
InvariantMassThreeTOBsInclCharge
::~
InvariantMassThreeTOBsInclCharge
(){}
TCS
::
InvariantMassThreeTOBsIncl
1
Charge
::~
InvariantMassThreeTOBsIncl
1
Charge
(){}
TCS
::
StatusCode
TCS
::
InvariantMassThreeTOBsInclCharge
::
initialize
()
{
TCS
::
InvariantMassThreeTOBsIncl
1
Charge
::
initialize
()
{
if
(
parameter
(
"MaxTob"
).
value
()
>
0
)
{
p_NumberLeading1
=
parameter
(
"MaxTob"
).
value
();
}
else
{
...
...
@@ -89,14 +89,14 @@ TCS::InvariantMassThreeTOBsInclCharge::initialize() {
// book histograms
for
(
unsigned
int
i
=
0
;
i
<
numberOutputBits
();
++
i
)
{
std
::
string
hname_accept
=
"hInvariantMassThreeTOBsInclCharge_accept_bit"
+
std
::
to_string
(
static_cast
<
int
>
(
i
));
std
::
string
hname_reject
=
"hInvariantMassThreeTOBsInclCharge_reject_bit"
+
std
::
to_string
(
static_cast
<
int
>
(
i
));
std
::
string
hname_acceptEta1Eta2
=
"hInvariantMassThreeTOBsInclCharge_acceptEta1Eta2_bit"
+
std
::
to_string
(
static_cast
<
int
>
(
i
));
std
::
string
hname_rejectEta1Eta2
=
"hInvariantMassThreeTOBsInclCharge_rejectEta1Eta2_bit"
+
std
::
to_string
(
static_cast
<
int
>
(
i
));
std
::
string
hname_acceptEta2Eta3
=
"hInvariantMassThreeTOBsInclCharge_acceptEta2Eta3_bit"
+
std
::
to_string
(
static_cast
<
int
>
(
i
));
std
::
string
hname_rejectEta2Eta3
=
"hInvariantMassThreeTOBsInclCharge_rejectEta2Eta3_bit"
+
std
::
to_string
(
static_cast
<
int
>
(
i
));
std
::
string
hname_acceptEta3Eta1
=
"hInvariantMassThreeTOBsInclCharge_acceptEta3Eta1_bit"
+
std
::
to_string
(
static_cast
<
int
>
(
i
));
std
::
string
hname_rejectEta3Eta1
=
"hInvariantMassThreeTOBsInclCharge_rejectEta3Eta1_bit"
+
std
::
to_string
(
static_cast
<
int
>
(
i
));
std
::
string
hname_accept
=
"hInvariantMassThreeTOBsIncl
1
Charge_accept_bit"
+
std
::
to_string
(
static_cast
<
int
>
(
i
));
std
::
string
hname_reject
=
"hInvariantMassThreeTOBsIncl
1
Charge_reject_bit"
+
std
::
to_string
(
static_cast
<
int
>
(
i
));
std
::
string
hname_acceptEta1Eta2
=
"hInvariantMassThreeTOBsIncl
1
Charge_acceptEta1Eta2_bit"
+
std
::
to_string
(
static_cast
<
int
>
(
i
));
std
::
string
hname_rejectEta1Eta2
=
"hInvariantMassThreeTOBsIncl
1
Charge_rejectEta1Eta2_bit"
+
std
::
to_string
(
static_cast
<
int
>
(
i
));
std
::
string
hname_acceptEta2Eta3
=
"hInvariantMassThreeTOBsIncl
1
Charge_acceptEta2Eta3_bit"
+
std
::
to_string
(
static_cast
<
int
>
(
i
));
std
::
string
hname_rejectEta2Eta3
=
"hInvariantMassThreeTOBsIncl
1
Charge_rejectEta2Eta3_bit"
+
std
::
to_string
(
static_cast
<
int
>
(
i
));
std
::
string
hname_acceptEta3Eta1
=
"hInvariantMassThreeTOBsIncl
1
Charge_acceptEta3Eta1_bit"
+
std
::
to_string
(
static_cast
<
int
>
(
i
));
std
::
string
hname_rejectEta3Eta1
=
"hInvariantMassThreeTOBsIncl
1
Charge_rejectEta3Eta1_bit"
+
std
::
to_string
(
static_cast
<
int
>
(
i
));
// mass
bookHist
(
m_histAccept
,
hname_accept
,
"INVM"
,
100
,
std
::
sqrt
(
p_InvMassMin
[
i
]),
std
::
sqrt
(
p_InvMassMax
[
i
]));
bookHist
(
m_histReject
,
hname_reject
,
"INVM"
,
100
,
std
::
sqrt
(
p_InvMassMin
[
i
]),
std
::
sqrt
(
p_InvMassMax
[
i
]));
...
...
@@ -117,7 +117,7 @@ TCS::InvariantMassThreeTOBsInclCharge::initialize() {
TCS
::
StatusCode
TCS
::
InvariantMassThreeTOBsInclCharge
::
processBitCorrect
(
const
std
::
vector
<
TCS
::
TOBArray
const
*>
&
input
,
TCS
::
InvariantMassThreeTOBsIncl
1
Charge
::
processBitCorrect
(
const
std
::
vector
<
TCS
::
TOBArray
const
*>
&
input
,
const
std
::
vector
<
TCS
::
TOBArray
*>
&
output
,
Decision
&
decision
)
{
...
...
@@ -191,7 +191,7 @@ TCS::InvariantMassThreeTOBsInclCharge::processBitCorrect( const std::vector<TCS:
}
}
else
{
TCS_EXCEPTION
(
"InvariantMassThreeTOBsInclCharge alg must have 1 input list, but got "
<<
input
.
size
());
TCS_EXCEPTION
(
"InvariantMassThreeTOBsIncl
1
Charge alg must have 1 input list, but got "
<<
input
.
size
());
}
...
...
@@ -200,7 +200,7 @@ TCS::InvariantMassThreeTOBsInclCharge::processBitCorrect( const std::vector<TCS:
}
TCS
::
StatusCode
TCS
::
InvariantMassThreeTOBsInclCharge
::
process
(
const
std
::
vector
<
TCS
::
TOBArray
const
*>
&
input
,
TCS
::
InvariantMassThreeTOBsIncl
1
Charge
::
process
(
const
std
::
vector
<
TCS
::
TOBArray
const
*>
&
input
,
const
std
::
vector
<
TCS
::
TOBArray
*>
&
output
,
Decision
&
decision
)
{
...
...
@@ -274,7 +274,7 @@ TCS::InvariantMassThreeTOBsInclCharge::process( const std::vector<TCS::TOBArray
}
}
else
{
TCS_EXCEPTION
(
"InvariantMassThreeTOBsInclCharge alg must have either 1 input list, but got "
<<
input
.
size
());
TCS_EXCEPTION
(
"InvariantMassThreeTOBsIncl
1
Charge alg must have either 1 input list, but got "
<<
input
.
size
());
}
...
...
Trigger/TriggerCommon/TriggerMenuMT/python/L1/Config/TopoAlgoDef.py
View file @
a0b6a277
...
...
@@ -1133,7 +1133,7 @@ class TopoAlgoDef:
toponame
=
"0INVM10-3MU4ab"
log
.
debug
(
"Define %s"
,
toponame
)
inputList
=
'MUab'
alg
=
AlgConf
.
InvariantMassThreeTOBsIncl
(
name
=
toponame
,
inputs
=
inputList
,
outputs
=
toponame
)
alg
=
AlgConf
.
InvariantMassThreeTOBsIncl
1
(
name
=
toponame
,
inputs
=
inputList
,
outputs
=
toponame
)
alg
.
addgeneric
(
'InputWidth'
,
HW
.
OutputWidthSelectMU
)
alg
.
addgeneric
(
'MaxTob'
,
HW
.
OutputWidthSelectMU
)
alg
.
addgeneric
(
'NumResultBits'
,
1
)
...
...
Trigger/TriggerCommon/TriggerMenuMT/python/LVL1MenuConfig/L1TopoMenu/TopoAlgoDef.py
View file @
a0b6a277
...
...
@@ -1033,7 +1033,7 @@ class TopoAlgoDef(object):
toponame
=
"0INVM10-3MU4ab"
# noqa: F821
log
.
info
(
"Define %s"
%
toponame
)
inputList
=
'MUab'
alg
=
AlgConf
.
InvariantMassThreeTOBsIncl
(
name
=
toponame
,
inputs
=
inputList
,
outputs
=
toponame
,
algoId
=
currentAlgoId
);
currentAlgoId
+=
1
alg
=
AlgConf
.
InvariantMassThreeTOBsIncl
1
(
name
=
toponame
,
inputs
=
inputList
,
outputs
=
toponame
,
algoId
=
currentAlgoId
);
currentAlgoId
+=
1
alg
.
addgeneric
(
'InputWidth'
,
HW
.
OutputWidthSelectMU
)
alg
.
addgeneric
(
'MaxTob'
,
HW
.
OutputWidthSelectMU
)
alg
.
addgeneric
(
'NumResultBits'
,
1
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment