BmnRoot
Loading...
Searching...
No Matches
BmnFHCalModule.h
Go to the documentation of this file.
1
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:
23
25 BmnFHCalModule(int ModuleId, const TVector3& posHit, const TVector3& posHitErr, int pointIndx);
26
29
32
35
38
40 virtual ~BmnFHCalModule() = default;
41
43 int GetModuleId() const { return fModId; };
44
46 float GetEnergy() const { return fModuleEnergy; };
47
49 int GetNsections() const { return fSectVec.size(); };
50
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 */
Class for Bmn FHCal module data container in event.
float GetEnergy() const
Deposited Energy.
BmnFHCalModule & operator=(const BmnFHCalModule &)
virtual ~BmnFHCalModule()=default
void SetNsections(int Nsections)
void SetSectionEnergy(int sec_id, float Energy)
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)