EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PdbParameter.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PdbParameter.h
1 // Declaration of class PdbParameter
2 // Purpose: single parameter storage class
3 // Author: federica
4 
5 #ifndef PDBCAL_BASE_PDBPARAMETER_H
6 #define PDBCAL_BASE_PDBPARAMETER_H
7 
8 #include "PdbCalChan.h"
9 
10 #include <string>
11 
12 class PdbParameter : public PdbCalChan {
13 public:
14  PdbParameter(); // this ctor should not be called but it cannot be
15  // made private since CINT needs a
16  // default ctor when reading from file
17 
18  PdbParameter(const double, const std::string &name);
19  ~PdbParameter() override {}
20 
21  double getParameter() const { return thePar; }
22  const std::string getName() const { return theName; }
23 
24  void setParameter(const double val) { thePar = val; }
25  void setName(const std::string &name) {theName = name;}
26 
27  void print() const override;
28 
29 protected:
30 
31  double thePar;
32  std::string theName;
33 
35 };
36 
37 #endif /* PDBCAL_BASE_PDBPARAMETER_H */