File indexing completed on 2024-04-06 11:57:58
0001 #ifndef TPedValues_h
0002 #define TPedValues_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013 #include <vector>
0014
0015 #include "TFile.h"
0016 #include "TPedResult.h"
0017 #include "TSinglePedEntry.h"
0018
0019 class TPedValues {
0020 public:
0021
0022 TPedValues(double RMSmax = 2, int bestPedestal = 200);
0023
0024
0025 TPedValues(const TPedValues &orig);
0026
0027
0028 ~TPedValues();
0029
0030
0031 void insert(const int gainId, const int crystal, const int DAC, const int pedestal, const int endcapIndex);
0032
0033
0034 TPedResult terminate(const int &DACstart = 0, const int &DACend = 256) const;
0035
0036
0037 int checkEntries(const int &DACstart = 0, const int &DACend = 256) const;
0038
0039
0040 int makePlots(TFile *rootFile,
0041 const std::string &dirName,
0042 const double maxSlopeAllowed,
0043 const double minSlopeAllowed,
0044 const double maxChi2OverNDF) const;
0045
0046
0047 int getCrystalNumber(int xtal) const;
0048
0049 private:
0050 TSinglePedEntry m_entries[3][1700][256];
0051
0052 int m_bestPedestal;
0053 double m_RMSmax;
0054
0055
0056 int endcapCrystalNumbers[1700];
0057 };
0058
0059 #endif