|
ATLAS Offline Software
|
Go to the documentation of this file.
7 #ifndef TRIGT1MUCTPIPHASE1_L1TOPOLUT_H
8 #define TRIGT1MUCTPIPHASE1_L1TOPOLUT_H
10 #include <boost/property_tree/ptree.hpp>
12 #include <unordered_map>
20 namespace pt = boost::property_tree;
44 const std::string& ecfFileName,
45 const std::string& side0LUTFileName,
46 const std::string& side1LUTFileName);
50 const unsigned short& sectorID,
51 const unsigned short& roi)
const;
53 unsigned short getBarrelROI(
unsigned short side,
unsigned short sector,
unsigned short ieta,
unsigned short iphi)
const;
76 const std::string& side1LUTFileName);
80 const std::string& nodeName,
93 std::stringstream
str;
94 str <<
"side, subsystem, sectorID, roi = "
113 return key.side | (
key.subsystem << 8) | (
key.sectorID << 16) | (
key.roi << 24);
129 std::map<unsigned short,std::map<unsigned short, std::pair<unsigned short, unsigned short>>>
m_barrel_encoding0;
130 std::map<unsigned short,std::map<unsigned short, std::pair<unsigned short, unsigned short>>>
m_barrel_encoding1;
136 std::unordered_map<L1TopoLUTKey, L1TopoCoordinates, L1TopoLUTKeyHasher>
m_encoding;
std::map< unsigned short, std::vector< float > > m_forward_eta_lookup1
std::map< unsigned short, std::vector< float > > m_endcap_phi_lookup1
unsigned short getBarrelROI(unsigned short side, unsigned short sector, unsigned short ieta, unsigned short iphi) const
std::map< unsigned short, unsigned short > m_barrel_reverse_encoding0
void fillFromPtree(const boost::property_tree::ptree &node, std::map< unsigned short, std::vector< float >> &theLut) const
std::unordered_map< L1TopoLUTKey, L1TopoCoordinates, L1TopoLUTKeyHasher > m_encoding
std::map< unsigned short, std::map< unsigned short, std::pair< unsigned short, unsigned short > > > m_barrel_encoding1
std::vector< std::string > m_errors
float getCompactedValue_eta(unsigned short subsystem, unsigned short side, unsigned short sectorID, unsigned short roi)
std::map< unsigned short, std::vector< float > > m_barrel_phi_lookup1
std::map< unsigned short, std::vector< float > > m_endcap_phi_lookup0
std::map< unsigned short, std::vector< float > > m_barrel_eta_lookup0
bool operator==(const L1TopoCoordinates &rhs) const
std::map< unsigned short, std::vector< float > > m_barrel_eta_lookup1
L1TopoCoordinates getCoordinates(const unsigned short &side, const unsigned short &subsystem, const unsigned short §orID, const unsigned short &roi) const
std::map< unsigned short, std::vector< float > > m_barrel_phi_lookup0
bool initializeCompactedLUTs(const std::string &side0LUTFileName, const std::string &side1LUTFileName)
std::map< unsigned short, std::map< unsigned short, std::pair< unsigned short, unsigned short > > > m_barrel_encoding0
bool operator==(const L1TopoLUTKey &rhs) const
bool initializeJSONForSubsystem(pt::ptree &root, const std::string &nodeName, bool side, unsigned short subsystem)
boost::property_tree::ptree ptree
std::map< unsigned short, std::vector< float > > m_endcap_eta_lookup1
unsigned long operator()(const L1TopoLUTKey &key) const
std::map< unsigned short, unsigned short > m_barrel_reverse_encoding1
float getCompactedValue_phi(unsigned short subsystem, unsigned short side, unsigned short sectorID, unsigned short roi)
bool initializeLUT(const std::string &barrelFileName, const std::string &ecfFileName, const std::string &side0LUTFileName, const std::string &side1LUTFileName)
bool initializeJSON(const std::string &inFileName, bool side)
std::map< unsigned short, std::vector< float > > m_forward_phi_lookup0
const std::vector< std::string > & getErrors() const
std::map< unsigned short, std::vector< float > > m_forward_phi_lookup1
std::map< unsigned short, std::vector< float > > m_endcap_eta_lookup0
std::map< unsigned short, std::vector< float > > m_forward_eta_lookup0