#include <ViewTranslator.h>
Public Types | |
typedef std::map< uint32_t, uint32_t > | Mapping |
Public Member Functions | |
uint32_t | detToFec (const uint32_t &det_key_mask, const Mapping &input, Mapping &output) |
void | detToFec (std::string root_filename, uint32_t &det_key_mask, Mapping &det_to_fec) |
uint32_t | fedToFec (const uint32_t &fed_key_mask, const Mapping &input, Mapping &output) |
void | fedToFec (std::string root_filename, uint32_t &fed_key_mask, Mapping &fed_to_fec) |
void | writeMapsToFile (std::string root_filename, Mapping &det_to_fec, Mapping &fed_to_fec) |
Static Public Member Functions | |
static void | buildMaps (const SiStripFedCabling &, Mapping &det_to_fec, Mapping &fed_to_fec) |
Private Attributes | |
std::string | rootfile_ |
Static Private Attributes | |
static const uint16_t | fedChMask_ = 0xFF |
static const uint16_t | fedFeMask_ = 0xF |
static const uint16_t | fedIdMask_ = 0xFFF |
Utility class that maps Fed and Det keys with the Fec Keys, saves them in a root file and also extracts fec keys if given a fed/det key
Definition at line 20 of file ViewTranslator.h.
typedef std::map<uint32_t,uint32_t> ViewTranslator::Mapping |
Mapping type between different keys.
Definition at line 25 of file ViewTranslator.h.
|
static |
Build maps from FED cabling object
Definition at line 16 of file ViewTranslator.cc.
References SiStripFedCabling::connections(), SiStripFedKey::feChan(), SiStripFedCabling::feds(), SiStripFedKey::feUnit(), combine::key, SiStripKey::key(), LogTrace, and sistrip::mlCabling_.
uint32_t ViewTranslator::detToFec | ( | const uint32_t & | det_key_mask, |
const Mapping & | input, | ||
Mapping & | output | ||
) |
|
inline |
Definition at line 48 of file ViewTranslator.h.
uint32_t ViewTranslator::fedToFec | ( | const uint32_t & | fed_key_mask, |
const Mapping & | input, | ||
Mapping & | output | ||
) |
Build "reduced" map based on "masked" FED key
Definition at line 68 of file ViewTranslator.cc.
References sistrip::mlCabling_.
|
inline |
Definition at line 54 of file ViewTranslator.h.
void ViewTranslator::writeMapsToFile | ( | std::string | root_filename, |
Mapping & | det_to_fec, | ||
Mapping & | fed_to_fec | ||
) |
Definition at line 221 of file ViewTranslator.cc.
|
staticprivate |
Definition at line 72 of file ViewTranslator.h.
|
staticprivate |
Definition at line 71 of file ViewTranslator.h.
|
staticprivate |
Definition at line 70 of file ViewTranslator.h.
|
private |
Root filename.
Definition at line 67 of file ViewTranslator.h.