AMSDST
myRichRing.cxx
Go to the documentation of this file.
1 // Authors: M.Duranti - INFN di Perugia
2 #include "myRichRing.h"
3 #include "debug.h"
4 #include "TClass.h"
5 
6 using namespace std;
7 
8 //--------------------------------------------------------------------
9 
11 #ifdef _WITHGBATCH_
12 ClassImp(myRichRingFiller);
13 #endif //#ifdef _WITHGBATCH_
14 
15 //--------------------------------------------------------------------
16 
18 #ifdef PDEBUG
19  printf("In myRichRing::myRichRing\n");
20 #endif
21  PRINTDEBUG;
22  init();
23  PRINTDEBUG;
24 }
25 
27 #ifdef PDEBUG
28  printf("In myRichRing::~myRichRing\n");
29 #endif
30  PRINTDEBUG;
31 }
32 
33 void myRichRing::Clear(Option_t* option){
34 #ifdef PDEBUG
35  printf("In myRichRing::Clear\n");
36 #endif
37  PRINTDEBUG;
38  Beta = -999999;
39  Theta = -999999;
40  ErrorBeta = -999999;
41  IsNaF = true;
42  Status = 999999;
43  PRINTDEBUG;
44  return;
45 }
46 
48 #ifdef PDEBUG
49  printf("In myRichRing::init\n");
50 #endif
51  PRINTDEBUG;
52  Clear();
53  PRINTDEBUG;
54  return;
55 }
56 
57 //------------------------------------------------------------------------
58 
59 #ifdef _WITHGBATCH_
60 
61 myRichRingFiller::myRichRingFiller(){
62 #ifdef PDEBUG
63  printf("In myRichRingFiller::myRichRingFiller\n");
64 #endif
65  PRINTDEBUG;
66  init();
67  PRINTDEBUG;
68 }
69 
70 myRichRingFiller::~myRichRingFiller(){
71 #ifdef PDEBUG
72  printf("In myRichRingFiller::~myRichRingFiller\n");
73 #endif
74  PRINTDEBUG;
75  Clear();
76 }
77 
78 void myRichRingFiller::Clear(Option_t* option){
79 #ifdef PDEBUG
80  printf("In myRichRingFiller::Clear\n");
81 #endif
82  PRINTDEBUG;
83  ring=0;
84  PRINTDEBUG;
85  return;
86 }
87 
88 void myRichRingFiller::init(){
89 #ifdef PDEBUG
90  printf("In myRichRingFiller::init\n");
91 #endif
92  PRINTDEBUG;
93  Clear();
94  PRINTDEBUG;
95  return;
96 }
97 
98 void myRichRingFiller::Fill(RichRingR* _ring){
99 #ifdef PDEBUG
100  printf("In myRichRingFiller::Fill\n");
101 #endif
102  PRINTDEBUG;
103 
104  ring=_ring;
105 
106  if (ring) {
107 
108  Status=ring->Status;
109  if (ring->IsNaF()) IsNaF=true;
110  // if ((Status&2)!=0) IsNaf=true;
111  Beta = ring->Beta;
112  ErrorBeta = ring->ErrorBeta;
113 
114  }
115 
116  PRINTDEBUG;
117 
118  return;
119 }
120 
121 #endif