00001 // $Id: TGo4CounterCond.cxx 478 2009-10-29 12:26:09Z linev $ 00002 //----------------------------------------------------------------------- 00003 // The GSI Online Offline Object Oriented (Go4) Project 00004 // Experiment Data Processing at EE department, GSI 00005 //----------------------------------------------------------------------- 00006 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH 00007 // Planckstr. 1, 64291 Darmstadt, Germany 00008 // Contact: http://go4.gsi.de 00009 //----------------------------------------------------------------------- 00010 // This software can be used under the license agreements as stated 00011 // in Go4License.txt file which is part of the distribution. 00012 //----------------------------------------------------------------------- 00013 00014 #include "TGo4CounterCond.h" 00015 00016 TGo4CounterCond::TGo4CounterCond() : 00017 TGo4Condition() 00018 { 00019 } 00020 00021 TGo4CounterCond::TGo4CounterCond(const char* name, const char* title) : 00022 TGo4Condition(name,title) 00023 { 00024 } 00025 00026 TGo4CounterCond::~TGo4CounterCond() 00027 { 00028 } 00029 00030 Bool_t TGo4CounterCond::Test(Bool_t result) 00031 { 00032 IncCounts(); 00033 if(result) IncTrueCounts(); 00034 return result; 00035 } 00036 00037 void TGo4CounterCond::PrintCondition(Bool_t full) 00038 { 00039 TGo4Condition::PrintCondition(); 00040 } 00041 00042 Bool_t TGo4CounterCond::UpdateFrom(TGo4Condition * cond, Bool_t counts) 00043 { 00044 return (TGo4Condition::UpdateFrom(cond,counts)); 00045 } 00046