Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:57:47

0001 #ifndef TPNCor_H
0002 #define TPNCor_H
0003 
0004 #include "TObject.h"
0005 #include <map>
0006 
0007 class TPNCor : public TObject {
0008 private:
0009 public:
0010   // Default Constructor, mainly for Root

0011   TPNCor(std::string filename);
0012 
0013   // Destructor: Does nothing

0014   ~TPNCor() override;
0015 
0016   enum VarGain { iGain0, iGain1, iSizeGain };
0017   enum VarParPN { iPar0, iPar1, iPar2, iSizePar };
0018 
0019   double getPNCorrectionFactor(double val0, int gain);
0020 
0021   // Declaration for PN linearity corrections

0022   double corParams[iSizeGain][iSizePar];
0023   int isFileOK;
0024 
0025   ClassDefOverride(TPNCor, 0)
0026 };
0027 
0028 #endif