Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F11222009
Event_Sim_Track.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
969 B
Subscribers
None
Event_Sim_Track.h
View Options
#ifndef _FROG_EVENT_SIM_TRACK_H__
#define _FROG_EVENT_SIM_TRACK_H__
#include
"Base.h"
namespace
FROG
{
class
Event_Sim_Track
:
public
Base
{
public
:
int
track_id
;
float
Px
;
float
Py
;
float
Pz
;
float
E
;
int
Type
;
int
parent_vertex
;
float
charge
;
virtual
unsigned
int
chunkId
(){
return
11030
;}
virtual
bool
isCompactible
(){
return
true
;
}
Event_Sim_Track
(){}
Event_Sim_Track
(
int
track_id_
,
float
Px_
,
float
Py_
,
float
Pz_
,
float
E_
,
int
Type_
,
int
parent_vertex_
,
float
charge_
)
:
track_id
(
track_id_
),
Px
(
Px_
),
Py
(
Py_
),
Pz
(
Pz_
),
E
(
E_
),
Type
(
Type_
),
parent_vertex
(
parent_vertex_
),
charge
(
charge_
){}
virtual
ByteBuffer
writeData
(){
ByteBuffer
toReturn
(
48
);
toReturn
.
putInt
(
track_id
);
toReturn
.
putFloat
(
Px
);
toReturn
.
putFloat
(
Py
);
toReturn
.
putFloat
(
Pz
);
toReturn
.
putFloat
(
E
);
toReturn
.
putInt
(
Type
);
toReturn
.
putInt
(
parent_vertex
);
toReturn
.
putFloat
(
charge
);
return
toReturn
;
}
};
}
//FROG Namespace
#endif
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Wed, May 14, 11:15 AM (20 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5111383
Default Alt Text
Event_Sim_Track.h (969 B)
Attached To
rFROGSVN frogsvn
Event Timeline
Log In to Comment