ROOT logo
//////////////////////////////////////////////////////////////////////////////
//
// @(#)hydraTrans/richNew:$Id: $
//*-- Author: Martin Jurkovic   2010
//
//_HADES_CLASS_DESCRIPTION
//////////////////////////////////////////////////////////////////////////////
//
//  HRichThresholdPar
//
//  Parameter container for threshold data.
//
//////////////////////////////////////////////////////////////////////////////

#ifndef HRICHTHRESHOLDPAR_H
#define HRICHTHRESHOLDPAR_H

#include "hparset.h"

class HRichThresholdPar : public HParSet {

private:
   Int_t   fCalParVers;
   Float_t fSigmaMultiplier[6];

public:
   HRichThresholdPar(const Char_t* name   = "RichThresholdParameters",
                     const Char_t* title  = "Rich Threshold Parameters",
                     const Char_t* context = "");
   ~HRichThresholdPar() {}

   Bool_t  readline(const Char_t* buf);
   Bool_t  init(HParIo* input, Int_t* set);
   Int_t   write(HParIo* output);
   void    clear();
   void    putAsciiHeader(TString& header);
   void    write(std::fstream& fout);
   void    printParams();

   Int_t   getCalParVers();
   Float_t getSigmaMultiplier(Int_t sec);

   void    setCalParVers(Int_t i);
   void    setSigmaMultiplier(Int_t sec, Float_t multiply);

   ClassDef(HRichThresholdPar, 1) //Threshold parameters

};


inline Int_t   HRichThresholdPar::getCalParVers()
{
   return fCalParVers;
}
inline Float_t HRichThresholdPar::getSigmaMultiplier(Int_t sec)
{
   if (sec >= 0 && sec < 6) {
      return fSigmaMultiplier[sec];
   } else {
      Error("getSigmaMultiplier", "Wrong sector number (%d)", sec);
      return -1.;
   }
}

inline void    HRichThresholdPar::setCalParVers(Int_t i)
{
   fCalParVers = i;
}
inline void    HRichThresholdPar::setSigmaMultiplier(Int_t sec, Float_t multiply)
{
   if (sec >= 0 && sec < 6) {
      fSigmaMultiplier[sec] = multiply;
   } else {
      Error("setSigmaMultiplier", "Wrong sector number (%d)", sec);
   }
}

#endif // HRICHTHRESHOLDPAR_H
 hrichthresholdpar.h:1
 hrichthresholdpar.h:2
 hrichthresholdpar.h:3
 hrichthresholdpar.h:4
 hrichthresholdpar.h:5
 hrichthresholdpar.h:6
 hrichthresholdpar.h:7
 hrichthresholdpar.h:8
 hrichthresholdpar.h:9
 hrichthresholdpar.h:10
 hrichthresholdpar.h:11
 hrichthresholdpar.h:12
 hrichthresholdpar.h:13
 hrichthresholdpar.h:14
 hrichthresholdpar.h:15
 hrichthresholdpar.h:16
 hrichthresholdpar.h:17
 hrichthresholdpar.h:18
 hrichthresholdpar.h:19
 hrichthresholdpar.h:20
 hrichthresholdpar.h:21
 hrichthresholdpar.h:22
 hrichthresholdpar.h:23
 hrichthresholdpar.h:24
 hrichthresholdpar.h:25
 hrichthresholdpar.h:26
 hrichthresholdpar.h:27
 hrichthresholdpar.h:28
 hrichthresholdpar.h:29
 hrichthresholdpar.h:30
 hrichthresholdpar.h:31
 hrichthresholdpar.h:32
 hrichthresholdpar.h:33
 hrichthresholdpar.h:34
 hrichthresholdpar.h:35
 hrichthresholdpar.h:36
 hrichthresholdpar.h:37
 hrichthresholdpar.h:38
 hrichthresholdpar.h:39
 hrichthresholdpar.h:40
 hrichthresholdpar.h:41
 hrichthresholdpar.h:42
 hrichthresholdpar.h:43
 hrichthresholdpar.h:44
 hrichthresholdpar.h:45
 hrichthresholdpar.h:46
 hrichthresholdpar.h:47
 hrichthresholdpar.h:48
 hrichthresholdpar.h:49
 hrichthresholdpar.h:50
 hrichthresholdpar.h:51
 hrichthresholdpar.h:52
 hrichthresholdpar.h:53
 hrichthresholdpar.h:54
 hrichthresholdpar.h:55
 hrichthresholdpar.h:56
 hrichthresholdpar.h:57
 hrichthresholdpar.h:58
 hrichthresholdpar.h:59
 hrichthresholdpar.h:60
 hrichthresholdpar.h:61
 hrichthresholdpar.h:62
 hrichthresholdpar.h:63
 hrichthresholdpar.h:64
 hrichthresholdpar.h:65
 hrichthresholdpar.h:66
 hrichthresholdpar.h:67
 hrichthresholdpar.h:68
 hrichthresholdpar.h:69
 hrichthresholdpar.h:70
 hrichthresholdpar.h:71
 hrichthresholdpar.h:72
 hrichthresholdpar.h:73
 hrichthresholdpar.h:74
 hrichthresholdpar.h:75
 hrichthresholdpar.h:76
 hrichthresholdpar.h:77
 hrichthresholdpar.h:78