FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairDetParIo.h
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 #ifndef FAIRDETPARIO_H
9 #define FAIRDETPARIO_H
10 
11 #include <Rtypes.h> // for Int_t, FairDetParIo::Class, etc
12 #include <TNamed.h> // for TNamed
13 
14 class FairParSet;
15 
16 class FairDetParIo : public TNamed
17 {
18  protected:
19  Int_t inputNumber; // input number (first or second input in runtime database)
20 
21  public:
22  FairDetParIo();
23  virtual ~FairDetParIo() { ; }
24 
25  // sets the input number
26  void setInputNumber(Int_t n) { inputNumber = n; }
27 
28  // returns the input number
29  Int_t getInputNumber() { return inputNumber; }
30 
31  // initializes parameter container
32  virtual Bool_t init(FairParSet*) { return kFALSE; }
33 
34  // writes parameter container to output
35  virtual Int_t write(FairParSet*) { return kFALSE; }
36 
37  ClassDef(FairDetParIo, 0); // Base class for detector parameter IO
38 };
39 
40 #endif /* !HDETPARIO_H */
void setInputNumber(Int_t n)
Definition: FairDetParIo.h:26
ClassDef(FairDetParIo, 0)
virtual Bool_t init(FairParSet *)
Definition: FairDetParIo.h:32
Int_t inputNumber
Definition: FairDetParIo.h:19
virtual ~FairDetParIo()
Definition: FairDetParIo.h:23
Int_t getInputNumber()
Definition: FairDetParIo.h:29
virtual Int_t write(FairParSet *)
Definition: FairDetParIo.h:35