File indexing completed on 2023-03-17 10:44:10
0001 #ifndef CALIBTRACKER_SISTRIPCHANNELGAIN_STAPVGAIN_H
0002 #define CALIBTRACKER_SISTRIPCHANNELGAIN_STAPVGAIN_H
0003
0004 class TH1F;
0005 #include <string>
0006
0007 enum fitgrade { NONE = -1, A = 1, B = 2 };
0008
0009 struct stAPVGain {
0010 unsigned int Index;
0011 int Bin;
0012 unsigned int DetId;
0013 unsigned int APVId;
0014 unsigned int SubDet;
0015 float x;
0016 float y;
0017 float z;
0018 float Eta;
0019 float R;
0020 float Phi;
0021 float Thickness;
0022 double FitMPV;
0023 double FitMPVErr;
0024 double FitWidth;
0025 double FitWidthErr;
0026 double FitChi2;
0027 double FitNorm;
0028 fitgrade FitGrade;
0029 double Gain;
0030 double CalibGain;
0031 double PreviousGain;
0032 double PreviousGainTick;
0033 double NEntries;
0034 TH1F* HCharge;
0035 TH1F* HChargeN;
0036 bool isMasked;
0037 char Side;
0038 };
0039
0040 struct APVloc {
0041 public:
0042 APVloc(int v0, int v1, int v2, int v3, const std::string& s)
0043 : m_thickness(v0), m_subdetectorId(v1), m_subdetectorSide(v2), m_subdetectorPlane(v3), m_string(s) {}
0044
0045 int m_thickness;
0046 int m_subdetectorId;
0047 int m_subdetectorSide;
0048 int m_subdetectorPlane;
0049 std::string m_string;
0050
0051 bool operator==(const APVloc& a) const {
0052 return (m_subdetectorId == a.m_subdetectorId && m_subdetectorSide == a.m_subdetectorSide &&
0053 m_subdetectorPlane == a.m_subdetectorPlane && m_thickness == a.m_thickness);
0054 }
0055 };
0056
0057 enum statistic_type { None = -1, StdBunch, StdBunch0T, FaABunch, FaABunch0T, IsoBunch, IsoBunch0T, Harvest };
0058
0059 #endif