ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
L1Topo
L1TopoAlgorithms
Root
ZeroBias.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
/*********************************
5
* ZeroBias.cxx
6
* Created by Marco Montella on 15/01/24.
7
*
8
* @brief ZeroBias topo algorithm, for now only an empty shell
9
*
10
*
11
*
12
**********************************/
13
14
#include <cmath>
15
16
#include "
L1TopoAlgorithms/ZeroBias.h
"
17
#include "
L1TopoCommon/Exception.h
"
18
#include "
L1TopoInterfaces/Count.h
"
19
20
#include "
L1TopoEvent/TOBArray.h
"
21
22
23
REGISTER_ALG_TCS
(ZeroBias)
24
25
using namespace
std
;
26
27
28
TCS::ZeroBias::ZeroBias
(
const
std::string &
name
) :
CountingAlg
(
name
)
29
{
30
31
defineParameter
(
"InputWidth"
, 0 );
32
defineParameter
(
"NumMultiplicityBits"
, 0 );
33
34
defineParameter
(
"DelayBC"
, 0);
35
defineParameter
(
"Topo1Opt0Mask1"
, 0);
36
defineParameter
(
"Topo1Opt0Mask2"
, 0);
37
defineParameter
(
"Topo1Opt0Mask3"
, 0);
38
defineParameter
(
"Topo1Opt1Mask1"
, 0);
39
defineParameter
(
"Topo1Opt1Mask2"
, 0);
40
defineParameter
(
"Topo1Opt1Mask3"
, 0);
41
42
43
setNumberOutputBits
(12);
44
45
}
46
47
TCS::ZeroBias::~ZeroBias
(){}
48
49
50
TCS::StatusCode
51
TCS::ZeroBias::initialize
() {
52
53
m_threshold
=
getThreshold
();
54
// book histograms
55
56
return
StatusCode::SUCCESS
;
57
58
}
59
60
TCS::StatusCode
TCS::ZeroBias::processBitCorrect
(
const
TCS::InputTOBArray
& input,
61
Count
&
count
){
62
return
process
(input,
count
);
63
}
64
65
66
TCS::StatusCode
TCS::ZeroBias::process
(
const
TCS::InputTOBArray
& input,
67
Count
&
count
)
68
{
69
const
TOBArray
& tobArray =
dynamic_cast<
const
TOBArray
&
>
(input);
70
71
count
.setSizeCount(tobArray.
size
());
72
73
return
TCS::StatusCode::SUCCESS
;
74
}
REGISTER_ALG_TCS
#define REGISTER_ALG_TCS(CLASS)
Definition
AlgFactory.h:62
Count.h
getThreshold
CP::CorrectionCode getThreshold(Int_t &threshold, const std::string &trigger)
Definition
MuonTriggerSFRootCoreTest.cxx:44
TOBArray.h
Exception.h
ZeroBias.h
TCS::ConfigurableAlg::name
const std::string & name() const
Definition
ConfigurableAlg.h:49
TCS::ConfigurableAlg::defineParameter
void defineParameter(std::string_view name, TCS::parType_t value)
Definition
ConfigurableAlg.cxx:203
TCS::Count
Definition
Count.h:20
TCS::CountingAlg::CountingAlg
CountingAlg(const std::string &name)
Definition
CountingAlg.h:28
TCS::CountingAlg::setNumberOutputBits
void setNumberOutputBits(unsigned int numberOutputBits)
Definition
CountingAlg.h:41
TCS::DataArrayImpl::size
size_t size() const
Definition
DataArrayImpl.h:30
TCS::InputTOBArray
Definition
InputTOBArray.h:15
TCS::StatusCode
Definition
Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/StatusCode.h:15
TCS::StatusCode::SUCCESS
@ SUCCESS
Definition
Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/StatusCode.h:17
TCS::TOBArray
Definition
TOBArray.h:24
TCS::ZeroBias::ZeroBias
ZeroBias(const std::string &name)
Definition
ZeroBias.cxx:28
TCS::ZeroBias::initialize
virtual StatusCode initialize() override
Definition
ZeroBias.cxx:51
TCS::ZeroBias::process
virtual StatusCode process(const TCS::InputTOBArray &input, Count &count) override final
Definition
ZeroBias.cxx:66
TCS::ZeroBias::m_threshold
TrigConf::L1Threshold const * m_threshold
Definition
ZeroBias.h:38
TCS::ZeroBias::processBitCorrect
virtual StatusCode processBitCorrect(const TCS::InputTOBArray &input, Count &count) override final
Definition
ZeroBias.cxx:60
TCS::ZeroBias::~ZeroBias
virtual ~ZeroBias()
Definition
ZeroBias.cxx:47
process
const std::string process
Definition
fbtTestBasics.cxx:76
count
int count(std::string s, const std::string ®x)
count how many occurances of a regx are in a string
Definition
hcg.cxx:148
std
STL namespace.
Generated on
for ATLAS Offline Software by
1.17.0