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 void TVftxBoardData::Clear()
00012 {
00013 iTriggerTime = 0;
00014 for( Int_t iChan = 0; iChan < FPGA_TDC_NBCHAN; iChan++)
00015 {
00016 iMultiplicity[iChan] = 0;
00017 for( Int_t iHit = 0; iHit < MaxMult; iHit++)
00018 {
00019 iFineTime[iChan][iHit] = -1;
00020 iCoarseTime[iChan][iHit] = -1;
00021 uFutureBit[iChan][iHit] = 0;
00022 dTimeCorr[iChan][iHit] = -1;
00023 dFineTimeCorr[iChan][iHit] = -1;
00024 }
00025 }
00026 }
00027
00028 TVftxEvent::TVftxEvent(const char* name, Short_t id) :
00029 TGo4EventElement(name,name,id)
00030 {
00031 cout << "**** TVftxEvent: Create instance " << name <<" with composite id "<<id<< endl;
00032 }
00033 TVftxEvent::TVftxEvent() :
00034 TGo4EventElement()
00035 {
00036 }
00037
00038 TVftxEvent::~TVftxEvent()
00039 {
00040 }
00041
00042 void TVftxEvent::Clear(Option_t *t)
00043 {
00044
00045 for(Int_t imodule = 0; imodule < MAX_FPGA_TDC; imodule ++)
00046 {
00047 fVftxBoards[imodule].Clear();
00048 }
00049 SetValid(kFALSE);
00050 }
00051