![]() |
Project
|
#include <TopologyDictionary.h>
Public Member Functions | |
TopologyDictionary () | |
TopologyDictionary (const std::string &fileName) | |
void | writeBinaryFile (const std::string &outputFile) |
Prints the dictionary in a binary file. | |
int | readBinaryFile (const std::string &fileName) |
Reads the dictionary from a binary file. | |
int | readFromFile (const std::string &fileName) |
float | getXCOG (int n) const |
Returns the x position of the COG for the n_th element. | |
float | getErrX (int n) const |
Returns the error on the x position of the COG for the n_th element. | |
float | getZCOG (int n) const |
Returns the z position of the COG for the n_th element. | |
float | getErrZ (int n) const |
Returns the error on the z position of the COG for the n_th element. | |
float | getErr2X (int n) const |
Returns the error^2 on the x position of the COG for the n_th element. | |
float | getErr2Z (int n) const |
Returns the error^2 on the z position of the COG for the n_th element. | |
unsigned long | getHash (int n) const |
Returns the hash of the n_th element. | |
int | getNpixels (int n) const |
Returns the number of fired pixels of the n_th element. | |
double | getFrequency (int n) const |
Returns the frequency of the n_th element;. | |
bool | isGroup (int n) const |
Returns true if the element corresponds to a group of rare topologies. | |
const itsmft::ClusterPattern & | getPattern (int n) const |
Returns the pattern of the topology. | |
TH1F * | getTopologyDistribution (const std::string_view hname="h_topo_dist") const |
Fills a hostogram with the distribution of the IDs. | |
int | getSize () const |
Returns the number of elements in the dicionary;. | |
template<typename T = float> | |
math_utils::Point3D< T > | getClusterCoordinates (const itsmft::CompClusterExt &cl) const |
Returns the local position of a compact cluster. | |
Static Public Member Functions | |
template<typename T = float> | |
static math_utils::Point3D< T > | getClusterCoordinates (const itsmft::CompClusterExt &cl, const itsmft::ClusterPattern &patt, bool isGroup=true) |
Returns the local position of a compact cluster. | |
static TopologyDictionary * | loadFrom (const std::string &fileName="", const std::string &objName="ccdb_object") |
Static Public Attributes | |
static constexpr int | RowClassSpan = 4 |
Row span of the classes of rare topologies. | |
static constexpr int | ColClassSpan = 4 |
Column span of the classes of rare topologies. | |
static constexpr int | MaxNumberOfRowClasses = 1 + (itsmft::ClusterPattern::MaxRowSpan - 1) / RowClassSpan |
Maximum number of row classes for the groups of rare topologies. | |
static constexpr int | MaxNumberOfColClasses = 1 + (itsmft::ClusterPattern::MaxColSpan - 1) / ColClassSpan |
Maximum number of col classes for the groups of rare topologies. | |
static constexpr int | NumberOfRareGroups = MaxNumberOfRowClasses * MaxNumberOfColClasses |
Friends | |
std::ostream & | operator<< (std::ostream &os, const its3::TopologyDictionary &dictionary) |
Prints the dictionary. | |
Definition at line 27 of file TopologyDictionary.h.
o2::its3::TopologyDictionary::TopologyDictionary | ( | ) |
Definition at line 26 of file TopologyDictionary.cxx.
o2::its3::TopologyDictionary::TopologyDictionary | ( | const std::string & | fileName | ) |
Definition at line 31 of file TopologyDictionary.cxx.
template math_utils::Point3D< float > o2::its3::TopologyDictionary::getClusterCoordinates< float > | ( | const itsmft::CompClusterExt & | cl | ) | const |
Returns the local position of a compact cluster.
Returns the local position of a compact cluster
Definition at line 137 of file TopologyDictionary.cxx.
|
static |
Returns the local position of a compact cluster.
Definition at line 157 of file TopologyDictionary.cxx.
|
inline |
Returns the error^2 on the x position of the COG for the n_th element.
Definition at line 74 of file TopologyDictionary.h.
|
inline |
Returns the error^2 on the z position of the COG for the n_th element.
Definition at line 80 of file TopologyDictionary.h.
|
inline |
Returns the error on the x position of the COG for the n_th element.
Definition at line 56 of file TopologyDictionary.h.
|
inline |
Returns the error on the z position of the COG for the n_th element.
Definition at line 68 of file TopologyDictionary.h.
|
inline |
Returns the frequency of the n_th element;.
Definition at line 98 of file TopologyDictionary.h.
Returns the hash of the n_th element.
Definition at line 86 of file TopologyDictionary.h.
Returns the number of fired pixels of the n_th element.
Definition at line 92 of file TopologyDictionary.h.
|
inline |
Returns the pattern of the topology.
Definition at line 110 of file TopologyDictionary.h.
|
inline |
Returns the number of elements in the dicionary;.
Definition at line 119 of file TopologyDictionary.h.
TH1F * o2::its3::TopologyDictionary::getTopologyDistribution | ( | const std::string_view | hname = "h_topo_dist" | ) | const |
Fills a hostogram with the distribution of the IDs.
Definition at line 123 of file TopologyDictionary.cxx.
|
inline |
Returns the x position of the COG for the n_th element.
Definition at line 50 of file TopologyDictionary.h.
|
inline |
Returns the z position of the COG for the n_th element.
Definition at line 62 of file TopologyDictionary.h.
|
inline |
Returns true if the element corresponds to a group of rare topologies.
Definition at line 104 of file TopologyDictionary.h.
|
static |
Definition at line 180 of file TopologyDictionary.cxx.
int o2::its3::TopologyDictionary::readBinaryFile | ( | const std::string & | fileName | ) |
Reads the dictionary from a binary file.
Definition at line 82 of file TopologyDictionary.cxx.
int o2::its3::TopologyDictionary::readFromFile | ( | const std::string & | fileName | ) |
Definition at line 68 of file TopologyDictionary.cxx.
void o2::its3::TopologyDictionary::writeBinaryFile | ( | const std::string & | outputFile | ) |
Prints the dictionary in a binary file.
Definition at line 48 of file TopologyDictionary.cxx.
|
friend |
Prints the dictionary.
Definition at line 36 of file TopologyDictionary.cxx.
|
staticconstexpr |
Column span of the classes of rare topologies.
Definition at line 36 of file TopologyDictionary.h.
|
staticconstexpr |
Maximum number of col classes for the groups of rare topologies.
Definition at line 38 of file TopologyDictionary.h.
|
staticconstexpr |
Maximum number of row classes for the groups of rare topologies.
Definition at line 37 of file TopologyDictionary.h.
|
staticconstexpr |
Number of entries corresponding to groups of rare topologies (those whos matrix exceed the max number of bytes are empty).
Definition at line 39 of file TopologyDictionary.h.
|
staticconstexpr |
Row span of the classes of rare topologies.
constexpr for the definition of the groups of rare topologies. The attritbution of the group ID is stringly dependent on the following parameters: it must be a power of 2.
Definition at line 35 of file TopologyDictionary.h.