 |
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef ISF_FASTCALOSIMEVENT_TFCSBinnedShowerONNX_h
6 #define ISF_FASTCALOSIMEVENT_TFCSBinnedShowerONNX_h
8 #include <RtypesCore.h>
64 std::vector<long unsigned int> &
layers);
71 const std::vector<float>& R_lower,
const std::vector<float>& R_size,
72 const std::vector<float>& alpha_lower,
73 const std::vector<float>& alpha_size);
81 const std::vector<std::vector<std::vector<std::vector<float>>>>&
91 const std::vector<std::vector<std::vector<std::vector<float>>>> &
93 const std::vector<float> & upscaling_energies) {
103 float e_init,
long unsigned int reference_layer_index)
const override;
109 long unsigned int layer_index)
const override;
117 long unsigned int layer_index)
const override;
123 long unsigned int hit_index)
const override;
142 long unsigned int layer_index,
143 int bin_index)
const;
150 std::vector<std::vector<std::vector<std::vector<float>>>>
155 float &alpha_min,
float &alpha_max,
156 long unsigned int layer_index,
int bin_index)
const;
159 long unsigned int layer_index,
160 long unsigned int hit_index)
const;
163 const std::string &
filename,
const std::string &datasetname);
167 long unsigned int layer_index);
170 long unsigned int layer_index);
virtual bool is_match_Ekin_bin(int) const override
void set_max_hits_per_voxel(int max_hits)
virtual 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
TFCSMLCalorimeterSimulator * m_ai_simulator
std::vector< float > m_upscaling_energies
void set_coordinates(const event_bins_t &coordinates)
int get_max_hits_per_voxel() const
void load_bin_boundaries(const std::string &filename, long unsigned int layer_index)
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)
virtual std::tuple< float, float, float > get_hit_position_and_energy(TFCSSimulationState &simulstate, long unsigned int layer_index, long unsigned int hit_index) const override
void load_simulator(std::string &filename)
std::vector< float > R_size
const event_bins_t & get_coordinates()
bool loadSimulator(std::string &filename)
float m_default_hit_energy
std::vector< float > alpha_size
virtual long unsigned int get_n_hits(TFCSSimulationState &simulstate, long unsigned int layer_index) const override
std::tuple< std::vector< float >, std::vector< hsize_t >, bool > load_hdf5_dataset(const std::string &filename, const std::string &datasetname)
std::vector< std::vector< std::vector< std::vector< float > > > > m_sub_bin_distribution
float get_default_hit_energy() const
TFCSBinnedShowerONNX(const char *name=nullptr, const char *title=nullptr)
void load_upscaling_distribution(const std::string &filename, long unsigned int layer_index)
virtual void compute_n_hits_and_elayer(TFCSSimulationState &simulstate) const
void set_default_hit_energy(float energy)
void load_meta_data(const std::string &filename, std::vector< long unsigned int > &layers)
const long unsigned int m_n_layers
void load_sub_bin_distribution(const std::string &filename)
std::vector< float > alpha_lower
virtual ~TFCSBinnedShowerONNX()
long unsigned int get_energy_index(TFCSSimulationState &simulstate, long unsigned int layer_index, long unsigned int hit_index) const
virtual void delete_event(TFCSSimulationState &simulstate) const override
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)
const std::vector< std::vector< std::vector< std::vector< float > > > > & get_sub_bin_distribution() const
std::vector< layer_bins_t > event_bins_t
void upscale(TFCSSimulationState &simulstate, float &R_min, float &R_max, float &alpha_min, float &alpha_max, long unsigned int layer_index, int bin_index) const
const std::vector< float > & get_upscaling_energies() const
std::vector< float > R_lower
event_bins_t m_coordinates
virtual float get_layer_energy(TFCSSimulationState &simulstate, long unsigned int layer_index) const override