Go to the documentation of this file.00001
00002
00003 #include "TVftxEvent.h"
00004 #include "TGo4Version.h"
00005 #if __GO4BUILDVERSION__ > 40502
00006 #include "go4iostream.h"
00007 #else
00008 #include "Riostream.h"
00009 #endif
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053 TVftxEvent::TVftxEvent(const char* name, Short_t id) :
00054 TGo4EventElement(name,name,id)
00055 {
00056 cout << "**** TVftxEvent: Create instance " << name <<" with composite id "<<id<< endl;
00057 }
00058 TVftxEvent::TVftxEvent() :
00059 TGo4EventElement()
00060 {
00061 }
00062
00063 TVftxEvent::~TVftxEvent()
00064 {
00065 }
00066
00067 void TVftxEvent::Clear(Option_t *t)
00068 {
00069
00070 for(Int_t imodule = 0; imodule < MAX_FPGA_TDC; imodule ++)
00071 {
00072 fVftxBoards[imodule].Clear();
00073 }
00074 SetValid(kFALSE);
00075 }
00076
00077 Double_t TVftxEvent::GetCoarseCorrectedTime( UInt_t uBoard, UInt_t uChan, UInt_t uMult)
00078 {
00079
00080
00081 if( uBoard < MAX_FPGA_TDC )
00082 return fVftxBoards[uBoard].GetCoarseCorrectedTime( uChan, uMult);
00083 else return 0.0;
00084 }
00085 Double_t TVftxEvent::GetCalibratedTime( UInt_t uBoard, UInt_t uChan, UInt_t uMult, UInt_t uCoarseCorrected )
00086 {
00087
00088
00089
00090
00091 if( uBoard < MAX_FPGA_TDC )
00092 {
00093 if( 1 == uCoarseCorrected )
00094 return fVftxBoards[uBoard].GetCoarseCorrectedTime( uChan, uMult);
00095 else return fVftxBoards[uBoard].GetCalibratedTime( uChan, uMult);
00096 }
00097 else return 0.0;
00098 }