#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 18 of file ViewTranslator.h.
typedef std::map<uint32_t, uint32_t> ViewTranslator::Mapping |
Mapping type between different keys.
Definition at line 21 of file ViewTranslator.h.
|
static |
Build maps from FED cabling object
Definition at line 16 of file ViewTranslator.cc.
References SiStripFedKey::feChan(), SiStripFedCabling::fedConnections(), SiStripFedCabling::fedIds(), SiStripFedKey::feUnit(), crabWrapper::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 38 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 56 of file ViewTranslator.cc.
References input, and sistrip::mlCabling_.
|
inline |
Definition at line 42 of file ViewTranslator.h.
void ViewTranslator::writeMapsToFile | ( | std::string | root_filename, |
Mapping & | det_to_fec, | ||
Mapping & | fed_to_fec | ||
) |
Definition at line 194 of file ViewTranslator.cc.
|
staticprivate |
Definition at line 55 of file ViewTranslator.h.
|
staticprivate |
Definition at line 54 of file ViewTranslator.h.
|
staticprivate |
Definition at line 53 of file ViewTranslator.h.
|
private |
Root filename.
Definition at line 50 of file ViewTranslator.h.