HARPO  5.1.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HarpoDccAnalyse.cxx
Go to the documentation of this file.
1 //
2 // File HarpoDccAnalyse.cxx
3 //
12 #include "HarpoDccAnalyse.h"
13 #include <cstdlib>
14 #include <cstring>
15 #include <iostream>
16 
17 ClassImp(HarpoDccAnalyse)
18 
19 static ULong_t oldt = 0;
20 
21 void HarpoDccAnalyse::Set(HarpoDccEvent *event)
22 {
23  // printf("In Analyse Set ..\n");
24  anaEvt = event;
25 }
26 
28 {
29 }
30 
32 {
33  ULong_t tm;
34  printf("process\n");
35  anaEvt->print();
36  tm = anaEvt->GetTimeStamp();
37 
38  std::cout << "Time Stamp " << tm << " old " << oldt << " d " << tm - oldt << std::endl;
39  oldt = tm;
40  anaEvt->fFrames.front().print();
41  // HarpoDccMap *m = anaEvt->GetMap();
42  //printf("Map at %p\n",m);
43 
44 }
45 
47 {
48 }
49 
50 void HarpoDccAnalyse::Save(char * /* mode */)
51 {
52 }
53 
55 {
56  Set(event);
57  process();
58 }
59 
61 {
62  // std:printf("In Analyse Contructor ..\n");
63 }
64 
virtual void print()
void print() const
virtual void Init()
virtual void Save(char *mode=NULL)
ULong_t GetTimeStamp(Int_t after=0)
void Set(HarpoDccEvent *event)
HarpoDccEvent * anaEvt
A virtual class which define intrafece between HARPO Reader and Event Analysis code.
virtual void ProcessEvent(HarpoDccEvent *event)
std::list< HarpoDccFrame > fFrames
Event data buffer.
Definition: HarpoDccEvent.h:52
virtual void process()
A class store HARPO EVENT : header and row data. Its provide also the methods for access to this data...
Definition: HarpoDccEvent.h:22