CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
l1t::MicroGMTCaloIndexSelectionLUT Class Reference

#include <MicroGMTCaloIndexSelectionLUT.h>

Inheritance diagram for l1t::MicroGMTCaloIndexSelectionLUT:
l1t::MicroGMTLUT

Public Member Functions

int hashInput (int angle) const
 
int lookup (int angle) const
 
 MicroGMTCaloIndexSelectionLUT (const edm::ParameterSet &iConfig, const std::string &setName, int type)
 
 MicroGMTCaloIndexSelectionLUT (const edm::ParameterSet &iConfig, const char *setName, int type)
 
void unHashInput (int input, int &angle) const
 
virtual ~MicroGMTCaloIndexSelectionLUT ()
 

Private Member Functions

void getParameters (const edm::ParameterSet &iConfig, const char *setName, int type)
 
- Private Member Functions inherited from l1t::MicroGMTLUT
int checkedInput (unsigned in, unsigned maxWidth) const
 
void contentsToStream (std::stringstream &stream)
 
void headerToStream (std::stringstream &stream) const
 
void initialize ()
 
void load (const std::string &inFileName)
 
virtual int lookupPacked (int input) const
 
 MicroGMTLUT ()
 
void save (std::ofstream &output)
 
virtual ~MicroGMTLUT ()
 

Private Attributes

int m_angleInWidth
 
- Private Attributes inherited from l1t::MicroGMTLUT
std::map< int, int > m_contents
 
std::string m_fname
 
bool m_initialized
 
std::vector
< MicroGMTConfiguration::input_t
m_inputs
 
unsigned m_outWidth
 
unsigned m_totalInWidth
 

Detailed Description

Definition at line 8 of file MicroGMTCaloIndexSelectionLUT.h.

Constructor & Destructor Documentation

l1t::MicroGMTCaloIndexSelectionLUT::MicroGMTCaloIndexSelectionLUT ( const edm::ParameterSet iConfig,
const std::string &  setName,
int  type 
)

Definition at line 3 of file MicroGMTCaloIndexSelectionLUT.cc.

References getParameters().

3  {
4  getParameters(iConfig, setName.c_str(), type);
5 }
type
Definition: HCALResponse.h:21
void getParameters(const edm::ParameterSet &iConfig, const char *setName, int type)
l1t::MicroGMTCaloIndexSelectionLUT::MicroGMTCaloIndexSelectionLUT ( const edm::ParameterSet iConfig,
const char *  setName,
int  type 
)

Definition at line 7 of file MicroGMTCaloIndexSelectionLUT.cc.

References cfg-viewer::getParameters().

7  {
8  getParameters(iConfig, setName, type);
9 
10 }
type
Definition: HCALResponse.h:21
void getParameters(const edm::ParameterSet &iConfig, const char *setName, int type)
l1t::MicroGMTCaloIndexSelectionLUT::~MicroGMTCaloIndexSelectionLUT ( )
virtual

Definition at line 32 of file MicroGMTCaloIndexSelectionLUT.cc.

33 {
34 
35 }

Member Function Documentation

void l1t::MicroGMTCaloIndexSelectionLUT::getParameters ( const edm::ParameterSet iConfig,
const char *  setName,
int  type 
)
private

Definition at line 13 of file MicroGMTCaloIndexSelectionLUT.cc.

References HDQMDatabaseProducer::config, l1t::MicroGMTConfiguration::ETA, edm::ParameterSet::getParameter(), svgfig::load(), l1t::MicroGMTConfiguration::PT, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by MicroGMTCaloIndexSelectionLUT().

13  {
15  if (type == 0) {
16  m_angleInWidth = config.getParameter<int>("eta_in_width");
17  } else {
18  m_angleInWidth = config.getParameter<int>("phi_in_width");
19  }
20 
22  std::string m_fname = config.getParameter<std::string>("filename");
23  if (m_fname != std::string("")) {
24  load(m_fname);
25  }
26 
29 }
type
Definition: HCALResponse.h:21
T getParameter(std::string const &) const
unsigned m_totalInWidth
Definition: MicroGMTLUT.h:35
std::vector< MicroGMTConfiguration::input_t > m_inputs
Definition: MicroGMTLUT.h:37
std::string m_fname
Definition: MicroGMTLUT.h:39
void load(const std::string &inFileName)
Definition: MicroGMTLUT.cc:18
int l1t::MicroGMTCaloIndexSelectionLUT::hashInput ( int  angle) const
inline

Definition at line 19 of file MicroGMTCaloIndexSelectionLUT.h.

References angle().

19 { return angle; };
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11
int l1t::MicroGMTCaloIndexSelectionLUT::lookup ( int  angle) const

Definition at line 39 of file MicroGMTCaloIndexSelectionLUT.cc.

40 {
41  return lookupPacked(angle);
42 }
virtual int lookupPacked(int input) const
Definition: MicroGMTLUT.cc:49
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11
void l1t::MicroGMTCaloIndexSelectionLUT::unHashInput ( int  input,
int &  angle 
) const
inline

Definition at line 20 of file MicroGMTCaloIndexSelectionLUT.h.

References input.

20 { angle = input; }
static std::string const input
Definition: EdmProvDump.cc:43
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11

Member Data Documentation

int l1t::MicroGMTCaloIndexSelectionLUT::m_angleInWidth
private

Definition at line 24 of file MicroGMTCaloIndexSelectionLUT.h.