ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
L1Topo
L1TopoInterfaces
L1TopoInterfaces
CountingAlg.h
Go to the documentation of this file.
1
/*multi
2
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
*/
4
// CountingAlg.h
5
// TopoCore
6
// Created by Carlos Moreno on 15/01/21.
7
8
#ifndef TCS_CountingAlg
9
#define TCS_CountingAlg
10
11
#include "
L1TopoInterfaces/ConfigurableAlg.h
"
12
#include "
L1TopoEvent/InputTOBArray.h
"
13
#include "
L1TopoEvent/TOBArray.h
"
14
#include "
L1TopoEvent/CompositeTOB.h
"
15
#include "
L1TopoCommon/StatusCode.h
"
16
17
#include "
TrigConfData/L1Threshold.h
"
18
19
#include <iostream>
20
21
namespace
TCS
{
22
23
class
Count
;
24
25
class
CountingAlg
:
public
ConfigurableAlg
{
26
public
:
27
// default constructor
28
CountingAlg
(
const
std::string &
name
) :
29
ConfigurableAlg
(
name
,
COUNT
)
30
{};
31
32
virtual
~CountingAlg
();
33
34
virtual
TCS::StatusCode
process
(
const
InputTOBArray
& input,
35
Count
&
count
) = 0;
36
37
virtual
TCS::StatusCode
processBitCorrect
(
const
InputTOBArray
& input,
38
Count
&
count
) = 0;
39
40
unsigned
int
numberOutputBits
()
const
{
return
m_numberOutputBits
; }
41
void
setNumberOutputBits
(
unsigned
int
numberOutputBits
) {
m_numberOutputBits
=
numberOutputBits
; }
42
43
// Set the threshold
44
void
setThreshold
(
const
TrigConf::L1Threshold
& thr) {
m_threshold
= &thr; }
45
46
// Access the threshold
47
const
TrigConf::L1Threshold
*
getThreshold
() {
return
m_threshold
; }
48
49
protected
:
50
51
std::vector<std::string>
m_histAccept
;
// vector of strings for histogram names
52
53
private
:
54
55
virtual
StatusCode
doReset
();
56
57
friend
class
TopoSteering
;
58
59
// generic parameter
60
unsigned
int
m_numberOutputBits
{1};
61
62
// L1Threshold
63
TrigConf::L1Threshold
const
*
m_threshold
{
nullptr
};
64
65
};
66
67
}
68
69
#endif
CompositeTOB.h
ConfigurableAlg.h
InputTOBArray.h
L1Threshold.h
TOBArray.h
StatusCode.h
TCS::ConfigurableAlg::ConfigurableAlg
ConfigurableAlg(const std::string &name, AlgType algType)
Definition
ConfigurableAlg.cxx:107
TCS::ConfigurableAlg::name
const std::string & name() const
Definition
ConfigurableAlg.h:49
TCS::ConfigurableAlg::COUNT
@ COUNT
Definition
ConfigurableAlg.h:33
TCS::Count
Definition
Count.h:20
TCS::CountingAlg::numberOutputBits
unsigned int numberOutputBits() const
Definition
CountingAlg.h:40
TCS::CountingAlg::getThreshold
const TrigConf::L1Threshold * getThreshold()
Definition
CountingAlg.h:47
TCS::CountingAlg::m_threshold
TrigConf::L1Threshold const * m_threshold
Definition
CountingAlg.h:63
TCS::CountingAlg::TopoSteering
friend class TopoSteering
Definition
CountingAlg.h:57
TCS::CountingAlg::~CountingAlg
virtual ~CountingAlg()
Definition
CountingAlg.cxx:15
TCS::CountingAlg::m_histAccept
std::vector< std::string > m_histAccept
Definition
CountingAlg.h:51
TCS::CountingAlg::process
virtual TCS::StatusCode process(const InputTOBArray &input, Count &count)=0
TCS::CountingAlg::CountingAlg
CountingAlg(const std::string &name)
Definition
CountingAlg.h:28
TCS::CountingAlg::doReset
virtual StatusCode doReset()
Definition
CountingAlg.cxx:11
TCS::CountingAlg::processBitCorrect
virtual TCS::StatusCode processBitCorrect(const InputTOBArray &input, Count &count)=0
Definition
CountingAlg.cxx:18
TCS::CountingAlg::setNumberOutputBits
void setNumberOutputBits(unsigned int numberOutputBits)
Definition
CountingAlg.h:41
TCS::CountingAlg::m_numberOutputBits
unsigned int m_numberOutputBits
Definition
CountingAlg.h:60
TCS::CountingAlg::setThreshold
void setThreshold(const TrigConf::L1Threshold &thr)
Definition
CountingAlg.h:44
TCS::InputTOBArray
Definition
InputTOBArray.h:15
TCS::StatusCode
Definition
Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/StatusCode.h:15
TrigConf::L1Threshold
Standard L1 threshold configuration.
Definition
L1ThresholdBase.h:125
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
TCS
Definition
AnomalyDetectionBDT.h:18
Generated on
for ATLAS Offline Software by
1.17.0