HARPO  5.1.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HarpoSimAnalyse.cxx
Go to the documentation of this file.
1 //
2 // File HarpoSimAnalyse.cxx
3 //
12 #include "HarpoSimAnalyse.h"
13 #include <cstdlib>
14 #include <cstring>
15 #include <iostream>
16 
17 ClassImp(HarpoSimAnalyse)
18 
19 static ULong_t oldt = 0;
20 
21 void HarpoSimAnalyse::Set(HarpoSimEvent *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  // HarpoSimMap *m = anaEvt->GetMap();
42  //printf("Map at %p\n",m);
43  // fTree->Fill();
44 
45 }
46 
48 {
49 }
50 
51 void HarpoSimAnalyse::Save(char * /* mode */ )
52 {
53 }
54 
56 {
57  Set(event);
58  process();
59 }
60 
62 {
63  // std:printf("In Analyse Contructor ..\n");
64 }
65 
virtual void Save(char *mode=NULL)
ULong_t GetTimeStamp(Int_t=0)
virtual void Init()
void Set(HarpoSimEvent *event)
virtual void print()
A class store HARPO row DCC event data and header. End provide access metods to the row data...
Definition: HarpoSimEvent.h:24
A virtual class which define intrafece between HARPO Reader and Event Analysis code.
virtual void ProcessEvent(HarpoSimEvent *event)
virtual void process()
void print() const
HarpoSimEvent * anaEvt