ATLAS Offline Software
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 
13 #include "L1TopoEvent/TOBArray.h"
16 
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) :
30  {};
31 
32  virtual ~CountingAlg();
33 
35  Count & count ) = 0;
36 
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
InputTOBArray.h
CompositeTOB.h
TCS::CountingAlg::numberOutputBits
unsigned int numberOutputBits() const
Definition: CountingAlg.h:40
ConfigurableAlg.h
L1Threshold.h
XMLtoHeader.count
count
Definition: XMLtoHeader.py:85
TCS::CountingAlg::setNumberOutputBits
void setNumberOutputBits(unsigned int numberOutputBits)
Definition: CountingAlg.h:41
TCS::CountingAlg::processBitCorrect
virtual TCS::StatusCode processBitCorrect(const InputTOBArray &input, Count &count)=0
Definition: CountingAlg.cxx:18
TCS::ConfigurableAlg::name
const std::string & name() const
Definition: ConfigurableAlg.h:48
TCS::CountingAlg::doReset
virtual StatusCode doReset()
Definition: CountingAlg.cxx:11
StatusCode.h
TCS::InputTOBArray
Definition: InputTOBArray.h:15
PlotPulseshapeFromCool.input
input
Definition: PlotPulseshapeFromCool.py:106
TOBArray.h
TCS::CountingAlg::CountingAlg
CountingAlg(const std::string &name)
Definition: CountingAlg.h:28
TCS::CountingAlg::setThreshold
void setThreshold(const TrigConf::L1Threshold &thr)
Definition: CountingAlg.h:44
TCS::TopoSteering
Definition: TopoSteering.h:47
TCS::ConfigurableAlg
Definition: ConfigurableAlg.h:30
TCS::CountingAlg::m_histAccept
std::vector< std::string > m_histAccept
Definition: CountingAlg.h:51
TCS::Count
Definition: L1Topo/L1TopoInterfaces/L1TopoInterfaces/Count.h:20
TCS::ConfigurableAlg::COUNT
@ COUNT
Definition: ConfigurableAlg.h:32
TCS::CountingAlg::getThreshold
const TrigConf::L1Threshold * getThreshold()
Definition: CountingAlg.h:47
TCS
Definition: Global/GlobalSimulation/src/IO/Decision.h:18
TCS::CountingAlg::~CountingAlg
virtual ~CountingAlg()
Definition: CountingAlg.cxx:15
TCS::CountingAlg::process
virtual TCS::StatusCode process(const InputTOBArray &input, Count &count)=0
TCS::CountingAlg::m_threshold
TrigConf::L1Threshold const * m_threshold
Definition: CountingAlg.h:63
TCS::CountingAlg::m_numberOutputBits
unsigned int m_numberOutputBits
Definition: CountingAlg.h:60
TCS::CountingAlg
Definition: CountingAlg.h:25
TrigConf::L1Threshold
Standard L1 threshold configuration.
Definition: L1ThresholdBase.h:125
TCS::StatusCode
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/StatusCode.h:15