Rev | Line | |
---|
[583] | 1 | #ifndef _FROG_CMS_Geom_Calo_H__
|
---|
| 2 | #define _FROG_CMS_Geom_Calo_H__
|
---|
| 3 |
|
---|
| 4 | #include "BaseColl_Id.h"
|
---|
| 5 |
|
---|
| 6 | namespace FROG{
|
---|
| 7 |
|
---|
| 8 | class CMS_Geom_Calo : public BaseColl_Id {
|
---|
| 9 | public :
|
---|
| 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.