File indexing completed on 2024-04-06 12:02:14
0001 #ifndef CondFormatsHcalObjectsHcalTPParameters_h
0002 #define CondFormatsHcalObjectsHcalTPParameters_h
0003
0004 #include "CondFormats/Serialization/interface/Serializable.h"
0005
0006 #include <vector>
0007 #include <algorithm>
0008 #include <cstdint>
0009
0010 class HcalTPParameters {
0011 public:
0012 HcalTPParameters();
0013 ~HcalTPParameters();
0014
0015
0016 void loadObject(int version, int adcCut, uint64_t tdcMask, uint32_t tbits, int auxi1, int auxi2);
0017
0018
0019 int getFGVersionHBHE() const { return version_; }
0020
0021 int getADCThresholdHF() const { return adcCut_; }
0022
0023 uint64_t getTDCMaskHF() const { return tdcMask_; }
0024
0025 uint32_t getHFTriggerInfo() const { return tbits_; }
0026
0027 int getAuxi1() const { return auxi1_; }
0028 int getAuxi2() const { return auxi2_; }
0029
0030 private:
0031 int version_;
0032 int adcCut_;
0033 uint64_t tdcMask_;
0034 uint32_t tbits_;
0035 int auxi1_;
0036 int auxi2_;
0037
0038 COND_SERIALIZABLE;
0039 };
0040
0041 #endif