Project
Loading...
Searching...
No Matches
o2::mch::ClusterOriginal Class Reference

cluster for internal use More...

#include <ClusterOriginal.h>

Public Member Functions

 ClusterOriginal ()=default
 
 ~ClusterOriginal ()=default
 
 ClusterOriginal (const ClusterOriginal &cl)=default
 
ClusterOriginaloperator= (const ClusterOriginal &cl)=default
 
 ClusterOriginal (ClusterOriginal &&)=delete
 
ClusterOriginaloperator= (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
 
PadOriginalpad (size_t i)
 return the ith pad (no bound checking)
 
const PadOriginalpad (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, intsizeInPads (int statusMask) const
 
std::pair< int, intsizeInPads (int plane, int statusMask) const
 

Detailed Description

cluster for internal use

Definition at line 32 of file ClusterOriginal.h.

Constructor & Destructor Documentation

◆ ClusterOriginal() [1/3]

o2::mch::ClusterOriginal::ClusterOriginal ( )
default

◆ ~ClusterOriginal()

o2::mch::ClusterOriginal::~ClusterOriginal ( )
default

◆ ClusterOriginal() [2/3]

o2::mch::ClusterOriginal::ClusterOriginal ( const ClusterOriginal cl)
default

◆ ClusterOriginal() [3/3]

o2::mch::ClusterOriginal::ClusterOriginal ( ClusterOriginal &&  )
delete

Member Function Documentation

◆ addPad()

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.

◆ area()

void o2::mch::ClusterOriginal::area ( int  plane,
double  area[2][2] 
) const

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.

◆ begin() [1/2]

auto o2::mch::ClusterOriginal::begin ( )
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.

◆ begin() [2/2]

auto o2::mch::ClusterOriginal::begin ( ) const
inline

Definition at line 61 of file ClusterOriginal.h.

◆ charge()

float o2::mch::ClusterOriginal::charge ( ) const
inline

return the total charge of this cluster

Definition at line 66 of file ClusterOriginal.h.

◆ chargeAsymmetry()

float o2::mch::ClusterOriginal::chargeAsymmetry ( ) const
inline

return the charge asymmetry of this cluster

Definition at line 68 of file ClusterOriginal.h.

◆ clear()

void o2::mch::ClusterOriginal::clear ( )

clear the content of this cluster

Definition at line 48 of file ClusterOriginal.cxx.

◆ end() [1/2]

auto o2::mch::ClusterOriginal::end ( )
inline

Definition at line 62 of file ClusterOriginal.h.

◆ end() [2/2]

auto o2::mch::ClusterOriginal::end ( ) const
inline

Definition at line 63 of file ClusterOriginal.h.

◆ isSaturated()

bool o2::mch::ClusterOriginal::isSaturated ( ) const
inline

return whether there are saturated pads on both plane or not

Definition at line 73 of file ClusterOriginal.h.

◆ maxChargePlane()

int o2::mch::ClusterOriginal::maxChargePlane ( ) const
inline

return the plane with the highest charge

Definition at line 70 of file ClusterOriginal.h.

◆ minPadDimensions() [1/2]

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.

◆ minPadDimensions() [2/2]

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.

◆ multiplicity() [1/2]

size_t o2::mch::ClusterOriginal::multiplicity ( ) const
inline

return the total number of pads associated to this cluster

Definition at line 52 of file ClusterOriginal.h.

◆ multiplicity() [2/2]

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.

◆ operator=() [1/2]

ClusterOriginal & o2::mch::ClusterOriginal::operator= ( ClusterOriginal &&  )
delete

◆ operator=() [2/2]

ClusterOriginal & o2::mch::ClusterOriginal::operator= ( const ClusterOriginal cl)
default

◆ pad() [1/2]

PadOriginal & o2::mch::ClusterOriginal::pad ( size_t  i)
inline

return the ith pad (no bound checking)

Definition at line 56 of file ClusterOriginal.h.

◆ pad() [2/2]

const PadOriginal & o2::mch::ClusterOriginal::pad ( size_t  i) const
inline

Definition at line 57 of file ClusterOriginal.h.

◆ removePad()

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.

◆ sizeInPads() [1/2]

std::pair< int, int > o2::mch::ClusterOriginal::sizeInPads ( int  plane,
int  statusMask 
) const

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.

◆ sizeInPads() [2/2]

std::pair< int, int > o2::mch::ClusterOriginal::sizeInPads ( int  statusMask) const

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.

◆ sortPads()

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.


The documentation for this class was generated from the following files: