BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnNdetCluster Class Reference

Class for description of recognized cluster in Bmn Ndet detector. More...

#include <BmnNdetCluster.h>

Inheritance diagram for BmnNdetCluster:
Collaboration diagram for BmnNdetCluster:

Public Member Functions

 BmnNdetCluster ()
 Default constructor.
 ~BmnNdetCluster ()
 Default destructor.
 BmnNdetCluster (size_t size)
 Сonstructor.
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.)
 Add cell to the cluster.
Int_t GetNCells ()
Int_t GetNCells (Double_t threshold)
 Number of cells in cluster with deposited energy > 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)
 Function for selection of charged particles.
Bool_t StartsOnBorder (Int_t size_x=11, Int_t size_y=11, Int_t size_z=8)
 Function for selection of particles coming from side.
Double_t EnergyDepositedAverage (Double_t threshold=0.003)
 Average deposited energy per cell in cluster [GeV].
Double_t EnergyDeposited (Double_t threshold=0.003)
 Energy deposited in cluster [GeV].
Int_t FirstCell ()
 Returns index of the first fired cell in cluster.
Int_t FastestCell ()
 Returns index of the fastest fired cell in cluster.
Double_t BetaFirst ()
 Beta calculated for first fired cell in cluster
beta = v / c
v = d / t
d = sqrt(x^2+y^2+z^2)
.
Double_t 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 EnergyTofFirst (Double_t mass=0.939565420)
 Kinetic energy calculated by the time of flight.
Double_t EnergyTofFastest (Double_t mass=0.939565420)
 Kinetic energy calculated by the time of flight.
Double_t EnergyTofAverage (Double_t mass=0.939565420)
 Kinetic energy calculated by the time of flight.
Double_t 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 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.
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)
 Сonstructor.
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.)
 Add cell to the cluster.
Int_t GetNCells ()
Int_t GetNCells (Double_t threshold)
 Number of cells in cluster with deposited energy > 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)
 Function for selection of charged particles.
Bool_t StartsOnBorder (Int_t size_x=11, Int_t size_y=11, Int_t size_z=8)
 Function for selection of particles coming from side.
Double_t EnergyDepositedAverage (Double_t threshold=0.003)
 Average deposited energy per cell in cluster [GeV].
Double_t EnergyDeposited (Double_t threshold=0.003)
 Energy deposited in cluster [GeV].
Int_t FirstCell ()
 Returns index of the first fired cell in cluster.
Int_t FastestCell ()
 Returns index of the fastest fired cell in cluster.
Double_t BetaFirst ()
 Beta calculated for first fired cell in cluster
beta = v / c
v = d / t
d = sqrt(x^2+y^2+z^2)
.
Double_t 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 EnergyTofFirst (Double_t mass=0.939565420)
 Kinetic energy calculated by the time of flight.
Double_t EnergyTofFastest (Double_t mass=0.939565420)
 Kinetic energy calculated by the time of flight.
Double_t EnergyTofAverage (Double_t mass=0.939565420)
 Kinetic energy calculated by the time of flight.
Double_t 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 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.
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 ()
Public Member Functions inherited from TObject
 TObject ()
 TObject (const TObject &object)
virtual ~TObject ()
void AbstractMethod (const char *method) const
virtual void AppendPad (Option_t *option="")
virtual void Browse (TBrowser *b)
ULong_t CheckedHash ()
virtual const char * ClassName () const
virtual void Clear (Option_t *="")
virtual TObject * Clone (const char *newname="") const
virtual Int_t Compare (const TObject *obj) const
virtual void Copy (TObject &object) const
virtual void Delete (Option_t *option="")
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
virtual void Draw (Option_t *option="")
virtual void DrawClass () const
virtual TObject * DrawClone (Option_t *option="") const
virtual void Dump () const
virtual void Error (const char *method, const char *msgfmt,...) const
virtual void Execute (const char *method, const char *params, Int_t *error=nullptr)
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=nullptr)
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
virtual void Fatal (const char *method, const char *msgfmt,...) const
virtual TObject * FindObject (const char *name) const
virtual TObject * FindObject (const TObject *obj) const
virtual Option_t * GetDrawOption () const
virtual const char * GetIconName () const
virtual const char * GetName () const
virtual char * GetObjectInfo (Int_t px, Int_t py) const
virtual Option_t * GetOption () const
virtual const char * GetTitle () const
virtual UInt_t GetUniqueID () const
virtual Bool_t HandleTimer (TTimer *timer)
virtual ULong_t Hash () const
Bool_t HasInconsistentHash () const
virtual void Info (const char *method, const char *msgfmt,...) const
virtual Bool_t InheritsFrom (const char *classname) const
virtual Bool_t InheritsFrom (const TClass *cl) const
virtual void Inspect () const
void InvertBit (UInt_t f)
virtual TClass * IsA () const
Bool_t IsDestructed () const
virtual Bool_t IsEqual (const TObject *obj) const
virtual Bool_t IsFolder () const
R__ALWAYS_INLINE Bool_t IsOnHeap () const
virtual Bool_t IsSortable () const
R__ALWAYS_INLINE Bool_t IsZombie () const
virtual void ls (Option_t *option="") const
void MayNotUse (const char *method) const
virtual Bool_t Notify ()
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
void operator delete (void *ptr)
void operator delete (void *ptr, void *vp)
void operator delete[] (void *ptr)
void operator delete[] (void *ptr, void *vp)
void * operator new (size_t sz)
void * operator new (size_t sz, void *vp)
void * operator new[] (size_t sz)
void * operator new[] (size_t sz, void *vp)
TObject & operator= (const TObject &rhs)
virtual void Paint (Option_t *option="")
virtual void Pop ()
virtual void Print (Option_t *option="") const
virtual Int_t Read (const char *name)
virtual void RecursiveRemove (TObject *obj)
void ResetBit (UInt_t f)
virtual void SaveAs (const char *filename="", Option_t *option="") const
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
void SetBit (UInt_t f)
void SetBit (UInt_t f, Bool_t set)
virtual void SetDrawOption (Option_t *option="")
virtual void SetUniqueID (UInt_t uid)
virtual void Streamer (TBuffer &)
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
virtual void SysError (const char *method, const char *msgfmt,...) const
R__ALWAYS_INLINE Bool_t TestBit (UInt_t f) const
Int_t TestBits (UInt_t f) const
virtual void UseCurrentStyle ()
virtual void Warning (const char *method, const char *msgfmt,...) const
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0)
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) const

Private Attributes

Int_t fNCells
 number of cells in this cluster
vector< Int_t > fCell
 Index of a cell in BmnNdetCell array in BmnNdetEvent object.
vector< Int_t > fColumn
 Column number of a cell. It must be proportional to X coordinate in self coordinate system of a detector.
vector< Int_t > fRow
 Row number of a cell. It must be proportional to Y coordinate in self coordinate system of a detector.
vector< Int_t > fLayer
 Layer number of a cell. It must be proportional to Z coordinate in self coordinate system of a detector.
vector< Double_t > fXcoord
 X coordinate [cm].
vector< Double_t > fYcoord
 Y coordinate [cm].
vector< Double_t > fZcoord
 Z coordinate [cm].
vector< Double_t > fTime
 Time of actuation of the cell [ns].
vector< Double_t > fEdep
 Energy deposited in the cell [GeV].
vector< Double_t > fBeta
 beta=v/c calculated from the time of flight to this cell

Additional Inherited Members

Public Types inherited from TObject
enum  EDeprecatedStatusBits
enum  EStatusBits
Static Public Member Functions inherited from TObject
static TClass * Class ()
static const char * Class_Name ()
static constexpr Version_t Class_Version ()
static const char * DeclFileName ()
static Longptr_t GetDtorOnly ()
static Bool_t GetObjectStat ()
static void SetDtorOnly (void *obj)
static void SetObjectStat (Bool_t stat)
Public Attributes inherited from TObject
 kIsOnHeap
 kNotDeleted
 kZombie
 kInconsistent
 kBitMask
 kSingleKey
 kOverwrite
 kWriteDelete
 kObjInCanvas
 kCanDelete
 kMustCleanup
 kIsReferenced
 kHasUUID
 kCannotPick
 kNoContextMenu
 kInvalidObject
Protected Member Functions inherited from TObject
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
void MakeZombie ()
Static Protected Member Functions inherited from TObject
static void SavePrimitiveConstructor (std::ostream &out, TClass *cl, const char *variable_name, const char *constructor_agrs="", Bool_t empty_line=kTRUE)
static void SavePrimitiveDraw (std::ostream &out, const char *variable_name, Option_t *option=nullptr)
static TString SavePrimitiveVector (std::ostream &out, const char *prefix, Int_t len, Double_t *arr, Bool_t empty_line=kFALSE)
Protected Attributes inherited from TObject
 kOnlyPrepStep

Detailed Description

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.

Version
1.0

Definition at line 25 of file BmnNdetCluster.h.

Constructor & Destructor Documentation

◆ BmnNdetCluster() [1/8]

BmnNdetCluster::BmnNdetCluster ( )

Definition at line 12 of file BmnNdetCluster.cxx.

References TObject::TObject(), and fNCells.

Referenced by BmnNdetCluster(), BmnNdetCluster(), and AddCluster().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~BmnNdetCluster() [1/2]

BmnNdetCluster::~BmnNdetCluster ( )

Definition at line 18 of file BmnNdetCluster.cxx.

◆ BmnNdetCluster() [2/8]

BmnNdetCluster::BmnNdetCluster ( size_t size)
Parameters
sizeexpected number of cells in cluster

Definition at line 20 of file BmnNdetCluster.cxx.

References TObject::TObject(), fBeta, fCell, fColumn, fEdep, fLayer, fNCells, fRow, fTime, fXcoord, fYcoord, and fZcoord.

Here is the call graph for this function:

◆ BmnNdetCluster() [3/8]

BmnNdetCluster::BmnNdetCluster ( const BmnNdetCluster & other)

Definition at line 340 of file BmnNdetCluster.cxx.

References BmnNdetCluster(), and TObject::TObject().

Here is the call graph for this function:

◆ BmnNdetCluster() [4/8]

BmnNdetCluster::BmnNdetCluster ( BmnNdetCluster && other)
noexcept

Definition at line 344 of file BmnNdetCluster.cxx.

References BmnNdetCluster(), TObject::TObject(), and std::noexcept().

Here is the call graph for this function:

◆ BmnNdetCluster() [5/8]

BmnNdetCluster::BmnNdetCluster ( )

◆ ~BmnNdetCluster() [2/2]

BmnNdetCluster::~BmnNdetCluster ( )

◆ BmnNdetCluster() [6/8]

BmnNdetCluster::BmnNdetCluster ( size_t size)
Parameters
sizeexpected number of cells in cluster

◆ BmnNdetCluster() [7/8]

BmnNdetCluster::BmnNdetCluster ( const BmnNdetCluster & )

References BmnNdetCluster().

Here is the call graph for this function:

◆ BmnNdetCluster() [8/8]

BmnNdetCluster::BmnNdetCluster ( BmnNdetCluster && )
noexcept

References BmnNdetCluster(), and std::noexcept().

Here is the call graph for this function:

Member Function Documentation

◆ AddCell() [1/2]

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. )
Parameters
cellIndex of a cell in BmnNdetCell array in BmnNdetEvent object.
columnColumn index of a cell
rowRow index of a cell
layerLayer index of a cell
xX coordinate of a cell [cm]
yY coordinate of a cell [cm]
zZ coordinate of a cell [cm]
tTime of actuation of the cell [ns]
e_depDeposited energy in scintillator of a cell [GeV]
betaBeta 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.

References TMath::C(), fBeta, fCell, fColumn, fEdep, fLayer, fNCells, fRow, fTime, fXcoord, fYcoord, fZcoord, TMath::Sq(), TMath::Sqrt(), x, y, and z.

Referenced by BmnNdetClusterFinder::AddCellToCluster(), AddCluster(), and BmnNdetClusterFinder::MergeClusters().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddCell() [2/2]

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. )
Parameters
cellIndex of a cell in BmnNdetCell array in BmnNdetEvent object.
columnColumn index of a cell
rowRow index of a cell
layerLayer index of a cell
xX coordinate of a cell [cm]
yY coordinate of a cell [cm]
zZ coordinate of a cell [cm]
tTime of actuation of the cell [ns]
e_depDeposited energy in scintillator of a cell [GeV]
betaBeta calculated from distance to target and time of flight. If beta < 0 it is calculated while filling from x,y,z,t.

References x, y, and z.

◆ AddCluster() [1/2]

BmnNdetCluster * BmnNdetCluster::AddCluster ( BmnNdetCluster * other)

Definition at line 313 of file BmnNdetCluster.cxx.

References BmnNdetCluster(), AddCell(), GetBeta(), GetCells(), GetColumns(), GetEdep(), GetLayers(), GetNCells(), GetRows(), GetTime(), GetX(), GetY(), and GetZ().

Here is the call graph for this function:

◆ AddCluster() [2/2]

BmnNdetCluster * BmnNdetCluster::AddCluster ( BmnNdetCluster * other)

References BmnNdetCluster().

Here is the call graph for this function:

◆ AngleToDirection() [1/2]

Double_t BmnNdetCluster::AngleToDirection ( Double_t x = 0,
Double_t y = 0,
Double_t z = 1 )
Parameters
xX coordinate of vector
yY coordinate of vector
zZ coordinate of vector
Returns
angle in degrees in the range 0 - 180

Definition at line 284 of file BmnNdetCluster.cxx.

References TMath::ACos(), fEdep, FirstCell(), fNCells, fXcoord, fYcoord, fZcoord, TMath::RadToDeg(), TMath::Sq(), TMath::Sqrt(), x, y, and z.

Here is the call graph for this function:

◆ AngleToDirection() [2/2]

Double_t BmnNdetCluster::AngleToDirection ( Double_t x = 0,
Double_t y = 0,
Double_t z = 1 )
Parameters
xX coordinate of vector
yY coordinate of vector
zZ coordinate of vector
Returns
angle in degrees in the range 0 - 180

References x, y, and z.

◆ AngleToTarget() [1/2]

Double_t BmnNdetCluster::AngleToTarget ( )
Returns
angle in degrees in the range 0 - 180

Definition at line 255 of file BmnNdetCluster.cxx.

References TMath::ACos(), fEdep, FirstCell(), fNCells, fXcoord, fYcoord, fZcoord, TMath::RadToDeg(), TMath::Sq(), TMath::Sqrt(), x, y, and z.

Referenced by BmnNdetClusterFinder::SelectNeutrons().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AngleToTarget() [2/2]

Double_t BmnNdetCluster::AngleToTarget ( )
Returns
angle in degrees in the range 0 - 180

◆ BetaFastest() [1/2]

Double_t BmnNdetCluster::BetaFastest ( )
Returns
v/c. In case of negative time return -1.
NOTE: In case beta>1 return beta

Definition at line 209 of file BmnNdetCluster.cxx.

References FastestCell(), and fBeta.

Referenced by EnergyTofFastest().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ BetaFastest() [2/2]

Double_t BmnNdetCluster::BetaFastest ( )
Returns
v/c. In case of negative time return -1.
NOTE: In case beta>1 return beta

◆ BetaFirst() [1/2]

Double_t BmnNdetCluster::BetaFirst ( )
Returns
v/c. In case of negative time return -1.
NOTE: In case beta>1 return beta

Definition at line 203 of file BmnNdetCluster.cxx.

References fBeta, and FirstCell().

Referenced by EnergyTofFirst(), and BmnNdetClusterFinder::FindClusters4().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ BetaFirst() [2/2]

Double_t BmnNdetCluster::BetaFirst ( )
Returns
v/c. In case of negative time return -1.
NOTE: In case beta>1 return beta

◆ Clear() [1/2]

void BmnNdetCluster::Clear ( )

Definition at line 324 of file BmnNdetCluster.cxx.

References fBeta, fCell, fColumn, fEdep, fLayer, fNCells, fRow, fTime, fXcoord, fYcoord, and fZcoord.

Referenced by Clear().

Here is the caller graph for this function:

◆ Clear() [2/2]

void BmnNdetCluster::Clear ( )

References Clear().

Here is the call graph for this function:

◆ ContainsVetoCells() [1/2]

Bool_t BmnNdetCluster::ContainsVetoCells ( Int_t veto_layer = 0)

If the particle is charged, it has hit in veto layer.

Parameters
veto_layerIndex of veto layer. It depends on enumeration of layers while BmnNdetClusterFinder::Fill() is called. By default veto_layer=0.
Returns
kTRUE if the cluster contains any cells of veto layer

Definition at line 123 of file BmnNdetCluster.cxx.

References fLayer, and fNCells.

◆ ContainsVetoCells() [2/2]

Bool_t BmnNdetCluster::ContainsVetoCells ( Int_t veto_layer = 0)

If the particle is charged, it has hit in veto layer.

Parameters
veto_layerIndex of veto layer. It depends on enumeration of layers while BmnNdetClusterFinder::Fill() is called. By default veto_layer=0.
Returns
kTRUE if the cluster contains any cells of veto layer

◆ EnergyDeposited() [1/2]

Double_t BmnNdetCluster::EnergyDeposited ( Double_t threshold = 0.003)

Only the cells with energy > threshold are taken into account.

Parameters
thresholdEnergy threshold [GeV]
Returns
deposited energy [GeV]. The expected value for neutrons is nCells * 0.01 GeV.

Definition at line 166 of file BmnNdetCluster.cxx.

References fEdep, and fNCells.

Referenced by BmnNdetClusterFinder::CalculateNumberOfNeutrons().

Here is the caller graph for this function:

◆ EnergyDeposited() [2/2]

Double_t BmnNdetCluster::EnergyDeposited ( Double_t threshold = 0.003)

Only the cells with energy > threshold are taken into account.

Parameters
thresholdEnergy threshold [GeV]
Returns
deposited energy [GeV]. The expected value for neutrons is nCells * 0.01 GeV.

◆ EnergyDepositedAverage() [1/2]

Double_t BmnNdetCluster::EnergyDepositedAverage ( Double_t threshold = 0.003)

Only the cells with energy > threshold are taken into account.

Parameters
thresholdEnergy threshold [GeV]
Returns
Average deposited energy per cell [GeV]. The expected value for neutrons is 0.01 GeV.

Definition at line 151 of file BmnNdetCluster.cxx.

References fEdep, and fNCells.

◆ EnergyDepositedAverage() [2/2]

Double_t BmnNdetCluster::EnergyDepositedAverage ( Double_t threshold = 0.003)

Only the cells with energy > threshold are taken into account.

Parameters
thresholdEnergy threshold [GeV]
Returns
Average deposited energy per cell [GeV]. The expected value for neutrons is 0.01 GeV.

◆ EnergyTofAverage() [1/2]

Double_t BmnNdetCluster::EnergyTofAverage ( Double_t mass = 0.939565420)

Distance from target and time of flight are taken as average values in cluster.

Parameters
massMass of a particle [GeV/c]. Default value is mass of neutron.
Returns
Kinetic energy [GeV]

Definition at line 233 of file BmnNdetCluster.cxx.

References TMath::C(), fNCells, fTime, fXcoord, fYcoord, fZcoord, TMath::Sq(), TMath::Sqrt(), x, y, and z.

Here is the call graph for this function:

◆ EnergyTofAverage() [2/2]

Double_t BmnNdetCluster::EnergyTofAverage ( Double_t mass = 0.939565420)

Distance from target and time of flight are taken as average values in cluster.

Parameters
massMass of a particle [GeV/c]. Default value is mass of neutron.
Returns
Kinetic energy [GeV]

◆ EnergyTofFastest() [1/2]

Double_t BmnNdetCluster::EnergyTofFastest ( Double_t mass = 0.939565420)

Distance from target and time of flight are taken from the fastest fired cell (with biggest d/t).

Parameters
massMass of a particle [GeV/c]. Default value is mass of neutron.
Returns
Kinetic energy [GeV]

Definition at line 224 of file BmnNdetCluster.cxx.

References BetaFastest(), TMath::Sq(), and TMath::Sqrt().

Here is the call graph for this function:

◆ EnergyTofFastest() [2/2]

Double_t BmnNdetCluster::EnergyTofFastest ( Double_t mass = 0.939565420)

Distance from target and time of flight are taken from the fastest fired cell (with biggest d/t).

Parameters
massMass of a particle [GeV/c]. Default value is mass of neutron.
Returns
Kinetic energy [GeV]

◆ EnergyTofFirst() [1/2]

Double_t BmnNdetCluster::EnergyTofFirst ( Double_t mass = 0.939565420)

Distance from target and time of flight are taken from the first fired cell.

Parameters
massMass of a particle [GeV/c]. Default value is mass of neutron.
Returns
Kinetic energy [GeV]

Definition at line 215 of file BmnNdetCluster.cxx.

References BetaFirst(), TMath::Sq(), and TMath::Sqrt().

Here is the call graph for this function:

◆ EnergyTofFirst() [2/2]

Double_t BmnNdetCluster::EnergyTofFirst ( Double_t mass = 0.939565420)

Distance from target and time of flight are taken from the first fired cell.

Parameters
massMass of a particle [GeV/c]. Default value is mass of neutron.
Returns
Kinetic energy [GeV]

◆ FastestCell() [1/2]

Int_t BmnNdetCluster::FastestCell ( )

Definition at line 190 of file BmnNdetCluster.cxx.

References fBeta, and fNCells.

Referenced by BetaFastest().

Here is the caller graph for this function:

◆ FastestCell() [2/2]

Int_t BmnNdetCluster::FastestCell ( )

◆ FirstCell() [1/2]

Int_t BmnNdetCluster::FirstCell ( )

Definition at line 177 of file BmnNdetCluster.cxx.

References fNCells, and fTime.

Referenced by AngleToDirection(), AngleToTarget(), BetaFirst(), and StartsOnBorder().

Here is the caller graph for this function:

◆ FirstCell() [2/2]

Int_t BmnNdetCluster::FirstCell ( )

◆ GetBeta() [1/2]

vector< Double_t > BmnNdetCluster::GetBeta ( )
Returns
vector of beta calculated for every cell

Definition at line 118 of file BmnNdetCluster.cxx.

References fBeta.

Referenced by AddCluster(), and BmnNdetClusterFinder::MergeClusters().

Here is the caller graph for this function:

◆ GetBeta() [2/2]

vector< Double_t > BmnNdetCluster::GetBeta ( )
Returns
vector of beta calculated for every cell

◆ GetCells() [1/2]

vector< Int_t > BmnNdetCluster::GetCells ( )
Returns
vector of cell indices

Definition at line 82 of file BmnNdetCluster.cxx.

References fCell.

Referenced by AddCluster().

Here is the caller graph for this function:

◆ GetCells() [2/2]

vector< Int_t > BmnNdetCluster::GetCells ( )
Returns
vector of cell indices

◆ GetClassName() [1/2]

virtual const char * BmnNdetCluster::GetClassName ( )
inlinevirtual

Definition at line 220 of file BmnNdetCluster.h.

References GetClassName().

Referenced by GetClassName().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetClassName() [2/2]

virtual const char * BmnNdetCluster::GetClassName ( )
inlinevirtual

Definition at line 220 of file BmnNdetCluster.h.

References GetClassName().

Here is the call graph for this function:

◆ GetColumns() [1/2]

vector< Int_t > BmnNdetCluster::GetColumns ( )
Returns
vector of column indices of cells

Definition at line 86 of file BmnNdetCluster.cxx.

References fColumn.

Referenced by AddCluster(), BmnNdetClusterFinder::FindClusters1(), BmnNdetClusterFinder::FindClusters1_2(), BmnNdetClusterFinder::FindClusters2(), BmnNdetClusterFinder::FindClusters2_2(), BmnNdetClusterFinder::FindClusters3(), BmnNdetClusterFinder::FindClusters4(), and BmnNdetClusterFinder::MergeClusters().

Here is the caller graph for this function:

◆ GetColumns() [2/2]

vector< Int_t > BmnNdetCluster::GetColumns ( )
Returns
vector of column indices of cells

◆ GetEdep() [1/2]

vector< Double_t > BmnNdetCluster::GetEdep ( )
Returns
vector of energies deposited in cells [GeV]

Definition at line 114 of file BmnNdetCluster.cxx.

References fEdep.

Referenced by AddCluster(), and BmnNdetClusterFinder::MergeClusters().

Here is the caller graph for this function:

◆ GetEdep() [2/2]

vector< Double_t > BmnNdetCluster::GetEdep ( )
Returns
vector of energies deposited in cells [GeV]

◆ GetLayers() [1/2]

vector< Int_t > BmnNdetCluster::GetLayers ( )
Returns
vector of layer indices of cells

Definition at line 94 of file BmnNdetCluster.cxx.

References fLayer.

Referenced by AddCluster(), BmnNdetClusterFinder::FindClusters1(), BmnNdetClusterFinder::FindClusters1_2(), BmnNdetClusterFinder::FindClusters2(), BmnNdetClusterFinder::FindClusters2_2(), BmnNdetClusterFinder::FindClusters3(), BmnNdetClusterFinder::FindClusters4(), and BmnNdetClusterFinder::MergeClusters().

Here is the caller graph for this function:

◆ GetLayers() [2/2]

vector< Int_t > BmnNdetCluster::GetLayers ( )
Returns
vector of layer indices of cells

◆ GetNCells() [1/4]

Int_t BmnNdetCluster::GetNCells ( )
Returns
Number of cells in cluster

Definition at line 67 of file BmnNdetCluster.cxx.

References fNCells.

Referenced by AddCluster(), BmnNdetClusterFinder::CalculateNumberOfNeutrons(), BmnNdetClusterFinder::MergeClusters(), and BmnNdetClusterFinder::SelectNeutrons().

Here is the caller graph for this function:

◆ GetNCells() [2/4]

Int_t BmnNdetCluster::GetNCells ( )
Returns
Number of cells in cluster

◆ GetNCells() [3/4]

Int_t BmnNdetCluster::GetNCells ( Double_t threshold)
Parameters
thresholdEnergy threshold [GeV]
Returns
Number of cells in cluster with energy higher than threshold

Definition at line 72 of file BmnNdetCluster.cxx.

References fEdep, and fNCells.

◆ GetNCells() [4/4]

Int_t BmnNdetCluster::GetNCells ( Double_t threshold)
Parameters
thresholdEnergy threshold [GeV]
Returns
Number of cells in cluster with energy higher than threshold

◆ GetRows() [1/2]

vector< Int_t > BmnNdetCluster::GetRows ( )
Returns
vector of row indices of cells

Definition at line 90 of file BmnNdetCluster.cxx.

References fRow.

Referenced by AddCluster(), BmnNdetClusterFinder::FindClusters1(), BmnNdetClusterFinder::FindClusters1_2(), BmnNdetClusterFinder::FindClusters2(), BmnNdetClusterFinder::FindClusters2_2(), BmnNdetClusterFinder::FindClusters3(), BmnNdetClusterFinder::FindClusters4(), and BmnNdetClusterFinder::MergeClusters().

Here is the caller graph for this function:

◆ GetRows() [2/2]

vector< Int_t > BmnNdetCluster::GetRows ( )
Returns
vector of row indices of cells

◆ GetTime() [1/2]

vector< Double_t > BmnNdetCluster::GetTime ( )
Returns
vector of time of actuation of cells [ns]

Definition at line 110 of file BmnNdetCluster.cxx.

References fTime.

Referenced by AddCluster(), BmnNdetClusterFinder::FindClusters4(), and BmnNdetClusterFinder::MergeClusters().

Here is the caller graph for this function:

◆ GetTime() [2/2]

vector< Double_t > BmnNdetCluster::GetTime ( )
Returns
vector of time of actuation of cells [ns]

◆ GetX() [1/2]

vector< Double_t > BmnNdetCluster::GetX ( )
Returns
vector of X coordinates of cells [cm]

Definition at line 98 of file BmnNdetCluster.cxx.

References fXcoord.

Referenced by AddCluster(), BmnNdetClusterFinder::FindClusters4(), and BmnNdetClusterFinder::MergeClusters().

Here is the caller graph for this function:

◆ GetX() [2/2]

vector< Double_t > BmnNdetCluster::GetX ( )
Returns
vector of X coordinates of cells [cm]

◆ GetY() [1/2]

vector< Double_t > BmnNdetCluster::GetY ( )
Returns
vector of Y coordinates of cells [cm]

Definition at line 102 of file BmnNdetCluster.cxx.

References fYcoord.

Referenced by AddCluster(), BmnNdetClusterFinder::FindClusters4(), and BmnNdetClusterFinder::MergeClusters().

Here is the caller graph for this function:

◆ GetY() [2/2]

vector< Double_t > BmnNdetCluster::GetY ( )
Returns
vector of Y coordinates of cells [cm]

◆ GetZ() [1/2]

vector< Double_t > BmnNdetCluster::GetZ ( )
Returns
vector of Z coordinates of cells [cm]

Definition at line 106 of file BmnNdetCluster.cxx.

References fZcoord.

Referenced by AddCluster(), BmnNdetClusterFinder::FindClusters4(), and BmnNdetClusterFinder::MergeClusters().

Here is the caller graph for this function:

◆ GetZ() [2/2]

vector< Double_t > BmnNdetCluster::GetZ ( )
Returns
vector of Z coordinates of cells [cm]

◆ Print() [1/2]

void BmnNdetCluster::Print ( const Option_t * option = "")
virtual

Definition at line 348 of file BmnNdetCluster.cxx.

References fBeta, fCell, fColumn, fEdep, fLayer, fRow, fTime, fXcoord, fYcoord, fZcoord, and i.

Referenced by Print().

Here is the caller graph for this function:

◆ Print() [2/2]

virtual void BmnNdetCluster::Print ( const Option_t * option = "")
virtual

References Print().

Here is the call graph for this function:

◆ StartsOnBorder() [1/2]

Bool_t BmnNdetCluster::StartsOnBorder ( Int_t size_x = 11,
Int_t size_y = 11,
Int_t size_z = 8 )

If the first hit in cluster is a cell on side border of the detector, it's probably secondary scattered charged particle.

Parameters
size_xnumber of cells along x axis. It is assumed, enumeration of cells starts from 0.
size_ynumber of cells along y axis. It is assumed, enumeration of cells starts from 0.
size_znumber of cells along z axis. It is assumed, enumeration of cells starts from 0.
Returns
kTRUE if the first hit in cluster is a cell on border.

Definition at line 132 of file BmnNdetCluster.cxx.

References fColumn, FirstCell(), fLayer, and fRow.

Referenced by BmnNdetClusterFinder::SelectNeutrons().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ StartsOnBorder() [2/2]

Bool_t BmnNdetCluster::StartsOnBorder ( Int_t size_x = 11,
Int_t size_y = 11,
Int_t size_z = 8 )

If the first hit in cluster is a cell on side border of the detector, it's probably secondary scattered charged particle.

Parameters
size_xnumber of cells along x axis. It is assumed, enumeration of cells starts from 0.
size_ynumber of cells along y axis. It is assumed, enumeration of cells starts from 0.
size_znumber of cells along z axis. It is assumed, enumeration of cells starts from 0.
Returns
kTRUE if the first hit in cluster is a cell on border.

Member Data Documentation

◆ fBeta

vector< Double_t > BmnNdetCluster::fBeta
private

◆ fCell

vector< Int_t > BmnNdetCluster::fCell
private

Definition at line 31 of file BmnNdetCluster.h.

Referenced by BmnNdetCluster(), AddCell(), Clear(), GetCells(), and Print().

◆ fColumn

vector< Int_t > BmnNdetCluster::fColumn
private

Definition at line 33 of file BmnNdetCluster.h.

Referenced by BmnNdetCluster(), AddCell(), Clear(), GetColumns(), Print(), and StartsOnBorder().

◆ fEdep

vector< Double_t > BmnNdetCluster::fEdep
private

◆ fLayer

vector< Int_t > BmnNdetCluster::fLayer
private

◆ fNCells

◆ fRow

vector< Int_t > BmnNdetCluster::fRow
private

Definition at line 35 of file BmnNdetCluster.h.

Referenced by BmnNdetCluster(), AddCell(), Clear(), GetRows(), Print(), and StartsOnBorder().

◆ fTime

vector< Double_t > BmnNdetCluster::fTime
private

◆ fXcoord

vector< Double_t > BmnNdetCluster::fXcoord
private

◆ fYcoord

vector< Double_t > BmnNdetCluster::fYcoord
private

◆ fZcoord

vector< Double_t > BmnNdetCluster::fZcoord
private

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