|
BmnRoot
|
Class for description of recognized cluster in Bmn Ndet detector. More...
#include <BmnNdetCluster.h>
Public Member Functions | |
| BmnNdetCluster () | |
| Default constructor. | |
| ~BmnNdetCluster () | |
| Default destructor. | |
| BmnNdetCluster (size_t size) | |
| void | AddCell (Int_t cell, Int_t column, Int_t row, Int_t layer, Double_t x, Double_t y, Double_t z, Double_t t, Double_t e_dep, Double_t beta=-1.) |
| Int_t | GetNCells () |
| Int_t | GetNCells (Double_t threshold) |
| vector< Int_t > | GetCells () |
| vector< Int_t > | GetColumns () |
| vector< Int_t > | GetRows () |
| vector< Int_t > | GetLayers () |
| vector< Double_t > | GetX () |
| vector< Double_t > | GetY () |
| vector< Double_t > | GetZ () |
| vector< Double_t > | GetTime () |
| vector< Double_t > | GetEdep () |
| vector< Double_t > | GetBeta () |
| Bool_t | ContainsVetoCells (Int_t veto_layer=0) |
| Bool_t | StartsOnBorder (Int_t size_x=11, Int_t size_y=11, Int_t size_z=8) |
| Double_t | EnergyDepositedAverage (Double_t threshold=0.003) |
| Double_t | EnergyDeposited (Double_t threshold=0.003) |
| Int_t | FirstCell () |
| Int_t | FastestCell () |
| Double_t | BetaFirst () |
| Double_t | BetaFastest () |
| Double_t | EnergyTofFirst (Double_t mass=0.939565420) |
| Double_t | EnergyTofFastest (Double_t mass=0.939565420) |
| Double_t | EnergyTofAverage (Double_t mass=0.939565420) |
| Double_t | AngleToTarget () |
| Double_t | AngleToDirection (Double_t x=0, Double_t y=0, Double_t z=1) |
| BmnNdetCluster * | AddCluster (BmnNdetCluster *other) |
| Merging of clusters. | |
| BmnNdetCluster (const BmnNdetCluster &) | |
| Copy constructor. | |
| BmnNdetCluster (BmnNdetCluster &&) noexcept | |
| Move constructor. | |
| void | Clear () |
| Clear all cell contents, set fNCells=0. | |
| virtual void | Print (const Option_t *option="") |
| Print. | |
| virtual const char * | GetClassName () |
| BmnNdetCluster () | |
| Default constructor. | |
| ~BmnNdetCluster () | |
| Default destructor. | |
| BmnNdetCluster (size_t size) | |
| void | AddCell (Int_t cell, Int_t column, Int_t row, Int_t layer, Double_t x, Double_t y, Double_t z, Double_t t, Double_t e_dep, Double_t beta=-1.) |
| Int_t | GetNCells () |
| Int_t | GetNCells (Double_t threshold) |
| vector< Int_t > | GetCells () |
| vector< Int_t > | GetColumns () |
| vector< Int_t > | GetRows () |
| vector< Int_t > | GetLayers () |
| vector< Double_t > | GetX () |
| vector< Double_t > | GetY () |
| vector< Double_t > | GetZ () |
| vector< Double_t > | GetTime () |
| vector< Double_t > | GetEdep () |
| vector< Double_t > | GetBeta () |
| Bool_t | ContainsVetoCells (Int_t veto_layer=0) |
| Bool_t | StartsOnBorder (Int_t size_x=11, Int_t size_y=11, Int_t size_z=8) |
| Double_t | EnergyDepositedAverage (Double_t threshold=0.003) |
| Double_t | EnergyDeposited (Double_t threshold=0.003) |
| Int_t | FirstCell () |
| Int_t | FastestCell () |
| Double_t | BetaFirst () |
| Double_t | BetaFastest () |
| Double_t | EnergyTofFirst (Double_t mass=0.939565420) |
| Double_t | EnergyTofFastest (Double_t mass=0.939565420) |
| Double_t | EnergyTofAverage (Double_t mass=0.939565420) |
| Double_t | AngleToTarget () |
| Double_t | AngleToDirection (Double_t x=0, Double_t y=0, Double_t z=1) |
| BmnNdetCluster * | AddCluster (BmnNdetCluster *other) |
| Merging of clusters. | |
| BmnNdetCluster (const BmnNdetCluster &) | |
| Copy constructor. | |
| BmnNdetCluster (BmnNdetCluster &&) noexcept | |
| Move constructor. | |
| void | Clear () |
| Clear all cell contents, set fNCells=0. | |
| virtual void | Print (const Option_t *option="") |
| Print. | |
| virtual const char * | GetClassName () |
Class for description of recognized cluster in Bmn Ndet detector.
BmnNdetCluster contains information about position, time and deposited energies of all cells belonging to the cluster. this information is filled when BmnClusterFinder::FindClusters() method is run.
Definition at line 25 of file BmnNdetCluster.h.
| BmnNdetCluster::BmnNdetCluster | ( | ) |
Default constructor.
Definition at line 12 of file BmnNdetCluster.cxx.
| BmnNdetCluster::~BmnNdetCluster | ( | ) |
Default destructor.
Definition at line 18 of file BmnNdetCluster.cxx.
| BmnNdetCluster::BmnNdetCluster | ( | size_t | size | ) |
Сonstructor
| size | expected number of cells in cluster |
Definition at line 20 of file BmnNdetCluster.cxx.
| BmnNdetCluster::BmnNdetCluster | ( | const BmnNdetCluster & | other | ) |
Copy constructor.
Definition at line 340 of file BmnNdetCluster.cxx.
|
noexcept |
Move constructor.
Definition at line 344 of file BmnNdetCluster.cxx.
| BmnNdetCluster::BmnNdetCluster | ( | ) |
Default constructor.
| BmnNdetCluster::~BmnNdetCluster | ( | ) |
Default destructor.
| BmnNdetCluster::BmnNdetCluster | ( | size_t | size | ) |
Сonstructor
| size | expected number of cells in cluster |
| BmnNdetCluster::BmnNdetCluster | ( | const BmnNdetCluster & | ) |
Copy constructor.
|
noexcept |
Move constructor.
| void BmnNdetCluster::AddCell | ( | Int_t | cell, |
| Int_t | column, | ||
| Int_t | row, | ||
| Int_t | layer, | ||
| Double_t | x, | ||
| Double_t | y, | ||
| Double_t | z, | ||
| Double_t | t, | ||
| Double_t | e_dep, | ||
| Double_t | beta = -1. |
||
| ) |
Add cell to the cluster
| cell | Index of a cell in BmnNdetCell array in BmnNdetEvent object. |
| column | Column index of a cell |
| row | Row index of a cell |
| layer | Layer index of a cell |
| x | X coordinate of a cell [cm] |
| y | Y coordinate of a cell [cm] |
| z | Z coordinate of a cell [cm] |
| t | Time of actuation of the cell [ns] |
| e_dep | Deposited energy in scintillator of a cell [GeV] |
| beta | Beta calculated from distance to target and time of flight. If beta < 0 it is calculated while filling from x,y,z,t. |
Definition at line 36 of file BmnNdetCluster.cxx.
Referenced by BmnNdetClusterFinder::AddCellToCluster(), AddCluster(), and BmnNdetClusterFinder::MergeClusters().
| void BmnNdetCluster::AddCell | ( | Int_t | cell, |
| Int_t | column, | ||
| Int_t | row, | ||
| Int_t | layer, | ||
| Double_t | x, | ||
| Double_t | y, | ||
| Double_t | z, | ||
| Double_t | t, | ||
| Double_t | e_dep, | ||
| Double_t | beta = -1. |
||
| ) |
Add cell to the cluster
| cell | Index of a cell in BmnNdetCell array in BmnNdetEvent object. |
| column | Column index of a cell |
| row | Row index of a cell |
| layer | Layer index of a cell |
| x | X coordinate of a cell [cm] |
| y | Y coordinate of a cell [cm] |
| z | Z coordinate of a cell [cm] |
| t | Time of actuation of the cell [ns] |
| e_dep | Deposited energy in scintillator of a cell [GeV] |
| beta | Beta calculated from distance to target and time of flight. If beta < 0 it is calculated while filling from x,y,z,t. |
| BmnNdetCluster * BmnNdetCluster::AddCluster | ( | BmnNdetCluster * | other | ) |
Merging of clusters.
Definition at line 313 of file BmnNdetCluster.cxx.
References AddCell(), GetBeta(), GetCells(), GetColumns(), GetEdep(), GetLayers(), GetNCells(), GetRows(), GetTime(), GetX(), GetY(), and GetZ().
| BmnNdetCluster * BmnNdetCluster::AddCluster | ( | BmnNdetCluster * | other | ) |
Merging of clusters.
| Double_t BmnNdetCluster::AngleToDirection | ( | Double_t | x = 0, |
| Double_t | y = 0, |
||
| Double_t | z = 1 |
||
| ) |
Angle between vector (x,y,z) and average direction of cluster
Direction of cluster is sum of vectors, which connect first cell and other cells.
| x | X coordinate of vector |
| y | Y coordinate of vector |
| z | Z coordinate of vector |
Definition at line 284 of file BmnNdetCluster.cxx.
References FirstCell().
| Double_t BmnNdetCluster::AngleToDirection | ( | Double_t | x = 0, |
| Double_t | y = 0, |
||
| Double_t | z = 1 |
||
| ) |
Angle between vector (x,y,z) and average direction of cluster
Direction of cluster is sum of vectors, which connect first cell and other cells.
| x | X coordinate of vector |
| y | Y coordinate of vector |
| z | Z coordinate of vector |
| Double_t BmnNdetCluster::AngleToTarget | ( | ) |
Angle between direction to first cell and average direction of cluster
Direction of cluster is sum of vectors, which connect first cell and other cells.
Definition at line 255 of file BmnNdetCluster.cxx.
References FirstCell().
Referenced by BmnNdetClusterFinder::SelectNeutrons().
| Double_t BmnNdetCluster::AngleToTarget | ( | ) |
Angle between direction to first cell and average direction of cluster
Direction of cluster is sum of vectors, which connect first cell and other cells.
| Double_t BmnNdetCluster::BetaFastest | ( | ) |
Beta calculated for the cell with highest beta
beta = v / c
v = d / t
d = sqrt(x^2+y^2+z^2)
Definition at line 209 of file BmnNdetCluster.cxx.
References FastestCell().
Referenced by EnergyTofFastest().
| Double_t BmnNdetCluster::BetaFastest | ( | ) |
Beta calculated for the cell with highest beta
beta = v / c
v = d / t
d = sqrt(x^2+y^2+z^2)
| Double_t BmnNdetCluster::BetaFirst | ( | ) |
Beta calculated for first fired cell in cluster
beta = v / c
v = d / t
d = sqrt(x^2+y^2+z^2)
Definition at line 203 of file BmnNdetCluster.cxx.
References FirstCell().
Referenced by EnergyTofFirst(), and BmnNdetClusterFinder::FindClusters4().
| Double_t BmnNdetCluster::BetaFirst | ( | ) |
Beta calculated for first fired cell in cluster
beta = v / c
v = d / t
d = sqrt(x^2+y^2+z^2)
| void BmnNdetCluster::Clear | ( | ) |
Clear all cell contents, set fNCells=0.
Definition at line 324 of file BmnNdetCluster.cxx.
| void BmnNdetCluster::Clear | ( | ) |
Clear all cell contents, set fNCells=0.
| Bool_t BmnNdetCluster::ContainsVetoCells | ( | Int_t | veto_layer = 0 | ) |
Function for selection of charged particles. If the particle is charged, it has hit in veto layer.
| veto_layer | Index of veto layer. It depends on enumeration of layers while BmnNdetClusterFinder::Fill() is called. By default veto_layer=0. |
Definition at line 123 of file BmnNdetCluster.cxx.
| Bool_t BmnNdetCluster::ContainsVetoCells | ( | Int_t | veto_layer = 0 | ) |
Function for selection of charged particles. If the particle is charged, it has hit in veto layer.
| veto_layer | Index of veto layer. It depends on enumeration of layers while BmnNdetClusterFinder::Fill() is called. By default veto_layer=0. |
| Double_t BmnNdetCluster::EnergyDeposited | ( | Double_t | threshold = 0.003 | ) |
Energy deposited in cluster [GeV]. Only the cells with energy > threshold are taken into account.
| threshold | Energy threshold [GeV] |
Definition at line 166 of file BmnNdetCluster.cxx.
Referenced by BmnNdetClusterFinder::CalculateNumberOfNeutrons().
| Double_t BmnNdetCluster::EnergyDeposited | ( | Double_t | threshold = 0.003 | ) |
Energy deposited in cluster [GeV]. Only the cells with energy > threshold are taken into account.
| threshold | Energy threshold [GeV] |
| Double_t BmnNdetCluster::EnergyDepositedAverage | ( | Double_t | threshold = 0.003 | ) |
Average deposited energy per cell in cluster [GeV]. Only the cells with energy > threshold are taken into account.
| threshold | Energy threshold [GeV] |
Definition at line 151 of file BmnNdetCluster.cxx.
| Double_t BmnNdetCluster::EnergyDepositedAverage | ( | Double_t | threshold = 0.003 | ) |
Average deposited energy per cell in cluster [GeV]. Only the cells with energy > threshold are taken into account.
| threshold | Energy threshold [GeV] |
| Double_t BmnNdetCluster::EnergyTofAverage | ( | Double_t | mass = 0.939565420 | ) |
Kinetic energy calculated by the time of flight. Distance from target and time of flight are taken as average values in cluster.
| mass | Mass of a particle [GeV/c]. Default value is mass of neutron. |
Definition at line 233 of file BmnNdetCluster.cxx.
| Double_t BmnNdetCluster::EnergyTofAverage | ( | Double_t | mass = 0.939565420 | ) |
Kinetic energy calculated by the time of flight. Distance from target and time of flight are taken as average values in cluster.
| mass | Mass of a particle [GeV/c]. Default value is mass of neutron. |
| Double_t BmnNdetCluster::EnergyTofFastest | ( | Double_t | mass = 0.939565420 | ) |
Kinetic energy calculated by the time of flight. Distance from target and time of flight are taken from the fastest fired cell (with biggest d/t).
| mass | Mass of a particle [GeV/c]. Default value is mass of neutron. |
Definition at line 224 of file BmnNdetCluster.cxx.
References BetaFastest().
| Double_t BmnNdetCluster::EnergyTofFastest | ( | Double_t | mass = 0.939565420 | ) |
Kinetic energy calculated by the time of flight. Distance from target and time of flight are taken from the fastest fired cell (with biggest d/t).
| mass | Mass of a particle [GeV/c]. Default value is mass of neutron. |
| Double_t BmnNdetCluster::EnergyTofFirst | ( | Double_t | mass = 0.939565420 | ) |
Kinetic energy calculated by the time of flight. Distance from target and time of flight are taken from the first fired cell.
| mass | Mass of a particle [GeV/c]. Default value is mass of neutron. |
Definition at line 215 of file BmnNdetCluster.cxx.
References BetaFirst().
| Double_t BmnNdetCluster::EnergyTofFirst | ( | Double_t | mass = 0.939565420 | ) |
Kinetic energy calculated by the time of flight. Distance from target and time of flight are taken from the first fired cell.
| mass | Mass of a particle [GeV/c]. Default value is mass of neutron. |
| Int_t BmnNdetCluster::FastestCell | ( | ) |
Returns index of the fastest fired cell in cluster
Definition at line 190 of file BmnNdetCluster.cxx.
Referenced by BetaFastest().
| Int_t BmnNdetCluster::FastestCell | ( | ) |
Returns index of the fastest fired cell in cluster
| Int_t BmnNdetCluster::FirstCell | ( | ) |
Returns index of the first fired cell in cluster
Definition at line 177 of file BmnNdetCluster.cxx.
Referenced by AngleToDirection(), AngleToTarget(), BetaFirst(), and StartsOnBorder().
| Int_t BmnNdetCluster::FirstCell | ( | ) |
Returns index of the first fired cell in cluster
| vector< Double_t > BmnNdetCluster::GetBeta | ( | ) |
Definition at line 118 of file BmnNdetCluster.cxx.
Referenced by AddCluster(), and BmnNdetClusterFinder::MergeClusters().
| vector< Double_t > BmnNdetCluster::GetBeta | ( | ) |
| vector< Int_t > BmnNdetCluster::GetCells | ( | ) |
Definition at line 82 of file BmnNdetCluster.cxx.
Referenced by AddCluster().
| vector< Int_t > BmnNdetCluster::GetCells | ( | ) |
|
inlinevirtual |
Definition at line 220 of file BmnNdetCluster.h.
|
inlinevirtual |
Definition at line 220 of file BmnNdetCluster.h.
| vector< Int_t > BmnNdetCluster::GetColumns | ( | ) |
Definition at line 86 of file BmnNdetCluster.cxx.
Referenced by AddCluster(), BmnNdetClusterFinder::FindClusters1(), BmnNdetClusterFinder::FindClusters1_2(), BmnNdetClusterFinder::FindClusters2(), BmnNdetClusterFinder::FindClusters2_2(), BmnNdetClusterFinder::FindClusters3(), BmnNdetClusterFinder::FindClusters4(), and BmnNdetClusterFinder::MergeClusters().
| vector< Int_t > BmnNdetCluster::GetColumns | ( | ) |
| vector< Double_t > BmnNdetCluster::GetEdep | ( | ) |
Definition at line 114 of file BmnNdetCluster.cxx.
Referenced by AddCluster(), and BmnNdetClusterFinder::MergeClusters().
| vector< Double_t > BmnNdetCluster::GetEdep | ( | ) |
| vector< Int_t > BmnNdetCluster::GetLayers | ( | ) |
Definition at line 94 of file BmnNdetCluster.cxx.
Referenced by AddCluster(), BmnNdetClusterFinder::FindClusters1(), BmnNdetClusterFinder::FindClusters1_2(), BmnNdetClusterFinder::FindClusters2(), BmnNdetClusterFinder::FindClusters2_2(), BmnNdetClusterFinder::FindClusters3(), BmnNdetClusterFinder::FindClusters4(), and BmnNdetClusterFinder::MergeClusters().
| vector< Int_t > BmnNdetCluster::GetLayers | ( | ) |
| Int_t BmnNdetCluster::GetNCells | ( | ) |
Definition at line 67 of file BmnNdetCluster.cxx.
Referenced by AddCluster(), BmnNdetClusterFinder::CalculateNumberOfNeutrons(), BmnNdetClusterFinder::MergeClusters(), and BmnNdetClusterFinder::SelectNeutrons().
| Int_t BmnNdetCluster::GetNCells | ( | ) |
| Int_t BmnNdetCluster::GetNCells | ( | Double_t | threshold | ) |
Number of cells in cluster with deposited energy > threshold
| threshold | Energy threshold [GeV] |
Definition at line 72 of file BmnNdetCluster.cxx.
| Int_t BmnNdetCluster::GetNCells | ( | Double_t | threshold | ) |
Number of cells in cluster with deposited energy > threshold
| threshold | Energy threshold [GeV] |
| vector< Int_t > BmnNdetCluster::GetRows | ( | ) |
Definition at line 90 of file BmnNdetCluster.cxx.
Referenced by AddCluster(), BmnNdetClusterFinder::FindClusters1(), BmnNdetClusterFinder::FindClusters1_2(), BmnNdetClusterFinder::FindClusters2(), BmnNdetClusterFinder::FindClusters2_2(), BmnNdetClusterFinder::FindClusters3(), BmnNdetClusterFinder::FindClusters4(), and BmnNdetClusterFinder::MergeClusters().
| vector< Int_t > BmnNdetCluster::GetRows | ( | ) |
| vector< Double_t > BmnNdetCluster::GetTime | ( | ) |
Definition at line 110 of file BmnNdetCluster.cxx.
Referenced by AddCluster(), BmnNdetClusterFinder::FindClusters4(), and BmnNdetClusterFinder::MergeClusters().
| vector< Double_t > BmnNdetCluster::GetTime | ( | ) |
| vector< Double_t > BmnNdetCluster::GetX | ( | ) |
Definition at line 98 of file BmnNdetCluster.cxx.
Referenced by AddCluster(), BmnNdetClusterFinder::FindClusters4(), and BmnNdetClusterFinder::MergeClusters().
| vector< Double_t > BmnNdetCluster::GetX | ( | ) |
| vector< Double_t > BmnNdetCluster::GetY | ( | ) |
Definition at line 102 of file BmnNdetCluster.cxx.
Referenced by AddCluster(), BmnNdetClusterFinder::FindClusters4(), and BmnNdetClusterFinder::MergeClusters().
| vector< Double_t > BmnNdetCluster::GetY | ( | ) |
| vector< Double_t > BmnNdetCluster::GetZ | ( | ) |
Definition at line 106 of file BmnNdetCluster.cxx.
Referenced by AddCluster(), BmnNdetClusterFinder::FindClusters4(), and BmnNdetClusterFinder::MergeClusters().
| vector< Double_t > BmnNdetCluster::GetZ | ( | ) |
|
virtual |
|
virtual |
Print.
| Bool_t BmnNdetCluster::StartsOnBorder | ( | Int_t | size_x = 11, |
| Int_t | size_y = 11, |
||
| Int_t | size_z = 8 |
||
| ) |
Function for selection of particles coming from side. If the first hit in cluster is a cell on side border of the detector, it's probably secondary scattered charged particle.
| size_x | number of cells along x axis. It is assumed, enumeration of cells starts from 0. |
| size_y | number of cells along y axis. It is assumed, enumeration of cells starts from 0. |
| size_z | number of cells along z axis. It is assumed, enumeration of cells starts from 0. |
Definition at line 132 of file BmnNdetCluster.cxx.
References FirstCell().
Referenced by BmnNdetClusterFinder::SelectNeutrons().
| Bool_t BmnNdetCluster::StartsOnBorder | ( | Int_t | size_x = 11, |
| Int_t | size_y = 11, |
||
| Int_t | size_z = 8 |
||
| ) |
Function for selection of particles coming from side. If the first hit in cluster is a cell on side border of the detector, it's probably secondary scattered charged particle.
| size_x | number of cells along x axis. It is assumed, enumeration of cells starts from 0. |
| size_y | number of cells along y axis. It is assumed, enumeration of cells starts from 0. |
| size_z | number of cells along z axis. It is assumed, enumeration of cells starts from 0. |