ATLAS Offline Software
CommonSelector.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef GLOBALSIM_COMMONMULTSELECTOR_H
6 #define GLOBALSIM_COMMONMULTSELECTOR_H
7 
8 #include "ICommonSelector.h"
9 #include "../IO/ICommonTOB.h" // bitset widths
10 
11 #include <string>
12 #include <climits>
13 
14 namespace GlobalSim {
22 
24  public:
25 
27  CommonSelector() = default;
28 
30  CommonSelector(const std::string& et_low,
31  const std::string& et_high,
32  const std::string& eta_low,
33  const std::string& eta_high,
34  const std::string& phi_low,
35  const std::string& phi_high);
36 
37  virtual ~CommonSelector() = default;
38 
39  virtual bool select(const ICommonTOB&) const override;
40 
41  virtual std::string to_string() const override;
42 
43  private:
44  ulong m_et_low{0};
45  ulong m_et_high{ULONG_MAX};
46 
47  ulong m_eta_low{0};
48  ulong m_eta_high{ULONG_MAX};
49 
50 
51  ulong m_phi_low{0};
52  ulong m_phi_high{ULONG_MAX};
53  };
54 }
55 #endif
GlobalSim::CommonSelector::select
virtual bool select(const ICommonTOB &) const override
Definition: CommonSelector.cxx:42
GlobalSim::CommonSelector::CommonSelector
CommonSelector()=default
Passes all.
GlobalSim::CommonSelector::m_et_low
ulong m_et_low
Definition: CommonSelector.h:44
GlobalSim::IOBitwise::ICommonTOB
Class to hold common (eta/eta/phi) TOB bits.
Definition: ICommonTOB.h:27
ICommonSelector.h
GlobalSim
AlgTool that to test whether expected the TIP values generated by data supplied by eEmMultTestBench c...
Definition: CommonSelector.cxx:8
GlobalSim::CommonSelector::to_string
virtual std::string to_string() const override
Definition: CommonSelector.cxx:61
GlobalSim::ICommonSelector
Definition: ICommonSelector.h:24
GlobalSim::CommonSelector::m_et_high
ulong m_et_high
Definition: CommonSelector.h:45
GlobalSim::CommonSelector::~CommonSelector
virtual ~CommonSelector()=default
GlobalSim::CommonSelector::m_eta_low
ulong m_eta_low
Definition: CommonSelector.h:47
GlobalSim::CommonSelector::m_phi_low
ulong m_phi_low
Definition: CommonSelector.h:51
GlobalSim::CommonSelector::m_phi_high
ulong m_phi_high
Definition: CommonSelector.h:52
GlobalSim::CommonSelector
Definition: CommonSelector.h:23
GlobalSim::CommonSelector::m_eta_high
ulong m_eta_high
Definition: CommonSelector.h:48