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

Go to the source code of this file.

Namespaces

namespace  RawTowerDefs
 

Typedefs

typedef unsigned int RawTowerDefs::keytype
 

Enumerations

enum  RawTowerDefs::CalorimeterId {
  RawTowerDefs::NONE = 0, RawTowerDefs::CEMC = 1, RawTowerDefs::HCALOUT = 2, RawTowerDefs::HCALIN = 3,
  RawTowerDefs::EEMC = 4, RawTowerDefs::FEMC = 5, RawTowerDefs::FHCAL = 6, RawTowerDefs::DRCALO = 7,
  RawTowerDefs::EHCAL = 8, RawTowerDefs::EEMC_crystal = 9, RawTowerDefs::EEMC_glass = 10, RawTowerDefs::LFHCAL = 11,
  RawTowerDefs::BECAL = 12, RawTowerDefs::ZDC = 13, RawTowerDefs::B0ECAL = 14, RawTowerDefs::BWD_0 = 15,
  RawTowerDefs::BWD_1 = 16, RawTowerDefs::BWD_2 = 17, RawTowerDefs::BWD_3 = 18, RawTowerDefs::BWD_4 = 19
}
 

Functions

RawTowerDefs::keytype RawTowerDefs::encode_towerid (const CalorimeterId calo_id, const unsigned int tower_index_1, const unsigned int tower_index_2)
 
RawTowerDefs::keytype RawTowerDefs::encode_towerid (const CalorimeterId calo_id, const unsigned int tower_index)
 
CalorimeterId RawTowerDefs::decode_caloid (const unsigned int calo_tower_id)
 
unsigned int RawTowerDefs::decode_index (const unsigned int calo_tower_id)
 
unsigned int RawTowerDefs::decode_index1 (const unsigned int calo_tower_id)
 
unsigned int RawTowerDefs::decode_index2 (const unsigned int calo_tower_id)
 
unsigned int RawTowerDefs::decode_index1v2 (const unsigned int calo_tower_id)
 
unsigned int RawTowerDefs::decode_index2v2 (const unsigned int calo_tower_id)
 
unsigned int RawTowerDefs::decode_index3v2 (const unsigned int calo_tower_id)
 
RawTowerDefs::keytype RawTowerDefs::encode_towerid (const CalorimeterId calo_id, const unsigned int tower_index_1, const unsigned int tower_index_2, const unsigned int tower_index_3)
 
std::string RawTowerDefs::convert_caloid_to_name (const RawTowerDefs::CalorimeterId calo_id)
 
RawTowerDefs::CalorimeterId RawTowerDefs::convert_name_to_caloid (const std::string &caloname)
 

Variables

static unsigned int RawTowerDefs::calo_idbits = 8
 
static unsigned int RawTowerDefs::tower_idbits = sizeof(keytype) * 8 - calo_idbits
 
static unsigned int RawTowerDefs::index1_idbits = tower_idbits / 2