ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RawTowerZDCDefs.h File Reference
#include <cstdlib>
#include <iostream>
#include <string>
#include <bitset>
+ Include dependency graph for RawTowerZDCDefs.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  RawTowerZDCDefs
 

Typedefs

typedef unsigned int RawTowerZDCDefs::keytype
 

Enumerations

enum  RawTowerZDCDefs::CalorimeterId {
  RawTowerZDCDefs::NONE = 0, RawTowerZDCDefs::ZDC_Crystal = 1, RawTowerZDCDefs::ZDC_SiPixel = 2, RawTowerZDCDefs::ZDC_SiPad =3,
  RawTowerZDCDefs::ZDC_Sci = 4
}
 

Functions

CalorimeterId RawTowerZDCDefs::decode_caloid (const unsigned int calo_tower_id)
 
unsigned int RawTowerZDCDefs::decode_index1zdc (const unsigned int calo_tower_id)
 
unsigned int RawTowerZDCDefs::decode_index2zdc (const unsigned int calo_tower_id)
 
unsigned int RawTowerZDCDefs::decode_index3zdc (const unsigned int calo_tower_id)
 
RawTowerZDCDefs::keytype RawTowerZDCDefs::encode_towerid_zdc (const CalorimeterId calo_id, const unsigned int tower_index_1, const unsigned int tower_index_2, const unsigned int tower_index_3)
 
std::string RawTowerZDCDefs::convert_caloid_to_name (const RawTowerZDCDefs::CalorimeterId calo_id)
 
RawTowerZDCDefs::CalorimeterId RawTowerZDCDefs::convert_name_to_caloid (const std::string &caloname)
 

Variables

static unsigned int RawTowerZDCDefs::calo_idbits = 4
 
static unsigned int RawTowerZDCDefs::tower_idbits = sizeof(keytype) * 8 - calo_idbits
 
static unsigned int RawTowerZDCDefs::bitsIndex2 = 10
 
static unsigned int RawTowerZDCDefs::bitsIndex3 = 8
 
static unsigned int RawTowerZDCDefs::maxbitsCaloId = 0xF
 
static unsigned int RawTowerZDCDefs::maxbitsIndex1 = 0x3FF
 
static unsigned int RawTowerZDCDefs::maxbitsIndex2 = 0x3FF
 
static unsigned int RawTowerZDCDefs::maxbitsIndex3 = 0xFF