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

beamtime/gsi-aug12/prod/go4/SCALERS/TScalersEvent.cxx (r4864/r3687)

Go to the documentation of this file.
00001 /* Generated by Together */
00002 
00003 #include "TScalersEvent.h"
00004 #include "TGo4Version.h"
00005 #if __GO4BUILDVERSION__ > 40502
00006    #include "go4iostream.h"
00007 #else
00008    #include "Riostream.h"
00009 #endif
00010 
00011 TScalersEvent::TScalersEvent(const char* name, Short_t id) :
00012    TGo4EventElement(name,name,id)
00013 {
00014    cout << "**** TScalersEvent: Create instance " << name <<" with composite id "<<id<< endl;
00015    Clear();
00016 }
00017 TScalersEvent::TScalersEvent() :
00018    TGo4EventElement()
00019 {
00020    Clear();
00021 }
00022 
00023 TScalersEvent::~TScalersEvent()
00024 {
00025 }
00026 
00027 void  TScalersEvent::Clear(Option_t *t)
00028 {
00029   // all members should be cleared.
00030 
00031       // Oct 12
00032    fDTimeSinceFirstEventSecondsTriglog = 0.0;
00033    fDTimeSinceLastEventSecondsTriglog  = 0.0;
00034 #if SCALORMU_NB_SCAL != 16
00035    // Starting Nov 12
00036    fDTimeSinceFirstEventSecondsScalOrMuRate = 0.0;
00037    fDTimeSinceLastEventSecondsScalOrMuRate  = 0.0;
00038 #endif
00039    for( Int_t iScalOrMuIndex = 0; iScalOrMuIndex < SCALORMU_NB_SCAL; iScalOrMuIndex++)
00040    {
00041       fDScalOrMuRate[iScalOrMuIndex] = 0.0;
00042       fDDetectorRate[iScalOrMuIndex] = 0.0;
00043    }
00044 
00045    for( Int_t iTriglogScaler = 0; iTriglogScaler < NUM_SCALERS; iTriglogScaler++)
00046       for( Int_t iTriglogChannel = 0; iTriglogChannel < N_SCALERS_CH; iTriglogChannel++)
00047          fDTriglogRate[iTriglogScaler][iTriglogChannel] = 0.0;
00048 
00049    SetValid(kFALSE);
00050 }
00051 

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