Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F8310432
Prim_Sphere.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
971 B
Subscribers
None
Prim_Sphere.h
View Options
#ifndef _FROG_Prim_SPHERE_H__
#define _FROG_Prim_SPHERE_H__
#include
"Base.h"
namespace
FROG
{
class
Prim_Sphere
:
public
BaseColl_Id
{
public
:
float
Radius
;
float
PosX
;
float
PosY
;
float
PosZ
;
unsigned
short
NPhi
;
unsigned
short
NTheta
;
virtual
unsigned
int
chunkId
(){
return
41030
;}
virtual
bool
isCompactible
(){
return
true
;
}
Prim_Sphere
(){}
Prim_Sphere
(
unsigned
int
detId
,
float
radius
,
float
posX
,
float
posY
,
float
posZ
,
unsigned
short
nPhi
=
10
,
unsigned
short
nTheta
=
5
)
:
BaseColl_Id
(
detId
),
Radius
(
radius
),
PosX
(
posX
),
PosY
(
posY
),
PosZ
(
posZ
),
NPhi
(
nPhi
),
NTheta
(
nTheta
){}
virtual
ByteBuffer
writeData
(){
ByteBuffer
toReturn
(
24
);
toReturn
.
putUInt
(
detId_
);
toReturn
.
putFloat
(
Radius
);
toReturn
.
putFloat
(
PosX
);
toReturn
.
putFloat
(
PosY
);
toReturn
.
putFloat
(
PosZ
);
toReturn
.
putUShort
(
NPhi
);
toReturn
.
putUShort
(
NTheta
);
return
toReturn
;
}
};
}
//FROG Namespace
#endif
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sat, Dec 21, 6:28 PM (8 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4023806
Default Alt Text
Prim_Sphere.h (971 B)
Attached To
rFROGSVN frogsvn
Event Timeline
Log In to Comment