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