File indexing completed on 2024-04-06 12:29:25
0001 #ifndef EcalSimAlgos_APDSimParameters_h
0002 #define EcalSimAlgos_APDSimParameters_h
0003
0004 #include <cmath>
0005 #include <string>
0006 #include <vector>
0007
0008 class APDSimParameters {
0009 public:
0010 APDSimParameters(bool addToBarrel,
0011 bool separateDigi,
0012 double simToPELow,
0013 double simToPEHigh,
0014 double timeOffset,
0015 double timeOffWidth,
0016 bool doPEStats,
0017 const std::string& digiTag,
0018 const std::vector<double>& nonlParms)
0019 :
0020
0021 m_addToBarrel(addToBarrel),
0022 m_separateDigi(separateDigi),
0023 m_simToPELow(simToPELow),
0024 m_simToPEHigh(simToPEHigh),
0025 m_timeOffset(timeOffset),
0026 m_timeOffWidth(fabs(timeOffWidth)),
0027 m_doPEStats(doPEStats),
0028 m_digiTag(digiTag),
0029 m_nonlParms(nonlParms) {}
0030
0031 virtual ~APDSimParameters() {}
0032
0033 bool addToBarrel() const { return m_addToBarrel; }
0034 bool separateDigi() const { return m_separateDigi; }
0035 double simToPELow() const { return m_simToPELow; }
0036 double simToPEHigh() const { return m_simToPEHigh; }
0037 double timeOffset() const { return m_timeOffset; }
0038 double timeOffWidth() const { return m_timeOffWidth; }
0039 bool doPEStats() const { return m_doPEStats; }
0040
0041 const std::string& digiTag() const { return m_digiTag; }
0042
0043 const std::vector<double>& nonlParms() const { return m_nonlParms; }
0044
0045 private:
0046 bool m_addToBarrel;
0047 bool m_separateDigi;
0048 double m_simToPELow;
0049 double m_simToPEHigh;
0050 double m_timeOffset;
0051 double m_timeOffWidth;
0052 bool m_doPEStats;
0053 std::string m_digiTag;
0054 std::vector<double> m_nonlParms;
0055 };
0056
0057 #endif