BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
BmnFHCalModule.h
Go to the documentation of this file.
1
/** \file BmnFHCalModule.h
2
** \author Nikolay Karpushkin <karpushkin@inr.ru>
3
** \date 22.01.2025
4
**/
5
6
/** \class BmnFHCalModule
7
** \brief Class for Bmn FHCal module data container in event
8
** \version 3.0
9
**/
10
11
#ifndef BMNFHCALMODULE_H
12
#define BMNFHCALMODULE_H
13
14
#include <FairHit.h>
15
#include <numeric>
16
#include <vector>
17
18
class
BmnFHCalModule
:
public
FairHit
19
{
20
public
:
21
/** @brief Default constructor. **/
22
BmnFHCalModule
();
23
24
/** @brief Constructor with parameters. **/
25
BmnFHCalModule
(
int
ModuleId,
const
TVector3
& posHit,
const
TVector3
& posHitErr,
int
pointIndx);
26
27
/** Copy constructor. **/
28
BmnFHCalModule
(
const
BmnFHCalModule
&);
29
30
/** Move constructor. **/
31
BmnFHCalModule
(
BmnFHCalModule
&&)
noexcept
;
32
33
/** Assignment operator. **/
34
BmnFHCalModule
&
operator=
(
const
BmnFHCalModule
&);
35
36
/** Move Assignment operator. **/
37
BmnFHCalModule
&
operator=
(
BmnFHCalModule
&&)
noexcept
;
38
39
/** Destructor. **/
40
virtual
~BmnFHCalModule
() =
default
;
41
42
/** @brief Module id. **/
43
int
GetModuleId
()
const
{
return
fModId
; };
44
45
/** @brief Deposited Energy. **/
46
float
GetEnergy
()
const
{
return
fModuleEnergy
; };
47
48
/** @brief Sections number. **/
49
int
GetNsections
()
const
{
return
fSectVec
.size(); };
50
51
/** @brief Section energy. **/
52
float
GetSectionEnergy
(
int
sec_id)
const
{
return
fSectVec
.at(sec_id - 1); }
53
54
void
SetModuleId
(
int
ModId) {
fModId
= ModId; }
55
void
SetEnergy
(
float
Energy) {
fModuleEnergy
= Energy; }
56
void
SetNsections
(
int
Nsections) {
fSectVec
.resize(Nsections); }
57
void
SetSectionEnergy
(
int
sec_id,
float
Energy) {
fSectVec
.at(sec_id - 1) = Energy; }
58
59
void
SummarizeModule
(
double
section_threshold = 0.0);
60
void
reset
();
61
void
ResetSections
();
62
63
virtual
void
Print
(
Option_t
* option =
""
)
const
;
64
65
private
:
66
int
fModId
;
67
float
fModuleEnergy
;
68
std::vector<float>
fSectVec
;
69
70
ClassDef
(
BmnFHCalModule
, 3);
71
};
72
73
#endif
/* BMNFHCALMODULE_H */
Option_t
const char Option_t
ClassDef
#define ClassDef(name, id)
BmnFHCalModule::GetEnergy
float GetEnergy() const
Deposited Energy.
Definition
BmnFHCalModule.h:46
BmnFHCalModule::operator=
BmnFHCalModule & operator=(const BmnFHCalModule &)
Assignment operator.
Definition
BmnFHCalModule.cxx:44
BmnFHCalModule::fModId
int fModId
Definition
BmnFHCalModule.h:66
BmnFHCalModule::fModuleEnergy
float fModuleEnergy
Definition
BmnFHCalModule.h:67
BmnFHCalModule::~BmnFHCalModule
virtual ~BmnFHCalModule()=default
Destructor.
BmnFHCalModule::reset
void reset()
Definition
BmnFHCalModule.cxx:91
BmnFHCalModule::SetNsections
void SetNsections(int Nsections)
Definition
BmnFHCalModule.h:56
BmnFHCalModule::SetSectionEnergy
void SetSectionEnergy(int sec_id, float Energy)
Definition
BmnFHCalModule.h:57
BmnFHCalModule::fSectVec
std::vector< float > fSectVec
Definition
BmnFHCalModule.h:68
BmnFHCalModule::BmnFHCalModule
BmnFHCalModule()
Default constructor.
Definition
BmnFHCalModule.cxx:15
BmnFHCalModule::SetModuleId
void SetModuleId(int ModId)
Definition
BmnFHCalModule.h:54
BmnFHCalModule::SummarizeModule
void SummarizeModule(double section_threshold=0.0)
Definition
BmnFHCalModule.cxx:74
BmnFHCalModule::GetModuleId
int GetModuleId() const
Module id.
Definition
BmnFHCalModule.h:43
BmnFHCalModule::ResetSections
void ResetSections()
Definition
BmnFHCalModule.cxx:85
BmnFHCalModule::Print
virtual void Print(Option_t *option="") const
Definition
BmnFHCalModule.cxx:66
BmnFHCalModule::GetSectionEnergy
float GetSectionEnergy(int sec_id) const
Section energy.
Definition
BmnFHCalModule.h:52
BmnFHCalModule::GetNsections
int GetNsections() const
Sections number.
Definition
BmnFHCalModule.h:49
BmnFHCalModule::SetEnergy
void SetEnergy(float Energy)
Definition
BmnFHCalModule.h:55
FairHit
TVector3
detectors
fhcal
BmnFHCalModule.h
Generated on
for BmnRoot by
1.17.0