CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
l1t::MicroGMTRelativeIsolationCheckLUT Class Reference

#include <MicroGMTRelativeIsolationCheckLUT.h>

Inheritance diagram for l1t::MicroGMTRelativeIsolationCheckLUT:
l1t::MicroGMTLUT l1t::LUT

Public Member Functions

int hashInput (int energySum, int pt) const
 
int lookup (int energySum, int pt) const
 
 MicroGMTRelativeIsolationCheckLUT ()
 
 MicroGMTRelativeIsolationCheckLUT (const std::string &fname)
 
 MicroGMTRelativeIsolationCheckLUT (l1t::LUT *lut)
 
void unHashInput (int input, int &energySum, int &pt) const
 
 ~MicroGMTRelativeIsolationCheckLUT () override
 
- Public Member Functions inherited from l1t::MicroGMTLUT
int checkedInput (unsigned in, unsigned maxWidth) const
 
void initialize ()
 
int load (const std::string &inFileName)
 
virtual int lookupPacked (int input) const
 
 MicroGMTLUT ()
 
 MicroGMTLUT (l1t::LUT *lut)
 
void save (std::ofstream &output)
 
virtual ~MicroGMTLUT ()
 
- Public Member Functions inherited from l1t::LUT
int data (unsigned int address) const
 
bool empty () const
 
 LUT ()
 
 LUT (std::istream &stream)
 
unsigned int maxSize () const
 
unsigned int nrBitsAddress () const
 
unsigned int nrBitsData () const
 
int read (std::istream &stream)
 
void write (std::ostream &stream) const
 
 ~LUT ()
 

Private Attributes

int m_energySumInWidth
 
int m_energySumMask
 
int m_ptInWidth
 
int m_ptMask
 

Additional Inherited Members

- Public Types inherited from l1t::LUT
enum  ReadCodes {
  SUCCESS = 0, NO_ENTRIES = 1, DUP_ENTRIES = 2, MISS_ENTRIES = 3,
  MAX_ADDRESS_OUTOFRANGE = 4, NO_HEADER = 5
}
 
- Protected Attributes inherited from l1t::MicroGMTLUT
bool m_initialized
 
std::vector< MicroGMTConfiguration::input_tm_inputs
 
unsigned m_outWidth
 
unsigned m_totalInWidth
 

Detailed Description

Definition at line 8 of file MicroGMTRelativeIsolationCheckLUT.h.

Constructor & Destructor Documentation

◆ MicroGMTRelativeIsolationCheckLUT() [1/3]

l1t::MicroGMTRelativeIsolationCheckLUT::MicroGMTRelativeIsolationCheckLUT ( )
inline

Definition at line 10 of file MicroGMTRelativeIsolationCheckLUT.h.

10 {};

◆ MicroGMTRelativeIsolationCheckLUT() [2/3]

l1t::MicroGMTRelativeIsolationCheckLUT::MicroGMTRelativeIsolationCheckLUT ( const std::string &  fname)
explicit

◆ MicroGMTRelativeIsolationCheckLUT() [3/3]

l1t::MicroGMTRelativeIsolationCheckLUT::MicroGMTRelativeIsolationCheckLUT ( l1t::LUT lut)
explicit

◆ ~MicroGMTRelativeIsolationCheckLUT()

l1t::MicroGMTRelativeIsolationCheckLUT::~MicroGMTRelativeIsolationCheckLUT ( )
inlineoverride

Definition at line 13 of file MicroGMTRelativeIsolationCheckLUT.h.

13 {};

Member Function Documentation

◆ hashInput()

int l1t::MicroGMTRelativeIsolationCheckLUT::hashInput ( int  energySum,
int  pt 
) const

Definition at line 36 of file MicroGMTRelativeIsolationCheckLUT.cc.

36  {
37  int result = 0;
39  result += pT;
40  return result;
41 }

References CastorDataFrameFilter_impl::energySum(), PVValHelper::pT, and mps_fire::result.

◆ lookup()

int l1t::MicroGMTRelativeIsolationCheckLUT::lookup ( int  energySum,
int  pt 
) const

Definition at line 31 of file MicroGMTRelativeIsolationCheckLUT.cc.

31  {
32  // normalize these two to the same scale and then calculate?
34 }

References CastorDataFrameFilter_impl::energySum(), and DiDispStaMuonMonitor_cfi::pt.

◆ unHashInput()

void l1t::MicroGMTRelativeIsolationCheckLUT::unHashInput ( int  input,
int &  energySum,
int &  pt 
) const

Member Data Documentation

◆ m_energySumInWidth

int l1t::MicroGMTRelativeIsolationCheckLUT::m_energySumInWidth
private

◆ m_energySumMask

int l1t::MicroGMTRelativeIsolationCheckLUT::m_energySumMask
private

◆ m_ptInWidth

int l1t::MicroGMTRelativeIsolationCheckLUT::m_ptInWidth
private

◆ m_ptMask

int l1t::MicroGMTRelativeIsolationCheckLUT::m_ptMask
private
input
static const std::string input
Definition: EdmProvDump.cc:48
DiDispStaMuonMonitor_cfi.pt
pt
Definition: DiDispStaMuonMonitor_cfi.py:39
l1t::MicroGMTLUT::lookupPacked
virtual int lookupPacked(int input) const
Definition: MicroGMTLUT.cc:30
CastorDataFrameFilter_impl::energySum
double energySum(const DataFrame &df, int fs, int ls)
Definition: CastorDataFrameFilter.cc:22
PVValHelper::pT
Definition: PVValidationHelpers.h:70
l1t::MicroGMTConfiguration::PT
Definition: MicroGMTConfiguration.h:20
l1t::MicroGMTConfiguration::ENERGYSUM
Definition: MicroGMTConfiguration.h:28
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
l1t::MicroGMTLUT::checkedInput
int checkedInput(unsigned in, unsigned maxWidth) const
Definition: MicroGMTLUT.cc:51
l1t::MicroGMTRelativeIsolationCheckLUT::m_ptInWidth
int m_ptInWidth
Definition: MicroGMTRelativeIsolationCheckLUT.h:25
l1t::MicroGMTLUT::m_initialized
bool m_initialized
Definition: MicroGMTLUT.h:37
l1t::MicroGMTLUT::m_totalInWidth
unsigned m_totalInWidth
Definition: MicroGMTLUT.h:34
l1t::MicroGMTLUT::MicroGMTLUT
MicroGMTLUT()
Definition: MicroGMTLUT.h:16
l1t::MicroGMTLUT::load
int load(const std::string &inFileName)
Definition: MicroGMTLUT.cc:15
l1t::MicroGMTLUT::m_outWidth
unsigned m_outWidth
Definition: MicroGMTLUT.h:35
alignmentValidation.fname
string fname
main script
Definition: alignmentValidation.py:959
l1t::MicroGMTRelativeIsolationCheckLUT::m_ptMask
int m_ptMask
Definition: MicroGMTRelativeIsolationCheckLUT.h:22
l1t::MicroGMTRelativeIsolationCheckLUT::hashInput
int hashInput(int energySum, int pt) const
Definition: MicroGMTRelativeIsolationCheckLUT.cc:36
l1t::MicroGMTRelativeIsolationCheckLUT::m_energySumMask
int m_energySumMask
Definition: MicroGMTRelativeIsolationCheckLUT.h:23
l1t::MicroGMTRelativeIsolationCheckLUT::m_energySumInWidth
int m_energySumInWidth
Definition: MicroGMTRelativeIsolationCheckLUT.h:24
l1t::MicroGMTLUT::m_inputs
std::vector< MicroGMTConfiguration::input_t > m_inputs
Definition: MicroGMTLUT.h:36
mps_fire.result
result
Definition: mps_fire.py:303