HARPO  5.1.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HarpoFeminosFrame.cxx
Go to the documentation of this file.
1 //
2 // File HarpoFeminosFrame.cxx
3 //
10 #include "HarpoFeminosFrame.h"
11 #include <cstring>
12 #include <iostream>
13 
14 using namespace std;
15 
16 ClassImp(HarpoFeminosFrame)
17 
18 void HarpoFeminosFrame::print() const
19 {
20  cout << "---Feminos Frame Size (ushort words): " << size << endl;
21  //UShort_t fmData;
22  cout << "Frame adress : " << this << endl;
23 }
24 
25 
27  size = 0;
28  fmData = NULL;
29 }
30 
31 HarpoFeminosFrame::HarpoFeminosFrame(void *buf, size_t len){
32  size = len/2;
33  fmData = new UShort_t[len/sizeof(UShort_t)];
34  memcpy(fmData,buf,len);
35 }
36 
38  if (fmData != NULL) delete [] fmData;
39 }
40 
41 // HarpoFeminosFrame& HarpoFeminosFrame::operator=(const HarpoFeminosFrame &rhs) {
42 // if ( this != &rhs ) {
43 // cout << " Frame Copy " << &rhs << " to " << this << endl;
44 // memcpy(this,&rhs,sizeof(HarpoFeminosFrame));
45 // } else {
46 // cout << " Frame Self assignment" << this << endl;
47 // }
48 // return *this;
49 // }
50 
51 // HarpoFeminosFrame::HarpoFeminosFrame(const HarpoFeminosFrame &rhs) {
52 // if ( this != &rhs ) {
53 // cout << " Frame Copy " << &rhs << " to " << this << endl;
54 // memcpy(this,&rhs,sizeof(HarpoFeminosFrame));
55 // } else {
56 // cout << " Frame Self assignment" << this << endl;
57 // }
58 // }
A generic class for HARPO datectors The class is ....
virtual ~HarpoFeminosFrame()