-
Notifications
You must be signed in to change notification settings - Fork 2
/
CBond3D.hxx
53 lines (36 loc) · 932 Bytes
/
CBond3D.hxx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#ifndef CBond3D_hxx_seen
#define CBond3D_hxx_seen
#include "TROOT.h"
#include "TObject.h"
#include "TMath.h"
#include <iostream>
#include <vector>
#include "TVector3.h"
#include "CHit3D.hxx"
/// The base class for a clustered hits
class CBond3D : public TObject {
public:
CBond3D() {}
virtual ~CBond3D() {}
void SetId(int id){fID=id;}
void AddConstituent(int clusterId){
fConstituents.push_back(clusterId);
}
void SetPoint(int hit){
fPoint = hit;
}
int GetId() const{return fID;}
std::vector<int> GetConstituents() const{
return fConstituents;
}
int GetPoint() const{
return fPoint;
}
bool operator==(const CBond3D& rhs) const { return this->GetId() == rhs.GetId();}
private:
int fID;
std::vector<int> fConstituents;
int fPoint; //CHit3D
ClassDef(CBond3D,1);
};
#endif