HARPO  5.1.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HarpoDetAnalyse.cxx
Go to the documentation of this file.
1 //
2 // File HarpoDetAnalyse.cxx
3 //
12 #include "HarpoDetAnalyse.h"
13 #include <cstdlib>
14 #include <cstring>
15 #include <iostream>
16 
17 ClassImp(HarpoDetAnalyse)
18 
19 static ULong_t oldt = 0;
20 
21 void HarpoDetAnalyse::Set(HarpoDetEvent *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 HarpoDetAnalyse::Save(char * /* mode */ )
51 {
52 }
53 
55 {
56  Set(event);
57  process();
58 }
59 
60 HarpoDetAnalyse::HarpoDetAnalyse() : anaEvt(NULL), nEvents(0)
61 {
62  // std:printf("In Analyse Contructor ..\n");
63 }
64 
virtual void print()
A virtual class store event data for un detector.
Definition: HarpoDetEvent.h:32
virtual ULong_t GetTimeStamp(Int_t after=0)=0
virtual void process()
virtual void Init()
void print() const
virtual void ProcessEvent(HarpoDetEvent *event)
A virtual class which define interface between HARPO Det Reader and Event Analysis code...
HarpoDetEvent * anaEvt
virtual void Save(char *=NULL)
void Set(HarpoDetEvent *event)