ATLAS Offline Software
ICommonTOB.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 
12 #ifndef GLOBALSIM_ICOMMONTOB_H
13 #define GLOBALSIM_ICOMMONTOB_H
14 
15 #include <bitset>
16 #include <ostream>
17 #include "AthenaKernel/CLASS_DEF.h"
18 
19 namespace GlobalSim::IOBitwise{
26  class ICommonTOB {
27 
28  public:
29 
31  virtual ~ICommonTOB(){}
32 
34  static const std::size_t s_et_width{13};
36  static const std::size_t s_eta_width{10};
38  static const std::size_t s_phi_width{9};
39 
41  virtual std::bitset<s_et_width> et_bits() const = 0;
43  virtual std::bitset<s_eta_width> eta_bits() const = 0;
45  virtual std::bitset<s_phi_width> phi_bits() const = 0;
46  };
47 
49  std::ostream& operator << (std::ostream&, const ICommonTOB&);
50 } //End of namespace
51 
53 
54 #endif //GLOBALSIM_ICOMMONTOB_H
GlobalSim::IOBitwise::ICommonTOB::s_eta_width
static const std::size_t s_eta_width
Size of the eta bitset.
Definition: ICommonTOB.h:36
GlobalSim::IOBitwise::ICommonTOB
Class to hold common (eta/eta/phi) TOB bits.
Definition: ICommonTOB.h:26
GlobalSim::IOBitwise::ICommonTOB::s_et_width
static const std::size_t s_et_width
Size of the eT bitset.
Definition: ICommonTOB.h:34
GlobalSim::IOBitwise
Definition: eEmMultAlgTool.h:17
GlobalSim::IOBitwise::ICommonTOB::eta_bits
virtual std::bitset< s_eta_width > eta_bits() const =0
Returns the eta bits of this TOB.
GlobalSim::IOBitwise::ICommonTOB::~ICommonTOB
virtual ~ICommonTOB()
Destructor.
Definition: ICommonTOB.h:31
GlobalSim::IOBitwise::ICommonTOB::et_bits
virtual std::bitset< s_et_width > et_bits() const =0
Returns the eT bits of this TOB.
GlobalSim::IOBitwise::operator<<
std::ostream & operator<<(std::ostream &os, const ICommonTOB &tob)
Output stream operator.
Definition: ICommonTOB.cxx:8
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:67
GlobalSim::IOBitwise::ICommonTOB::phi_bits
virtual std::bitset< s_phi_width > phi_bits() const =0
Returns the phi bits of this TOB.
CLASS_DEF.h
macros to associate a CLID to a type
GlobalSim::IOBitwise::ICommonTOB::s_phi_width
static const std::size_t s_phi_width
Size of the phi bitset.
Definition: ICommonTOB.h:38