HARPO  5.1.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HarpoFeminosEvent.cxx
Go to the documentation of this file.
1 //
2 // File HarpoFeminosEvent.cxx
3 //
14 #include "HarpoFeminosEvent.h"
15 #include "HarpoDebug.h"
16 #include <cstdlib>
17 #include <cstring>
18 #include <iostream>
19 #include <cassert>
20 // for swab
21 #include <unistd.h>
22 
23 ClassImp(HarpoFeminosEvent)
24 
26 {
27  memset(&fEventHeader,0,sizeof(fEventHeader));
28  fEventMap = (HarpoDccMap *) NULL;
29  fTimeStamp = 0;
30  fZeroSuppress = 0;
31  decoder = NULL;
32  if(gHarpoDebug>1)
33  Info("HarpoFeminosEvent","Feminos Event Created");
34 }
35 
37 {
38  delete fEventMap;
39  if(gHarpoDebug>1)
40  Info("HarpoFeminosEvent","Feminos Event Deleted");
41 }
42 
43 void HarpoFeminosEvent::SetHeader(UInt_t len, UInt_t evnum)
44 {
46  fEventHeader.eventNumb=evnum;
47  }
48 
49 void HarpoFeminosEvent::SetHeader(UShort_t *data)
50 {
51  memcpy(&fEventHeader,data,sizeof(EventHeader_t));
52 }
53 
55 {
56  std::cout << "---DccEvent Plane " << fPlane << std::endl;
57  std::cout << "Header num : " << fEventHeader.eventNumb
58  << " : size : " << fEventHeader.eventSize << std::endl;
59  // std::cout << " Num Frames : " << fFrames.size() << std::endl;
60  std::cout << " Time Stamp : " << fTimeStamp << std::endl;
61 }
62 
63 
65 {
66  if(gHarpoDebug>1) std::cout << "HarpoFeminosEvent::GetMap" << std::endl;
67  return fEventMap;
68 }
69 
71 {
72  return (fZeroSuppress != 0);
73 }
74 
75 
HarpoDccMap * fEventMap
UInt_t eventSize
Raw Event size.
Definition: HarpoDetEvent.h:28
EventHeader_t fEventHeader
Definition: HarpoDetEvent.h:60
A class store HARPO row FEMINOS event data and header. End provide access metods to the row data...
unpacked dcc data The class contains the data map for DCC or Feminos The data is stored as a 2D TMatr...
Definition: HarpoDccMap.h:29
HarpoDccMap * GetMap()
Long64_t gHarpoDebug
Definition: HarpoDebug.cxx:9
Unknown Detector.
Definition: HarpoDet.h:18
Harpo Event Header.
Definition: HarpoDetEvent.h:26
UInt_t eventNumb
Event number in run.
Definition: HarpoDetEvent.h:29
void SetHeader(UShort_t *data)