BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnScWallCell.h
Go to the documentation of this file.
1/** \file BmnScWallCell.h
2 ** \author Valerii Troshin <valerytrosh@gmail.com>
3 ** \date 09.09.2022
4 ** \author Nikolay Karpushkin <karpushkin@inr.ru>
5 ** \date 27.06.2023
6 **/
7
8/** \class BmnScWallCell
9 ** \brief Class for Bmn ScWall module data container in event
10 ** \version 0.1
11 **/
12
13#ifndef BMNSCWALLCELL_H
14#define BMNSCWALLCELL_H
15
16#include <FairHit.h>
17#include <TClonesArray.h>
18#include <array>
19#include <numeric>
20
21class BmnScWallCell : public FairHit
22{
23
24 public:
25 /** @brief Default constructor.
26 **/
28
29 /** @brief Constructor to use.
30 **/
31 BmnScWallCell(int CellId, float CellSignal, TVector3 posHit, TVector3 posHitErr, int pointIndx);
32
33 /** Copy constructor **/
35
36 /** Move constructor **/
38
39 /** Assignment operator **/
40 BmnScWallCell& operator=(const BmnScWallCell&);
41
42 /** Move Assignment operator **/
43 BmnScWallCell& operator=(BmnScWallCell&&) noexcept;
44
45 /** Destructor **/
46 virtual ~BmnScWallCell() {};
47
48 /** @brief Class name
49 ** @return BmnScWallCell
50 **/
51 virtual const char* GetClassName() { return "BmnScWallCell"; }
52
53 /** @brief Cell id
54 ** @return BmnScWallCell index
55 **/
56 int GetCellId() const { return fCellId; };
57
58 /** @brief Deposited Signal
59 ** @return Deposited Signal in cell in event [~Z^2]
60 **/
61 float GetSignal() const { return fCellSignal; };
62
63 /** @brief Position
64 ** @return unherited from FairHit
65 ** @brief use GetX() GetY() GetZ() syntaxis
66 **/
67
68 void SetCellId(int CellId) { fCellId = CellId; }
69 void SetSignal(float Signal) { fCellSignal = Signal; }
70 void reset();
71
72 virtual void Print(Option_t* option = "") const;
73
74 private:
75 int fCellId;
76 float fCellSignal;
77
79};
80
81#endif /* BMNSCWALLCELL_H */
const char Option_t
#define ClassDef(name, id)
Class for Bmn ScWall module data container in event.
virtual const char * GetClassName()
Class name.
BmnScWallCell()
Default constructor.
void SetSignal(float Signal)
BmnScWallCell(BmnScWallCell &&) noexcept
Move constructor.
int GetCellId() const
Cell id.
float GetSignal() const
Deposited Signal.
void SetCellId(int CellId)
Position.
BmnScWallCell(int CellId, float CellSignal, TVector3 posHit, TVector3 posHitErr, int pointIndx)
Constructor to use.
BmnScWallCell(const BmnScWallCell &)
Copy constructor.
virtual void Print(Option_t *option="") const