ATLAS Offline Software
Loading...
Searching...
No Matches
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
16
18
19#include <iostream>
20
21namespace TCS {
22
23 class Count;
24
26 public:
27 // default constructor
28 CountingAlg(const std::string & name) :
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; }
42
43 // Set the threshold
44 void setThreshold(const TrigConf::L1Threshold & thr) { m_threshold = &thr; }
45
46 // Access the 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
64
65 };
66
67}
68
69#endif
ConfigurableAlg(const std::string &name, AlgType algType)
const std::string & name() const
unsigned int numberOutputBits() const
Definition CountingAlg.h:40
const TrigConf::L1Threshold * getThreshold()
Definition CountingAlg.h:47
TrigConf::L1Threshold const * m_threshold
Definition CountingAlg.h:63
friend class TopoSteering
Definition CountingAlg.h:57
virtual ~CountingAlg()
std::vector< std::string > m_histAccept
Definition CountingAlg.h:51
virtual TCS::StatusCode process(const InputTOBArray &input, Count &count)=0
CountingAlg(const std::string &name)
Definition CountingAlg.h:28
virtual StatusCode doReset()
virtual TCS::StatusCode processBitCorrect(const InputTOBArray &input, Count &count)=0
void setNumberOutputBits(unsigned int numberOutputBits)
Definition CountingAlg.h:41
unsigned int m_numberOutputBits
Definition CountingAlg.h:60
void setThreshold(const TrigConf::L1Threshold &thr)
Definition CountingAlg.h:44
Standard L1 threshold configuration.
int count(std::string s, const std::string &regx)
count how many occurances of a regx are in a string
Definition hcg.cxx:146