Fork me on GitHub

source: svn/trunk/Utilities/frog/Event_SingleStrip.h@ 602

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

FROG 3.0

File size: 1018 bytes
RevLine 
[583]1//Code created by Maciej Zbigniew Besta
2//For the TOTEM Collaboration
3//Email: maciej.zbigniew.besta@cern.ch
4
5#ifndef _FROG_EVENT_SINGLESTRIP_H__
6#define _FROG_EVENT_SINGLESTRIP_H__
7
8#include "Base.h"
9
10namespace FROG{
11
12class Event_SingleStrip : public BaseColl_Id {
13public :
14 float x1; float y1; float z1;
15 float x2; float y2; float z2;
16 BaseColl_Id* det;
17
18 virtual unsigned int chunkId(){ return 11100;}
19 virtual bool isCompactible(){ return true; }
20
21 Event_SingleStrip(){}
22 Event_SingleStrip( unsigned int DetId,
23 float x1_, float y1_, float z1_, float x2_, float y2_, float z2_):
24 BaseColl_Id(DetId),
25 x1(x1_),y1(y1_),z1(z1_),x2(x2_), y2(y2_), z2(z2_){}
26
27
28 virtual ByteBuffer writeData(){
29 ByteBuffer toReturn(28);
30 toReturn.putUInt(detId_);
31 toReturn.putFloat(x1);
32 toReturn.putFloat(y1);
33 toReturn.putFloat(z1);
34 toReturn.putFloat(x2);
35 toReturn.putFloat(y2);
36 toReturn.putFloat(z2);
37 return toReturn;
38 }
39};
40
41}//FROG Namespace
42#endif
Note: See TracBrowser for help on using the repository browser.