Fork me on GitHub

source: svn/trunk/Utilities/frog/Event_Cluster_SiStrip.h@ 633

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

FROG 3.0

File size: 942 bytes
Line 
1#ifndef _FROG_EVENT_CLUSTER_SISTRIP_H__
2#define _FROG_EVENT_CLUSTER_SISTRIP_H__
3
4#include "BaseColl_Id.h"
5
6namespace FROG{
7
8class Event_Cluster_SiStrip : public BaseColl_Id{
9public :
10 unsigned short firstStrip_; float pitch_;
11 std::vector<unsigned char> Ampl_;
12 float charge_;
13
14 virtual unsigned int chunkId(){ return 12113;}
15 virtual bool isCompactible(){ return false; }
16
17 Event_Cluster_SiStrip(){}
18 Event_Cluster_SiStrip( unsigned int DetId,unsigned short firstStrip, float pitch):
19 BaseColl_Id(DetId),
20 firstStrip_(firstStrip),pitch_(pitch){}
21
22 virtual ByteBuffer writeData(){
23 ByteBuffer toReturn(16 + Ampl_.size());
24 toReturn.putUInt(detId_);
25 toReturn.putUShort(firstStrip_);
26 toReturn.putFloat(pitch_);
27 toReturn.putUShort(Ampl_.size());
28 for(unsigned int i=0;i<Ampl_.size();i++){
29 toReturn.putByte(Ampl_[i]);
30 }
31 return toReturn;
32 }
33};
34
35}//FROG Namespace
36#endif
Note: See TracBrowser for help on using the repository browser.