BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
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
18class BmnFHCalModule : public FairHit
19{
20 public:
21 /** @brief Default constructor. **/
23
24 /** @brief Constructor with parameters. **/
25 BmnFHCalModule(int ModuleId, const TVector3& posHit, const TVector3& posHitErr, int pointIndx);
26
27 /** Copy constructor. **/
29
30 /** Move constructor. **/
32
33 /** Assignment operator. **/
35
36 /** Move Assignment operator. **/
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;
68 std::vector<float> fSectVec;
69
71};
72
73#endif /* BMNFHCALMODULE_H */
const char Option_t
#define ClassDef(name, id)
float GetEnergy() const
Deposited Energy.
BmnFHCalModule & operator=(const BmnFHCalModule &)
Assignment operator.
virtual ~BmnFHCalModule()=default
Destructor.
void SetNsections(int Nsections)
void SetSectionEnergy(int sec_id, float Energy)
std::vector< float > fSectVec
BmnFHCalModule()
Default constructor.
void SetModuleId(int ModId)
void SummarizeModule(double section_threshold=0.0)
int GetModuleId() const
Module id.
virtual void Print(Option_t *option="") const
float GetSectionEnergy(int sec_id) const
Section energy.
int GetNsections() const
Sections number.
void SetEnergy(float Energy)