![]() |
EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <TTree.h>#include <fstream>#include <map>#include <set>#include <vector>
Include dependency graph for compressor.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Functions | |
| Float_t | approx (std::vector< UShort_t > *order, std::vector< Float_t > *dict, std::vector< size_t > *cnt, Int_t n_entries, TTree *t, Float_t *gen_, size_t maxNumClusters) |
| Int_t | newLoc (std::vector< Int_t > *loc_vec, std::vector< std::set< Int_t >> *loc_set_vec) |
| void | removeDiff (Float_t distance, Float_t min, std::map< Float_t, std::set< Float_t >> *distance_min_set_map) |
| void | addDiff (Float_t distance, Float_t min, std::map< Float_t, std::set< Float_t >> *distance_min_set_map) |
| void addDiff | ( | Float_t | distance, |
| Float_t | min, | ||
| std::map< Float_t, std::set< Float_t >> * | distance_min_set_map | ||
| ) |
Definition at line 155 of file compressor.h.
View newest version in sPHENIX GitHub at line 155 of file compressor.h
Referenced by approx().
Here is the caller graph for this function:| Float_t approx | ( | std::vector< UShort_t > * | order, |
| std::vector< Float_t > * | dict, | ||
| std::vector< size_t > * | cnt, | ||
| Int_t | n_entries, | ||
| TTree * | t, | ||
| Float_t * | gen_, | ||
| size_t | maxNumClusters | ||
| ) |
Compression algorithm for use in the CMSSW and sPHENIX projects. Using 16-bit short integers to store 32-bit floating-point values. Author: fishyu@iii.org.tw May 22, 2021 approx() compresses data held in t and returns the standard deviation of the differences between the actual and approximated data.
Definition at line 32 of file compressor.h.
View newest version in sPHENIX GitHub at line 32 of file compressor.h
References addDiff(), Acts::Test::delta, estimate(), max, min, newLoc(), removeDiff(), and Acts::UnitConstants::s.
Referenced by DSTCompressor::compress_gaussian_dist(), and doCompression().
Here is the call graph for this function:
Here is the caller graph for this function:| Int_t newLoc | ( | std::vector< Int_t > * | loc_vec, |
| std::vector< std::set< Int_t >> * | loc_set_vec | ||
| ) |
Definition at line 132 of file compressor.h.
View newest version in sPHENIX GitHub at line 132 of file compressor.h
Referenced by approx().
Here is the caller graph for this function:| void removeDiff | ( | Float_t | distance, |
| Float_t | min, | ||
| std::map< Float_t, std::set< Float_t >> * | distance_min_set_map | ||
| ) |
Definition at line 146 of file compressor.h.
View newest version in sPHENIX GitHub at line 146 of file compressor.h
Referenced by approx().
Here is the caller graph for this function: