Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:17:10

0001 //  Declaration of class PdbParameter
0002 //  Purpose: single parameter storage class
0003 //  Author: federica
0004 
0005 #ifndef PDBCAL_BASE_PDBPARAMETER_H
0006 #define PDBCAL_BASE_PDBPARAMETER_H
0007 
0008 #include "PdbCalChan.h"
0009 
0010 #include <limits>
0011 #include <string>
0012 
0013 class PdbParameter : public PdbCalChan
0014 {
0015  public:
0016   PdbParameter(const double, const std::string &name);
0017   ~PdbParameter() override = default;
0018 
0019   double getParameter() const { return thePar; }
0020   const std::string &getName() const { return theName; }
0021 
0022   void setParameter(const double val) { thePar = val; }
0023   void setName(const std::string &name) { theName = name; }
0024 
0025   void print() const override;
0026 
0027  protected:
0028   PdbParameter() = default;  // this ctor should not be called
0029 
0030  private:
0031   double thePar{std::numeric_limits<double>::quiet_NaN()};
0032   std::string theName;
0033 
0034   ClassDefOverride(PdbParameter, 1);
0035 };
0036 
0037 #endif /* PDBCAL_BASE_PDBPARAMETER_H */