GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
TGo4BranchStatus.cxx
Go to the documentation of this file.
1 // $Id$
2 //-----------------------------------------------------------------------
3 // The GSI Online Offline Object Oriented (Go4) Project
4 // Experiment Data Processing at EE department, GSI
5 //-----------------------------------------------------------------------
6 // Copyright (C) 2000- GSI Helmholtzzentrum fuer Schwerionenforschung GmbH
7 // Planckstr. 1, 64291 Darmstadt, Germany
8 // Contact: http://go4.gsi.de
9 //-----------------------------------------------------------------------
10 // This software can be used under the license agreements as stated
11 // in Go4License.txt file which is part of the distribution.
12 //-----------------------------------------------------------------------
13 
14 #include "TGo4BranchStatus.h"
15 
16 #include "TGo4Log.h"
17 
18 #include "TBranchElement.h"
19 
22 {
23 }
24 
26  TGo4ObjectStatus(branch, kFALSE)
27 {
28  if (branch) {
29  if (branch->InheritsFrom(TBranchElement::Class()))
30  fxObjectClass = (dynamic_cast<TBranchElement*>(branch))->GetTypeName();
31  else
32  fxObjectClass = branch->GetClassName();
33  }
34  if (fxObjectClass.IsNull())
35  fxObjectClass = branch ? branch->ClassName() : "BranchElement";
36 }
37 
39 {
40 }
41 
42 void TGo4BranchStatus::Print(Option_t *) const
43 {
45  PrintLine("G-OOOO-> TreeBranch Status Class Printout <-OOOO-G");
46  PrintLine("G-OOOO-> ---------------------------------------------- <-OOOO-G");
47 }
virtual ~TGo4BranchStatus()
void Print(Option_t *opt="") const override
void Print(Option_t *opt="") const override
static void PrintLine(const char *text,...)
Definition: TGo4Status.cxx:101