ATLAS Offline Software
Global/GlobalSimulation/src/L1TopoAlgs/SimpleCone.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef GLOBALSIM_SIMPLECONE_H
6 #define GLOBALSIM_SIMPLECONE_H
7 
8 // based on SimpleCone of L1TopoSimulation
9 
10 #include <string>
11 #include <vector>
12 
13 class StatusCode;
14 
15 namespace GlobalSim {
16  class GenericTOBArray;
17  class Decision;
18 
19  class SimpleCone{
20  public:
21 
22  SimpleCone(const std::string & name,
23  unsigned int InputWidth,
24  unsigned int MaxRSqr,
25  unsigned int MinET,
26  const std::vector<unsigned int>& MinSumET);
27 
28  virtual ~SimpleCone() = default;
29 
31  run(GenericTOBArray const& input,
32  std::vector<GenericTOBArray>& output,
33  Decision&);
34 
35 
36  std::string toString() const;
37 
38  const std::vector<double>& ETPassByBit(std::size_t bit) const;
39  const std::vector<double>& ETFailByBit(std::size_t bit) const;
40 
41  private:
42 
43  std::string m_name{};
44 
45  unsigned int m_InputWidth {0};
46  unsigned int m_MaxRSqr{0};
47  unsigned int m_MinET {0};
48  std::vector<unsigned int> m_MinSumET{};
49 
50  // monitored data
51  std::vector<std::vector<double>> m_ETPassByBit {
52  m_MinSumET.size(),
53  std::vector<double>{}
54  };
55 
56  std::vector<std::vector<double>> m_ETFailByBit {
57  m_MinSumET.size(),
58  std::vector<double>{}
59  };
60 
61  };
62 
63 }
64 
65 #endif
GlobalSim::Decision
Definition: Global/GlobalSimulation/src/IO/Decision.h:24
GlobalSim::SimpleCone::m_MinET
unsigned int m_MinET
Definition: Global/GlobalSimulation/src/L1TopoAlgs/SimpleCone.h:47
GlobalSim::SimpleCone::m_MaxRSqr
unsigned int m_MaxRSqr
Definition: Global/GlobalSimulation/src/L1TopoAlgs/SimpleCone.h:46
GlobalSim::SimpleCone::m_name
std::string m_name
Definition: Global/GlobalSimulation/src/L1TopoAlgs/SimpleCone.h:43
GlobalSim
AlgTool to obtain a selection of eFex RoIs read in from the event store.
Definition: dump.h:8
GlobalSim::SimpleCone::m_MinSumET
std::vector< unsigned int > m_MinSumET
Definition: Global/GlobalSimulation/src/L1TopoAlgs/SimpleCone.h:48
GlobalSim::SimpleCone::m_InputWidth
unsigned int m_InputWidth
Definition: Global/GlobalSimulation/src/L1TopoAlgs/SimpleCone.h:45
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
PlotPulseshapeFromCool.input
input
Definition: PlotPulseshapeFromCool.py:106
GlobalSim::SimpleCone::run
StatusCode run(GenericTOBArray const &input, std::vector< GenericTOBArray > &output, Decision &)
Definition: Global/GlobalSimulation/src/L1TopoAlgs/SimpleCone.cxx:42
GlobalSim::GenericTOBArray
Definition: GenericTOBArray.h:32
GlobalSim::SimpleCone::m_ETPassByBit
std::vector< std::vector< double > > m_ETPassByBit
Definition: Global/GlobalSimulation/src/L1TopoAlgs/SimpleCone.h:51
merge.output
output
Definition: merge.py:17
GlobalSim::SimpleCone::m_ETFailByBit
std::vector< std::vector< double > > m_ETFailByBit
Definition: Global/GlobalSimulation/src/L1TopoAlgs/SimpleCone.h:56
GlobalSim::SimpleCone::toString
std::string toString() const
Definition: Global/GlobalSimulation/src/L1TopoAlgs/SimpleCone.cxx:117
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
TrigCompositeUtils::Decision
xAOD::TrigComposite Decision
Definition: Event/xAOD/xAODTrigger/xAODTrigger/TrigComposite.h:20
GlobalSim::SimpleCone::ETPassByBit
const std::vector< double > & ETPassByBit(std::size_t bit) const
Definition: Global/GlobalSimulation/src/L1TopoAlgs/SimpleCone.cxx:109
GlobalSim::SimpleCone::ETFailByBit
const std::vector< double > & ETFailByBit(std::size_t bit) const
Definition: Global/GlobalSimulation/src/L1TopoAlgs/SimpleCone.cxx:113
GlobalSim::SimpleCone::SimpleCone
SimpleCone(const std::string &name, unsigned int InputWidth, unsigned int MaxRSqr, unsigned int MinET, const std::vector< unsigned int > &MinSumET)
Definition: Global/GlobalSimulation/src/L1TopoAlgs/SimpleCone.cxx:29
GlobalSim::SimpleCone::~SimpleCone
virtual ~SimpleCone()=default
GlobalSim::SimpleCone
Definition: Global/GlobalSimulation/src/L1TopoAlgs/SimpleCone.h:19