![]() |
Project
|
cluster for internal use More...
#include <ClusterOriginal.h>
Public Member Functions | |
ClusterOriginal ()=default | |
~ClusterOriginal ()=default | |
ClusterOriginal (const ClusterOriginal &cl)=default | |
ClusterOriginal & | operator= (const ClusterOriginal &cl)=default |
ClusterOriginal (ClusterOriginal &&)=delete | |
ClusterOriginal & | operator= (ClusterOriginal &&)=delete |
void | clear () |
void | addPad (double x, double y, double dx, double dy, double charge, bool isSaturated, int plane, int digitIdx, int status) |
void | removePad (size_t iPad) |
void | sortPads (double precision) |
size_t | multiplicity () const |
return the total number of pads associated to this cluster | |
size_t | multiplicity (int plane) const |
PadOriginal & | pad (size_t i) |
return the ith pad (no bound checking) | |
const PadOriginal & | pad (size_t i) const |
auto | begin () |
return begin/end iterators to be able to iterate over the pads without accessing the internal vector | |
auto | begin () const |
auto | end () |
auto | end () const |
float | charge () const |
return the total charge of this cluster | |
float | chargeAsymmetry () const |
return the charge asymmetry of this cluster | |
int | maxChargePlane () const |
return the plane with the highest charge | |
bool | isSaturated () const |
return whether there are saturated pads on both plane or not | |
std::pair< double, double > | minPadDimensions (int statusMask, bool matchMask) const |
std::pair< double, double > | minPadDimensions (int plane, int statusMask, bool matchMask) const |
void | area (int plane, double area[2][2]) const |
std::pair< int, int > | sizeInPads (int statusMask) const |
std::pair< int, int > | sizeInPads (int plane, int statusMask) const |
cluster for internal use
Definition at line 32 of file ClusterOriginal.h.
|
default |
|
default |
|
default |
|
delete |
void o2::mch::ClusterOriginal::addPad | ( | double | x, |
double | y, | ||
double | dx, | ||
double | dy, | ||
double | charge, | ||
bool | isSaturated, | ||
int | plane, | ||
int | digitIdx, | ||
int | status | ||
) |
add a new pad to this cluster
Definition at line 65 of file ClusterOriginal.cxx.
return the geometrical area (cm) covered by the pads on the given plane area[0][0] = xmin, area[0][1] = xmax, area[1][0] = ymin, area[1][1] = ymax
Definition at line 162 of file ClusterOriginal.cxx.
|
inline |
return begin/end iterators to be able to iterate over the pads without accessing the internal vector
Definition at line 60 of file ClusterOriginal.h.
|
inline |
Definition at line 61 of file ClusterOriginal.h.
|
inline |
return the total charge of this cluster
Definition at line 66 of file ClusterOriginal.h.
|
inline |
return the charge asymmetry of this cluster
Definition at line 68 of file ClusterOriginal.h.
void o2::mch::ClusterOriginal::clear | ( | ) |
clear the content of this cluster
Definition at line 48 of file ClusterOriginal.cxx.
|
inline |
Definition at line 62 of file ClusterOriginal.h.
|
inline |
Definition at line 63 of file ClusterOriginal.h.
|
inline |
return whether there are saturated pads on both plane or not
Definition at line 73 of file ClusterOriginal.h.
|
inline |
return the plane with the highest charge
Definition at line 70 of file ClusterOriginal.h.
std::pair< double, double > o2::mch::ClusterOriginal::minPadDimensions | ( | int | plane, |
int | statusMask, | ||
bool | matchMask | ||
) | const |
Returns the minimum pad dimensions (half sizes), only considering pads matching (or not, depending matchMask) a given mask, within a given plane
Definition at line 137 of file ClusterOriginal.cxx.
std::pair< double, double > o2::mch::ClusterOriginal::minPadDimensions | ( | int | statusMask, |
bool | matchMask | ||
) | const |
Returns the minimum pad dimensions (half sizes), only considering pads matching (or not, depending matchMask) a given mask
Definition at line 125 of file ClusterOriginal.cxx.
|
inline |
return the total number of pads associated to this cluster
Definition at line 52 of file ClusterOriginal.h.
size_t o2::mch::ClusterOriginal::multiplicity | ( | int | plane | ) | const |
return the number of pads associated to this cluster in the given plane
Definition at line 117 of file ClusterOriginal.cxx.
|
delete |
|
default |
|
inline |
return the ith pad (no bound checking)
Definition at line 56 of file ClusterOriginal.h.
|
inline |
Definition at line 57 of file ClusterOriginal.h.
void o2::mch::ClusterOriginal::removePad | ( | size_t | iPad | ) |
remove the given pad from the internal list and update the cluster informations
Definition at line 81 of file ClusterOriginal.cxx.
return the size of the cluster on the given plane in terms of number of pads in x and y directions
Definition at line 214 of file ClusterOriginal.cxx.
return the size of the cluster in terms of number of pads in x and y directions use the pads from the plane in which their minimum size is the smallest in this direction
Definition at line 185 of file ClusterOriginal.cxx.
void o2::mch::ClusterOriginal::sortPads | ( | double | precision | ) |
sort the pads per plane then in increasing y-position if same plane then in increasing x-position if same y positions within ± precision are considered as equal
Definition at line 105 of file ClusterOriginal.cxx.