FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairMQExParamsParOne.cxx
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8  #include "FairMQExParamsParOne.h"
9  #include <TGenericClassInfo.h> // for TGenericClassInfo
10  #include <TString.h> // for TString
11  #include <fairlogger/Logger.h> // for LOG, Logger
12  #include "FairParamList.h" // for FairParamList
13 
14 
15 FairMQExParamsParOne::FairMQExParamsParOne(const char* name, const char* title, const char* context)
16  : FairParGenericSet(name, title, context)
17  , fParameterValue(0)
18 {
19  detName = "TutorialDet";
20 }
21 
23 
25 {
26  status = kFALSE;
28 }
29 
31 {
32  LOG(info) << "Print";
33  LOG(info) << "fParameterValue: " << fParameterValue;
34 }
35 
37 {
38  LOG(info) << "FairMQExParamsParOne::putParams()";
39 
40  if (!list) {
41  return;
42  }
43 
44  list->add("Example7ParameterValue", fParameterValue);
45 }
46 
48 {
49  LOG(info) << "FairMQExParamsParOne::getParams()";
50 
51  if (!list) {
52  return kFALSE;
53  }
54 
55  if (!list->fill("Example7ParameterValue", &fParameterValue)) {
56  return kFALSE;
57  }
58 
59  return kTRUE;
60 }
61 
void putParams(FairParamList *list)
Bool_t status
versions of container in the 2 possible inputs
Definition: FairParSet.h:25
Bool_t getParams(FairParamList *list)
TString detName
Definition: FairParSet.h:23
ClassImp(FairEventBuilder)
FairMQExParamsParOne(const char *name="FairMQExParamsParOne", const char *title="FairMQ Example Parameters Parameter One", const char *context="Default")
Bool_t fill(const Text_t *, Text_t *, const Int_t)
void resetInputVersions()
Definition: FairParSet.cxx:121
void add(FairParamObj &)