FEDRA emulsion software from the OPERA Collaboration
View.h
Go to the documentation of this file.
1#include "Side.h"
2#include "Track.h"
3#include <vector>
4
5#ifndef VIEW_H
6#define VIEW_H
7
8class View
9{
10private:
14 int _tileX;
15 int _tileY;
16 int _id;
17 double _topZ;
18 double _bottomZ;
19 std::vector<Track> _tArr;
20
21
22public:
23 View();
24 View(Side topSide, Side bottomSide, int id, double px, double py, double topZ, double bottomZ);
25 ~View();
26
27 Side getTopSide() const {return _topSide;}
28 Side getBottomSide() const {return _bottomSide;}
29 int getTileX() const {return _tileX;}
30 int getTileY() const {return _tileY;}
31 int getId()const {return _id;}
32 Vector2 getPosition() const {return _position;}
33 double getTopZ() const {return _topZ;}
34 double getBottomZ() const {return _bottomZ;}
35 std::vector<Track> getTrackArray() const {return _tArr;}
36 Side* getTopSide() {return &_topSide;}
38
39 void setTopSide(Side side) {_topSide = side;}
40 void setBottomSide(Side side) {_bottomSide = side;}
41 void setId(int id) {_id = id;}
43 void setTopZ(double topZ) {_topZ = topZ;}
44 void setBottomZ(double bottomZ) {_bottomZ = bottomZ;}
45 void setTrackArray(std::vector<Track> tArr);
46 void setTile(int x, int y);
47 void setTileX(int x) {_tileX = x;}
48 void setTileY(int y) {_tileX = y;}
49
50
51};
52
53#endif
MFTYPE32 long position
Definition: Milproto.h:644
Definition: Side.h:11
void setTopSide(Side side)
Definition: View.h:39
Vector2 getPosition() const
Definition: View.h:32
void setBottomZ(double bottomZ)
Definition: View.h:44
Side * getBottomSide()
Definition: View.h:37
std::vector< Track > _tArr
Definition: View.h:19
Side * getTopSide()
Definition: View.h:36
Double_t py
Definition: tlg2couples.C:94
void setTopZ(double topZ)
Definition: View.h:43
void setId(int id)
Definition: View.h:41
void setTileY(int y)
Definition: View.h:48
double getTopZ() const
Definition: View.h:33
Int_t id
Definition: tlg2couples.C:90
View()
Definition: View.cpp:3
Double_t px
Definition: tlg2couples.C:93
Side getBottomSide() const
Definition: View.h:28
void setPosition(Vector2 position)
Definition: View.h:42
void setTile(int x, int y)
Definition: View.cpp:30
double _topZ
Definition: View.h:17
int _id
Definition: View.h:16
void setBottomSide(Side side)
Definition: View.h:40
void setTileX(int x)
Definition: View.h:47
std::vector< Track > getTrackArray() const
Definition: View.h:35
int _tileX
Definition: View.h:14
int getTileX() const
Definition: View.h:29
void setTrackArray(std::vector< Track > tArr)
Definition: View.cpp:23
Vector2 _position
Definition: View.h:13
Side _bottomSide
Definition: View.h:12
~View()
Definition: View.cpp:18
int _tileY
Definition: View.h:15
int getId() const
Definition: View.h:31
double getBottomZ() const
Definition: View.h:34
int getTileY() const
Definition: View.h:30
double _bottomZ
Definition: View.h:18
Side _topSide
Definition: View.h:11
Side getTopSide() const
Definition: View.h:27
Definition: tlg2couples.C:89
Definition: Struct.h:7