-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkit.h
51 lines (42 loc) · 1.09 KB
/
kit.h
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
#ifndef KIT_H
#define KIT_H
#include "!_All_include.h"
#include "layer.h"
#include "muon.h"
#include "point.h"
#include "event.h"
class kit
{
public:
kit();
kit(const kit& k);
kit(const point coor, const int count);
std::string GetName() const;
point GetCoor() const;
int GetCount() const;
layer GetLayer(const int index) const;
long long GetIndex() const;
point GetCoorMax() const;
point GetCoorMid() const;
void AddLayer(const layer l);
void UpdateCoor(bool new_coor = 0);
void UpdateCoor(const layer l, bool new_coor = 0);
void SetAllCoor(const point coor);
void SetName(const std::string name);
void SetCoor(const point coor);
void SetCount(const int count);
void SetLayer(const int index, const layer l);
void SetIndex(const long long index);
void ReadDetector(std::string detector_config);
void PrintData();
void IsCatch(event& e) const;
private:
std::string _name;
long long _index;
point _coor;
point _coor_max;
point _coor_mid;
int _count;
std::vector<layer> _arr;
};
#endif // KIT_H