• Main Page
  • Related Pages
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

beamtime/cosy-nov11/go4/ROSSENDORF/TRossendorfEvent.cxx (r4864/r3159)

Go to the documentation of this file.
00001 /* Generated by Together */
00002 
00003 #include "TRossendorfEvent.h"
00004 #include "TGo4Version.h"
00005 #if __GO4BUILDVERSION__ > 40502
00006 #include "go4iostream.h"
00007 #else
00008 #include "Riostream.h"
00009 #endif
00010 
00011 void RTDC_t::Clear(void)
00012 {
00013         for (int n=0;n<RTDC_t::NumChan;n++) {
00014                  time[n] = -1;
00015                  }
00016 }
00017 
00018 void RQDC_t::Clear(void)
00019 {
00020          for (int n=0;n<RQDC_t::NumChan;n++) {
00021                  charge[n] = -1;
00022         }
00023 }
00024 
00025 TRossendorfEvent::TRossendorfEvent(const char* name, Short_t id) :
00026    TGo4EventElement(name,name,id)
00027 {
00028   cout << "**** TRossendorfEvent: Create instance " << name <<" with composite id "<<id<< endl;
00029         Clear();
00030 }
00031 TRossendorfEvent::TRossendorfEvent() :
00032    TGo4EventElement()
00033 {
00034         Clear();
00035 }
00036 
00037 TRossendorfEvent::~TRossendorfEvent()
00038 {
00039 }
00040 
00041 void  TRossendorfEvent::Clear(Option_t *t)
00042 {
00043   // all members should be cleared.
00044   for(int i=0;i<MAX_ROSSENDORF_TDC;i++)
00045                 fTdc[i].Clear();
00046   for(int i=0;i<MAX_ROSSENDORF_QDC;i++)
00047                 fQdc[i].Clear();
00048 }
00049 

Generated on Tue Dec 10 2013 04:52:19 for ROCsoft by  doxygen 1.7.1