GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
TGo4MbsFileParameter.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
15
16#include "TObjString.h"
17
18#include "TGo4Log.h"
19#include "TGo4Status.h"
20#include "Go4EventServerTypes.h"
21
22const char *TGo4MbsFile__fgcNOTAGFILE = "GO4-NOLMDTAG";
23
29
35
39
41{
42 TGo4Log::Debug("Add more lmd file %s", more);
43
44 fxMoreFiles.SetOwner(kTRUE);
45 fxMoreFiles.Add(new TObjString(more));
46}
47
48const char *TGo4MbsFileParameter::GetMoreName(Int_t n) const
49{
50 return (n >= 0) && (n <= fxMoreFiles.GetLast()) ? fxMoreFiles.At(n)->GetName() : nullptr;
51}
52
53void TGo4MbsFileParameter::Print(Option_t *) const
54{
56 TGo4Status::PrintLine("Tagfile: %s", GetTagName());
57}
58
60{
61 if(rhs && rhs->InheritsFrom(TGo4MbsFileParameter::Class())) {
62 auto mbspar = dynamic_cast<TGo4MbsFileParameter*>(rhs);
63 if(!mbspar) return kFALSE;
64 if(!TGo4MbsSourceParameter::UpdateFrom(rhs)) return kFALSE;
65 SetTagName(mbspar->GetTagName());
66 return kTRUE;
67 }
68
69 return kFALSE;
70}
@ GO4EV_MBS_FILE
const char * TGo4MbsFile__fgcNOTAGFILE
static void Debug(const char *text,...) GO4_PRINTF_ARGS
User shortcut for message with prio 0.
Definition TGo4Log.cxx:281
const char * GetTagName() const
Name of the Tagfile.
void Print(Option_t *opt="") const override
TObjArray fxMoreFiles
List of extra files names, specified in the go4analysis.
Bool_t UpdateFrom(TGo4Parameter *rhs) override
update contents of parameter class with external object.
const char * GetMoreName(Int_t n) const
Returns name of extra files names, configured in the parameter.
void SetTagName(const char *name)
Name of the Tagfile.
void AddMoreFile(const char *more)
Add more file names in to the parameter.
Bool_t UpdateFrom(TGo4Parameter *rhs) override
update contents of parameter class with external object.
void Print(Option_t *opt="") const override
basic method to printout object
static void PrintLine(const char *text,...)
Print single line of debug output with appropriate indent.