Fork me on GitHub

source: svn/trunk/Utilities/frog/CMS_Geom_Calo.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.2 KB
RevLine 
[583]1#ifndef _FROG_CMS_Geom_Calo_H__
2#define _FROG_CMS_Geom_Calo_H__
3
4#include "BaseColl_Id.h"
5
6namespace FROG{
7
8class CMS_Geom_Calo : public BaseColl_Id {
9public :
10 float ProjFactor;
11 float PosX; float PosY; float PosZ;
12 float WX; float WY; float WZ;
13 float HX; float HY; float HZ;
14
15 virtual unsigned int chunkId(){ return 11999;}
16 virtual bool isCompactible(){ return true; }
17
18 CMS_Geom_Calo(){}
19 CMS_Geom_Calo(unsigned int detId, float projFactor,
20 float posX, float posY, float posZ,
21 float wX, float wY, float wZ,
22 float hX, float hY, float hZ) :
23 BaseColl_Id(detId),
24 ProjFactor(projFactor),
25 PosX(posX), PosY(posY), PosZ(posZ),
26 WX(wX), WY(wY), WZ(wZ),
27 HX(hX), HY(hY), HZ(hZ){}
28
29 virtual ByteBuffer writeData(){
30 ByteBuffer toReturn(44);
31 toReturn.putUInt(detId_);
32 toReturn.putFloat(ProjFactor);
33 toReturn.putFloat(PosX);
34 toReturn.putFloat(PosY);
35 toReturn.putFloat(PosZ);
36 toReturn.putFloat(WX);
37 toReturn.putFloat(WY);
38 toReturn.putFloat(WZ);
39 toReturn.putFloat(HX);
40 toReturn.putFloat(HY);
41 toReturn.putFloat(HZ);
42 return toReturn;
43 }
44};
45
46}//FROG Namespace
47#endif
Note: See TracBrowser for help on using the repository browser.