GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
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
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
41
42void TGo4BranchStatus::Print(Option_t *) const
43{
45 PrintLine("G-OOOO-> TreeBranch Status Class Printout <-OOOO-G");
46 PrintLine("G-OOOO-> ---------------------------------------------- <-OOOO-G");
47}
void Print(Option_t *opt="") const override
TString fxObjectClass
Classname of the described object.
TGo4ObjectStatus()
default ctor for streamer.
void Print(Option_t *opt="") const override
static void PrintLine(const char *text,...)
Print single line of debug output with appropriate indent.