BmnRoot
Loading...
Searching...
No Matches
BmnNdetEvent.h
Go to the documentation of this file.
1
11#ifndef BMNNDETEVENT_H
12#define BMNNDETEVENT_H
13
14#include "BmnNdetCell.h"
15
16#include <TClonesArray.h>
17#include <TNamed.h>
18
19class BmnNdetEvent : public TNamed
20{
21 public:
24
26 virtual ~BmnNdetEvent();
27
30
33
35 BmnNdetEvent& operator=(const BmnNdetEvent&);
36
38 BmnNdetEvent& operator=(BmnNdetEvent&&) noexcept;
39
43 virtual const char* GetClassName() { return "BmnNdetEvent"; }
44
48 void AddCell(BmnNdetCell* cell);
49
54 BmnNdetCell* GetCell(uint32_t address);
55
63 BmnNdetCell* GetCell(uint32_t ArmId, uint32_t RowId, uint32_t ColumnId, uint32_t LayerId);
64
68 Long64_t GetTotalCells() const { return fCells->GetEntriesFast(); }
69
73 TClonesArray* GetCells() const { return fCells; }
74
78 TClonesArray* GetModifiableCells() { return fCells; }
79
82 void reset();
83
86 void ResetCells();
87
88 private:
89 TClonesArray* fCells;
90
91 ClassDef(BmnNdetEvent, 8);
92};
93
94#endif /* BMNNDETEVENT_H */
Class for Bmn Ndet data container in event.
Long64_t GetTotalCells() const
Get the total number of cells fired in event.
BmnNdetEvent(const BmnNdetEvent &)
TClonesArray * GetCells() const
Interface to the cells set.
TClonesArray * GetModifiableCells()
Modifiable interface to the cells set.
BmnNdetEvent()
Default constructor.
virtual const char * GetClassName()
Class name.
virtual ~BmnNdetEvent()
BmnNdetEvent(BmnNdetEvent &&) noexcept
BmnNdetCell * GetCell(uint32_t address)
Get a cell based on its address.
void reset()
Zero all fields.
BmnNdetCell * GetCell(uint32_t ArmId, uint32_t RowId, uint32_t ColumnId, uint32_t LayerId)
Get a cell based on its arm, row, column, and layer indices.
void AddCell(BmnNdetCell *cell)
Add a cell to the event.
void ResetCells()
Reset time and energy for all cells.