TFCSBinnedShower class

Base classes

class TFCSBinnedShowerBase

Public types

struct event_t
struct layer_bins_t
struct layer_t
using eventvector_t = std::vector<event_t>
using event_bins_t = std::vector<layer_bins_t>

Constructors, destructors, conversion operators

TFCSBinnedShower(const char* name = nullptr, const char* title = nullptr)
~TFCSBinnedShower() override

Public functions

auto is_match_Ekin_bin(int) const -> bool override
void enable_event_matching()
void disable_event_matching()
void enable_event_cherry_picking()
void disable_event_cherry_picking()
void enable_eta_matching()
void disable_eta_matching()
void enable_upscaling()
void disable_upscaling()
void load_event_library(const std::string& filename, std::vector<long unsigned int>& layers, bool only_load_meta_data = false)
void load_sub_bin_distribution(const std::string& filename)
void set_hdf5_path(const std::string& filename)
void delete_hdf5_path()
auto get_hdf5_path() const -> const std::string &
void set_layer_energy(long unsigned int event_index, long unsigned int layer_index, const std::vector<unsigned int>& bin_index_vector, const std::vector<float>& E_vector)
void set_bin_boundaries(long unsigned int layer_index, const std::vector<float>& R_lower, const std::vector<float>& R_size, const std::vector<float>& alpha_lower, const std::vector<float>& alpha_size)
void set_shower_center_information(long unsigned int event_index, long unsigned int reference_layer_index, float eta_center, float phi_center)
auto get_eventlibrary() const -> const eventvector_t &
void set_event_library(const eventvector_t& eventlibrary)
auto get_coordinates() const -> const event_bins_t &
void set_coordinates(const event_bins_t& coordinates)
auto get_sub_bin_distribution() const -> const std::vector< std::vector< std::vector< std::vector< float >>>> &
auto get_upscaling_energies() const -> const std::vector< float > &
void set_sub_bin_distribution_and_energies(const std::vector<std::vector<std::vector<std::vector<float>>>>& sub_bin_distribution, const std::vector<float>& upscaling_energies)

Protected functions

void get_event(TFCSSimulationState& simulstate, float eta_center, float phi_center, float e_init, long unsigned int reference_layer_index) const override
do not persistify
auto get_n_hits(TFCSSimulationState& simulstate, long unsigned int layer_index) const -> long unsigned int override
void compute_n_hits_and_elayer(TFCSSimulationState& simulstate) const virtual
auto get_layer_energy(TFCSSimulationState& simulstate, long unsigned int layer_index) const -> float override
auto get_hit_position_and_energy(TFCSSimulationState& simulstate, long unsigned int layer_index, long unsigned int hit_index) const -> std::tuple< float, float, float > override
void delete_event(TFCSSimulationState& simulstate) const override

Function documentation

auto TFCSBinnedShower::get_layer_energy(TFCSSimulationState& simulstate, long unsigned int layer_index) const -> float override protected

Returns the total deposited energy in the given layer for the current event