EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
CbmCluster.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file CbmCluster.h
1
8
#ifndef CBMCLUSTER_H_
9
#define CBMCLUSTER_H_
10
11
#include "TObject.h"
12
class
FairMultiLinkedData
;
13
20
class
CbmCluster
:
public
TObject
21
{
22
public
:
26
CbmCluster
();
27
31
virtual
~CbmCluster
();
32
37
void
AddDigi
(Int_t index) {
fDigis
.push_back(index); }
38
43
void
AddDigis
(
const
std::vector<Int_t>& indices) {
fDigis
.insert(
fDigis
.end(), indices.begin(), indices.end()); }
44
49
void
SetDigis
(
const
std::vector<Int_t>& indices) {
fDigis
.assign(indices.begin(), indices.end()); }
50
55
Int_t
GetNofDigis
()
const
{
return
fDigis
.size(); }
56
62
Int_t
GetDigi
(Int_t index)
const
{
return
fDigis
[index]; }
63
68
const
std::vector<Int_t>&
GetDigis
()
const
{
return
fDigis
; }
69
73
void
Clear
() {
fDigis
.clear(); }
74
76
Int_t
GetAddress
()
const
{
return
fAddress
; }
77
FairMultiLinkedData
*
GetLinks
()
const
{
return
fLinks
; }
78
80
void
SetAddress
(Int_t address) {
fAddress
= address; }
81
void
SetLinks
(
FairMultiLinkedData
* links) {
fLinks
= links; }
82
83
private
:
84
CbmCluster
(
const
CbmCluster
&);
85
CbmCluster
&
operator=
(
const
CbmCluster
&);
86
87
std::vector<Int_t>
fDigis
;
88
Int_t
fAddress
;
89
FairMultiLinkedData
*
fLinks
;
90
91
ClassDef
(
CbmCluster
, 1);
92
};
93
94
#endif
/* CBMCLUSTER_H_ */
EicRoot
blob
master
cbmdata
CbmCluster.h
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:33
using
1.8.2 with
EIC GitHub integration