Fork me on GitHub

source: svn/trunk/Utilities/frog/Prim_Circle.h@ 595

Last change on this file since 595 was 583, checked in by cp3-support, 13 years ago

FROG 3.0

File size: 1.1 KB
Line 
1#ifndef _FROG_Prim_CIRCLE_H__
2#define _FROG_Prim_CIRCLE_H__
3
4#include "Base.h"
5
6namespace FROG{
7
8class Prim_Circle : public BaseColl_Id {
9public :
10 float Radius;
11 float PosX; float PosY; float PosZ;
12 float DirX; float DirY; float DirZ;
13 unsigned short NPhi;
14
15 virtual unsigned int chunkId(){ return 43030;}
16 virtual bool isCompactible(){ return true; }
17
18 Prim_Circle(){}
19 Prim_Circle(
20 unsigned int detId, float radius,
21 float posX, float posY, float posZ,
22 float dirX, float dirY, float dirZ,
23 unsigned short nPhi = 10):
24 BaseColl_Id(detId),
25 Radius(radius),
26 PosX(posX), PosY(posY), PosZ(posZ),
27 DirX(dirX), DirY(dirY), DirZ(dirZ),
28 NPhi(nPhi){}
29
30
31 virtual ByteBuffer writeData(){
32 ByteBuffer toReturn(34);
33 toReturn.putUInt(detId_);
34 toReturn.putFloat(Radius);
35 toReturn.putFloat(PosX);
36 toReturn.putFloat(PosY);
37 toReturn.putFloat(PosZ);
38 toReturn.putFloat(DirX);
39 toReturn.putFloat(DirY);
40 toReturn.putFloat(DirZ);
41 toReturn.putUShort(NPhi);
42 return toReturn;
43 }
44};
45
46}//FROG Namespace
47#endif
Note: See TracBrowser for help on using the repository browser.