Project
Loading...
Searching...
No Matches
Cell.cxx File Reference
#include "DataFormatsEMCAL/Constants.h"
#include "DataFormatsEMCAL/Cell.h"
#include <iostream>
#include <bitset>
#include <cmath>

Go to the source code of this file.

Namespaces

namespace  TimeEncoding
 
namespace  EnergyEncoding
 
namespace  EnergyEncoding::v0
 
namespace  EnergyEncoding::v1
 
namespace  EnergyEncoding::v2
 
namespace  DecodingV0
 

Functions

struct DecodingV0::__attribute__ ((packed)) CellDataPacked
 

Variables

const float TimeEncoding::TIME_SHIFT = 600.
 
const float TimeEncoding::TIME_RANGE = 1500.
 
const float TimeEncoding::TIME_RESOLUTION = TIME_RANGE / 2047.
 
const float EnergyEncoding::v0::ENERGY_TRUNCATION = 250.
 
const float EnergyEncoding::v0::ENERGY_RESOLUTION = ENERGY_TRUNCATION / 16383.
 
const float EnergyEncoding::v1::ENERGY_BITS = static_cast<float>(0x3FFF)
 
const float EnergyEncoding::v1::HGLGTRANSITION = o2::emcal::constants::EMCAL_HGLGTRANSITION * o2::emcal::constants::EMCAL_ADCENERGY
 
const float EnergyEncoding::v1::ENERGY_TRUNCATION = 250.
 
const float EnergyEncoding::v1::ENERGY_RESOLUTION_LG = (ENERGY_TRUNCATION - HGLGTRANSITION) / ENERGY_BITS
 
const float EnergyEncoding::v1::ENERGY_RESOLUTION_HG = HGLGTRANSITION / ENERGY_BITS
 
const float EnergyEncoding::v1::ENERGY_RESOLUTION_TRU = ENERGY_TRUNCATION / ENERGY_BITS
 
const float EnergyEncoding::v1::ENERGY_RESOLUTION_LEDMON = ENERGY_TRUNCATION / ENERGY_BITS
 
const float EnergyEncoding::v2::ENERGY_BITS = static_cast<float>(0x3FFF)
 
const float EnergyEncoding::v2::SAFETYMARGIN = 0.2
 
const float EnergyEncoding::v2::HGLGTRANSITION = o2::emcal::constants::OVERFLOWCUT * o2::emcal::constants::EMCAL_ADCENERGY
 
const float EnergyEncoding::v2::OFFSET_LG = HGLGTRANSITION - SAFETYMARGIN
 
const float EnergyEncoding::v2::ENERGY_TRUNCATION = 250.
 
const float EnergyEncoding::v2::ENERGY_RESOLUTION_LG = (ENERGY_TRUNCATION - OFFSET_LG) / ENERGY_BITS
 
const float EnergyEncoding::v2::ENERGY_RESOLUTION_HG = HGLGTRANSITION / ENERGY_BITS
 
const float EnergyEncoding::v2::ENERGY_RESOLUTION_TRU = ENERGY_TRUNCATION / ENERGY_BITS
 
const float EnergyEncoding::v2::ENERGY_RESOLUTION_LEDMON = ENERGY_TRUNCATION / ENERGY_BITS