BmnRoot
Loading...
Searching...
No Matches
BmnScWallEvent.h
Go to the documentation of this file.
1
11#ifndef BMNSCWALLEVENT_H
12#define BMNSCWALLEVENT_H
13
14#include "BmnScWallCell.h"
15
16#include <TClonesArray.h>
17#include <TNamed.h>
18#include <iostream>
19#include <vector>
20
21class BmnScWallEvent : public TNamed
22{
23 public:
27 : TNamed()
28 , fCellsArr()
29 {
30 reset();
31 }
32
35
39 virtual const char* GetClassName() { return "BmnScWallEvent"; }
40
44 BmnScWallCell* GetCell(uint8_t cell_id) { return &fCellsArr.at(cell_id - 1); };
45
49 void SetCell(uint8_t cell_id, BmnScWallCell Cell) { fCellsArr.at(cell_id - 1) = Cell; };
50
54 void reset() { fCellsArr.fill({}); }
56 {
57 int sci = 1;
58 for (auto& it : fCellsArr) {
59 it.SetCellId(sci);
60 it.SetSignal(0.);
61 sci++;
62 }
63 }
64
65 void SummarizeEvent();
66 virtual void Print(Option_t* option = "") const {};
67
68 static const int fgkMaxCells = 174; // 174 modules numbered from 1 to 174 inclusively
69
70 private:
71 std::array<BmnScWallCell, fgkMaxCells> fCellsArr;
72
73 ClassDef(BmnScWallEvent, 2);
74};
75
76#endif /* BMNSCWALLEVENT_H */
Class for Bmn ScWall module data container in event.
Class for Bmn ScWall data container in event.
void SetCell(uint8_t cell_id, BmnScWallCell Cell)
Set CellsArrtor.
virtual void Print(Option_t *option="") const
BmnScWallCell * GetCell(uint8_t cell_id)
Cell info.
BmnScWallEvent()
Default constructor.
static const int fgkMaxCells
void reset()
Zero all fields.
virtual const char * GetClassName()
Class name.