GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
TGo4ObjEnvelope.h
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#ifndef TGO4OBJENVELOPE_H
15#define TGO4OBJENVELOPE_H
16
17#include "TNamed.h"
18
19class TGo4ObjEnvelope : public TNamed {
20 public:
22 TGo4ObjEnvelope(TObject *obj, const char *name, const char *folder);
23 virtual ~TGo4ObjEnvelope();
24
25 const char *GetObjName() const { return fxObjName.Data(); }
26 const char *GetObjFolder() const { return fxObjFolder.Data(); }
27
28 TObject *GetObject() const { return fxObject; }
29 TObject *TakeObject();
30
31 protected:
32
33 TObject *fxObject{nullptr};
34 TString fxObjName;
35 TString fxObjFolder;
36
40 Bool_t fbOwner{kFALSE};
41
43};
44
45#endif
TObject * GetObject() const
ClassDefOverride(TGo4ObjEnvelope, 1)
const char * GetObjName() const
Bool_t fbOwner
this flag true when envelope created via default constructor in this case object, included in envelop...
virtual ~TGo4ObjEnvelope()
const char * GetObjFolder() const
TObject * TakeObject()