ATLAS Offline Software
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 
17 #include "L1TopoCommon/Exception.h"
18 #include "L1TopoInterfaces/Count.h"
19 
20 #include "L1TopoEvent/TOBArray.h"
21 
22 
24 
25 using namespace std;
26 
27 
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 
44 
45 }
46 
48 
49 
52 
53  m_threshold = getThreshold();
54  // book histograms
55 
56  return StatusCode::SUCCESS;
57 
58 }
59 
61  Count & count){
62  return process(input, count);
63 }
64 
65 
67  Count & count )
68 {
69  const TOBArray & tobArray = dynamic_cast<const TOBArray&>(input);
70 
71  count.setSizeCount(tobArray.size());
72 
74 }
TCS::ZeroBias::ZeroBias
ZeroBias(const std::string &name)
Definition: ZeroBias.cxx:28
TCS::StatusCode::SUCCESS
@ SUCCESS
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/StatusCode.h:17
TCS::ZeroBias::~ZeroBias
virtual ~ZeroBias()
Definition: ZeroBias.cxx:47
TCS::ZeroBias::processBitCorrect
virtual StatusCode processBitCorrect(const TCS::InputTOBArray &input, Count &count) override final
Definition: ZeroBias.cxx:60
SUSY_SimplifiedModel_PostInclude.process
string process
Definition: SUSY_SimplifiedModel_PostInclude.py:42
XMLtoHeader.count
count
Definition: XMLtoHeader.py:85
TCS::CountingAlg::setNumberOutputBits
void setNumberOutputBits(unsigned int numberOutputBits)
Definition: CountingAlg.h:41
python.PileUpEventType.ZeroBias
int ZeroBias
Definition: PileUpEventType.py:8
TCS::DataArrayImpl::size
size_t size() const
Definition: DataArrayImpl.h:30
Count.h
TCS::ConfigurableAlg::defineParameter
void defineParameter(const std::string &name, TCS::parType_t value)
Definition: ConfigurableAlg.cxx:201
TCS::InputTOBArray
Definition: InputTOBArray.h:15
PlotPulseshapeFromCool.input
input
Definition: PlotPulseshapeFromCool.py:106
TCS::ZeroBias::process
virtual StatusCode process(const TCS::InputTOBArray &input, Count &count) override final
Definition: ZeroBias.cxx:66
TOBArray.h
TCS::TOBArray
Definition: TOBArray.h:24
REGISTER_ALG_TCS
#define REGISTER_ALG_TCS(CLASS)
Definition: AlgFactory.h:62
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
ZeroBias.h
TCS::Count
Definition: L1Topo/L1TopoInterfaces/L1TopoInterfaces/Count.h:20
getThreshold
CP::CorrectionCode getThreshold(Int_t &threshold, const std::string &trigger)
Definition: MuonTriggerSFRootCoreTest.cxx:48
Exception.h
TCS::CountingAlg
Definition: CountingAlg.h:25
TCS::StatusCode
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/StatusCode.h:15
TCS::ZeroBias::initialize
virtual StatusCode initialize() override
Definition: ZeroBias.cxx:51