TPNCor

VarGain

VarParPN

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
#ifndef TPNCor_H
#define TPNCor_H

#include "TObject.h"
#include <map>

class TPNCor : public TObject {
private:
public:
  // Default Constructor, mainly for Root
  TPNCor(std::string filename);

  // Destructor: Does nothing
  ~TPNCor() override;

  enum VarGain { iGain0, iGain1, iSizeGain };
  enum VarParPN { iPar0, iPar1, iPar2, iSizePar };

  double getPNCorrectionFactor(double val0, int gain);

  // Declaration for PN linearity corrections
  double corParams[iSizeGain][iSizePar];
  int isFileOK;

  ClassDefOverride(TPNCor, 0)
};

#endif