[583] | 1 | //Code created by Maciej Zbigniew Besta
|
---|
| 2 | //For the TOTEM Collaboration
|
---|
| 3 | //Email: maciej.zbigniew.besta@cern.ch
|
---|
| 4 |
|
---|
| 5 | #ifndef _FROG_Prim_FIVESIDEDPOLYGON_H__
|
---|
| 6 | #define _FROG_Prim_FIVESIDEDPOLYGON_H__
|
---|
| 7 |
|
---|
| 8 | #include "BaseColl_Id.h"
|
---|
| 9 |
|
---|
| 10 | namespace FROG{
|
---|
| 11 |
|
---|
| 12 | class Prim_FiveSidedPolygon : public BaseColl_Id {
|
---|
| 13 | public :
|
---|
| 14 |
|
---|
| 15 | float P1X; float P1Y; float P1Z;
|
---|
| 16 | float P2X; float P2Y; float P2Z;
|
---|
| 17 | float P3X; float P3Y; float P3Z;
|
---|
| 18 | float P4X; float P4Y; float P4Z;
|
---|
| 19 | float P5X; float P5Y; float P5Z;
|
---|
| 20 |
|
---|
| 21 |
|
---|
| 22 | virtual unsigned int chunkId(){ return 42040;}
|
---|
| 23 | virtual bool isCompactible(){ return true; }
|
---|
| 24 |
|
---|
| 25 | Prim_FiveSidedPolygon(){}
|
---|
| 26 | Prim_FiveSidedPolygon(
|
---|
| 27 | unsigned int detId,
|
---|
| 28 | float p1X, float p1Y, float p1Z,
|
---|
| 29 | float p2X, float p2Y, float p2Z,
|
---|
| 30 | float p3X, float p3Y, float p3Z,
|
---|
| 31 | float p4X, float p4Y, float p4Z,
|
---|
| 32 | float p5X, float p5Y, float p5Z):
|
---|
| 33 | BaseColl_Id(detId),
|
---|
| 34 | P1X(p1X), P1Y(p1Y), P1Z(p1Z),
|
---|
| 35 | P2X(p2X), P2Y(p2Y), P2Z(p2Z),
|
---|
| 36 | P3X(p3X), P3Y(p3Y), P3Z(p3Z),
|
---|
| 37 | P4X(p4X), P4Y(p4Y), P4Z(p4Z),
|
---|
| 38 | P5X(p5X), P5Y(p5Y), P5Z(p5Z){}
|
---|
| 39 |
|
---|
| 40 | virtual ByteBuffer writeData(){
|
---|
| 41 | ByteBuffer toReturn(64);
|
---|
| 42 | toReturn.putUInt(detId_);
|
---|
| 43 | toReturn.putFloat(P1X);
|
---|
| 44 | toReturn.putFloat(P1Y);
|
---|
| 45 | toReturn.putFloat(P1Z);
|
---|
| 46 | toReturn.putFloat(P2X);
|
---|
| 47 | toReturn.putFloat(P2Y);
|
---|
| 48 | toReturn.putFloat(P2Z);
|
---|
| 49 | toReturn.putFloat(P3X);
|
---|
| 50 | toReturn.putFloat(P3Y);
|
---|
| 51 | toReturn.putFloat(P3Z);
|
---|
| 52 | toReturn.putFloat(P4X);
|
---|
| 53 | toReturn.putFloat(P4Y);
|
---|
| 54 | toReturn.putFloat(P4Z);
|
---|
| 55 | toReturn.putFloat(P5X);
|
---|
| 56 | toReturn.putFloat(P5Y);
|
---|
| 57 | toReturn.putFloat(P5Z);
|
---|
| 58 | return toReturn;
|
---|
| 59 | }
|
---|
| 60 | };
|
---|
| 61 |
|
---|
| 62 | }//FROG Namespace
|
---|
| 63 | #endif
|
---|