Fork me on GitHub

source: svn/trunk/Utilities/frog/Prim_Sphere.h@ 697

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

removed old FROG utility

File size: 975 bytes
RevLine 
[583]1#ifndef _FROG_Prim_SPHERE_H__
2#define _FROG_Prim_SPHERE_H__
3
4#include "Base.h"
5
6namespace FROG{
7
8class Prim_Sphere : public BaseColl_Id {
9public :
10 float Radius;
11 float PosX; float PosY; float PosZ;
12 unsigned short NPhi; unsigned short NTheta;
13
14 virtual unsigned int chunkId(){ return 41030;}
15 virtual bool isCompactible(){ return true; }
16
17 Prim_Sphere(){}
18 Prim_Sphere(
19 unsigned int detId, float radius,
20 float posX, float posY, float posZ,
21 unsigned short nPhi=10, unsigned short nTheta=5) :
22 BaseColl_Id(detId),
23 Radius(radius),
24 PosX(posX), PosY(posY), PosZ(posZ),
25 NPhi(nPhi), NTheta(nTheta){}
26
27 virtual ByteBuffer writeData(){
28 ByteBuffer toReturn(24);
29 toReturn.putUInt(detId_);
30 toReturn.putFloat(Radius);
31 toReturn.putFloat(PosX);
32 toReturn.putFloat(PosY);
33 toReturn.putFloat(PosZ);
34 toReturn.putUShort(NPhi);
35 toReturn.putUShort(NTheta);
36 return toReturn;
37 }
38};
39
40}//FROG Namespace
[585]41#endif
42
Note: See TracBrowser for help on using the repository browser.