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

beamtime/cern-oct12/go4/TMbsCrateEvent.cxx (r4864/r3258)

Go to the documentation of this file.
00001 #include "TMbsCrateEvent.h"
00002 
00003 #include <stdlib.h>
00004 #include "TGo4Log.h"
00005 
00006 
00007 // ====================================================================================
00008 
00009 TMbsCrateEvent::TMbsCrateEvent() :
00010    TGo4EventElement()
00011 {
00012 }
00013 
00014 TMbsCrateEvent::TMbsCrateEvent(const char* name, Short_t id) :
00015    TGo4EventElement(name,name,id)
00016 {
00017    TGo4Log::Info("TTRDMadcEvent: Create instance %s with composite id %d", name, id);
00018 }
00019 
00020 TMbsCrateEvent::~TMbsCrateEvent()
00021 {
00022 }
00023 
00024 void  TMbsCrateEvent::Clear(Option_t *t)
00025 {
00026    // all members should be cleared.
00027 
00028    if(IsValid())
00029    {
00030       fIsPulser = kFALSE;
00031 
00032       for(int mad=0; mad<MAX_MADC;++mad)
00033          for(int ch=0; ch<N_MADC_CHA;++ch)
00034             fMadc[mad][ch]=0;
00035 
00036       for(int t=0; t<MAX_1182;++t)
00037          for (int ch=0;ch<NUM_1182_CH;ch++)
00038             fData1182[t][ch]=0;
00039 
00040       for (int n=0;n<MAX_1290;n++)
00041          fMtdc[n].Clear();
00042 
00043    }
00044 
00045    SetValid(kFALSE);
00046 }
00047 

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