Fork me on GitHub

source: svn/trunk/Utilities/frog/CMS_Geom_Tracking.h@ 905

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

FROG 3.0

File size: 1.5 KB
Line 
1#ifndef _FROG_CMS_Geom_Tracking_H__
2#define _FROG_CMS_Geom_Tracking_H__
3
4#include "BaseColl_Id.h"
5
6namespace FROG{
7
8class CMS_Geom_Tracking : public BaseColl_Id {
9public :
10 float TrapezoidalParam;
11 float PosX; float PosY; float PosZ;
12 float WidthX; float WidthY; float WidthZ;
13 float LengthX; float LengthY; float LengthZ;
14 float ThickX; float ThickY; float ThickZ;
15
16 virtual unsigned int chunkId(){ return 21100;}
17 virtual bool isCompactible(){ return true; }
18
19 CMS_Geom_Tracking(){};
20 CMS_Geom_Tracking(unsigned int detId, float trapezoidalParam,
21 float posX, float posY, float posZ,
22 float widthX, float widthY, float widthZ,
23 float lengthX, float lengthY, float lengthZ,
24 float thickX, float thickY, float thickZ) :
25 BaseColl_Id(detId),
26 TrapezoidalParam(trapezoidalParam),
27 PosX(posX), PosY(posY), PosZ(posZ),
28 WidthX(widthX), WidthY(widthY), WidthZ(widthZ),
29 LengthX(lengthX), LengthY(lengthY), LengthZ(lengthZ),
30 ThickX(thickX), ThickY(thickY), ThickZ(thickZ){}
31
32 virtual ByteBuffer writeData(){
33 ByteBuffer toReturn(56);
34 toReturn.putUInt(detId_);
35 toReturn.putFloat(TrapezoidalParam);
36 toReturn.putFloat(PosX);
37 toReturn.putFloat(PosY);
38 toReturn.putFloat(PosZ);
39 toReturn.putFloat(WidthX);
40 toReturn.putFloat(WidthY);
41 toReturn.putFloat(WidthZ);
42 toReturn.putFloat(LengthX);
43 toReturn.putFloat(LengthY);
44 toReturn.putFloat(LengthZ);
45 toReturn.putFloat(ThickX);
46 toReturn.putFloat(ThickY);
47 toReturn.putFloat(ThickZ);
48 return toReturn;
49 }
50};
51
52}//FROG Namespace
53#endif
54
Note: See TracBrowser for help on using the repository browser.