BmnRoot
Loading...
Searching...
No Matches
BmnHodoEvent.cxx
Go to the documentation of this file.
1
6#include "BmnHodoEvent.h"
7
9 : TNamed() {
10 reset();
11}
12
14 // Destructor implementation if needed
15}
16
18 return &fStripsArr.at(strip_id - 1);
19}
20
21void BmnHodoEvent::SetStrip(uint8_t strip_id, const BmnHodoStrip& strip) {
22 fStripsArr.at(strip_id - 1) = strip;
23}
24
26 fStripsArr.fill({});
27}
28
30 fTotalSignal = 0.;
31 fTotalSignalIntegral = 0.;
32 fPileUpStatus = BmnHodoStrip::PileUp::No;
33
34 int counter = 1;
35 for (auto& it : fStripsArr) {
36 it.SetStripId(counter);
37 it.SetSignal(0.);
38 it.SetSignalIntegral(0.);
39 it.SetPileUpStatus(BmnHodoStrip::PileUp::No);
40 counter++;
41 }
42}
43
45 fTotalSignal = 0.;
46 fTotalSignalIntegral = 0.;
47 for (auto& it : fStripsArr) {
48 fTotalSignal += it.GetSignal();
49 fTotalSignalIntegral += it.GetSignalIntegral();
50 fPileUpStatus = std::max(fPileUpStatus, it.GetPileUpStatus());
51 }
52}
53
54void BmnHodoEvent::Print(Option_t* option) const {
55 // Implementation of Print method if needed
56}
void SummarizeEvent()
void SetStrip(uint8_t strip_id, const BmnHodoStrip &strip)
BmnHodoStrip * GetStrip(uint8_t strip_id)
virtual void Print(Option_t *option="") const
Class for Bmn Hodo strip data container in event.