FEDRA emulsion software from the OPERA Collaboration
View Class Reference

#include <View.h>

Collaboration diagram for View:

Public Member Functions

SidegetBottomSide ()
 
Side getBottomSide () const
 
double getBottomZ () const
 
int getId () const
 
Vector2 getPosition () const
 
int getTileX () const
 
int getTileY () const
 
SidegetTopSide ()
 
Side getTopSide () const
 
double getTopZ () const
 
std::vector< TrackgetTrackArray () const
 
void setBottomSide (Side side)
 
void setBottomZ (double bottomZ)
 
void setId (int id)
 
void setPosition (Vector2 position)
 
void setTile (int x, int y)
 
void setTileX (int x)
 
void setTileY (int y)
 
void setTopSide (Side side)
 
void setTopZ (double topZ)
 
void setTrackArray (std::vector< Track > tArr)
 
 View ()
 
 View (Side topSide, Side bottomSide, int id, double px, double py, double topZ, double bottomZ)
 
 ~View ()
 

Public Attributes

Double_t bottomz
 
Int_t id
 
Double_t px
 
Double_t py
 
Double_t topz
 

Private Attributes

Side _bottomSide
 
double _bottomZ
 
int _id
 
Vector2 _position
 
std::vector< Track_tArr
 
int _tileX
 
int _tileY
 
Side _topSide
 
double _topZ
 

Constructor & Destructor Documentation

◆ View() [1/2]

View::View ( )
4{
5}

◆ View() [2/2]

View::View ( Side  topSide,
Side  bottomSide,
int  id,
double  px,
double  py,
double  topZ,
double  bottomZ 
)
8{
9 _topSide = topSide;
10 _bottomSide = bottomSide;
11 _id = id;
12 _topZ = topZ;
13 _bottomZ = bottomZ;
14 _position.x = px;
15 _position.y = py;
16}
Double_t py
Definition: tlg2couples.C:94
Int_t id
Definition: tlg2couples.C:90
Double_t px
Definition: tlg2couples.C:93
double _topZ
Definition: View.h:17
int _id
Definition: View.h:16
Vector2 _position
Definition: View.h:13
Side _bottomSide
Definition: View.h:12
double _bottomZ
Definition: View.h:18
Side _topSide
Definition: View.h:11
double y
Definition: Struct.h:9
double x
Definition: Struct.h:8

◆ ~View()

View::~View ( )
19{
20 _tArr.clear();
21}
std::vector< Track > _tArr
Definition: View.h:19

Member Function Documentation

◆ getBottomSide() [1/2]

Side * View::getBottomSide ( )
inline
37{return &_bottomSide;}

◆ getBottomSide() [2/2]

Side View::getBottomSide ( ) const
inline
28{return _bottomSide;}

◆ getBottomZ()

double View::getBottomZ ( ) const
inline
34{return _bottomZ;}

◆ getId()

int View::getId ( ) const
inline
31{return _id;}

◆ getPosition()

Vector2 View::getPosition ( ) const
inline
32{return _position;}

◆ getTileX()

int View::getTileX ( ) const
inline
29{return _tileX;}
int _tileX
Definition: View.h:14

◆ getTileY()

int View::getTileY ( ) const
inline
30{return _tileY;}
int _tileY
Definition: View.h:15

◆ getTopSide() [1/2]

Side * View::getTopSide ( )
inline
36{return &_topSide;}

◆ getTopSide() [2/2]

Side View::getTopSide ( ) const
inline
27{return _topSide;}

◆ getTopZ()

double View::getTopZ ( ) const
inline
33{return _topZ;}

◆ getTrackArray()

std::vector< Track > View::getTrackArray ( ) const
inline
35{return _tArr;}

◆ setBottomSide()

void View::setBottomSide ( Side  side)
inline
40{_bottomSide = side;}

◆ setBottomZ()

void View::setBottomZ ( double  bottomZ)
inline
44{_bottomZ = bottomZ;}

◆ setId()

void View::setId ( int  id)
inline
41{_id = id;}

◆ setPosition()

void View::setPosition ( Vector2  position)
inline
MFTYPE32 long position
Definition: Milproto.h:644

◆ setTile()

void View::setTile ( int  x,
int  y 
)
31{
32 _tileX = x;
33 _tileY = y;
34}

◆ setTileX()

void View::setTileX ( int  x)
inline
47{_tileX = x;}

◆ setTileY()

void View::setTileY ( int  y)
inline
48{_tileX = y;}

◆ setTopSide()

void View::setTopSide ( Side  side)
inline
39{_topSide = side;}

◆ setTopZ()

void View::setTopZ ( double  topZ)
inline
43{_topZ = topZ;}

◆ setTrackArray()

void View::setTrackArray ( std::vector< Track tArr)
24{
25 for (int i = 0; i < static_cast<int>(tArr.size()); i++)
26 _tArr.push_back(tArr.at(i));
27}

Member Data Documentation

◆ _bottomSide

Side View::_bottomSide
private

◆ _bottomZ

double View::_bottomZ
private

◆ _id

int View::_id
private

◆ _position

Vector2 View::_position
private

◆ _tArr

std::vector<Track> View::_tArr
private

◆ _tileX

int View::_tileX
private

◆ _tileY

int View::_tileY
private

◆ _topSide

Side View::_topSide
private

◆ _topZ

double View::_topZ
private

◆ bottomz

Double_t View::bottomz

◆ id

Int_t View::id

◆ px

Double_t View::px

◆ py

Double_t View::py

◆ topz

Double_t View::topz

The documentation for this class was generated from the following files: