File indexing completed on 2024-04-06 12:02:38
0001 #ifndef CondFormats_SiStripObjects_FedCablingAnalysis_H
0002 #define CondFormats_SiStripObjects_FedCablingAnalysis_H
0003
0004 #include "CondFormats/SiStripObjects/interface/CommissioningAnalysis.h"
0005 #include "DataFormats/SiStripCommon/interface/SiStripConstants.h"
0006 #include <sstream>
0007 #include <vector>
0008 #include <map>
0009 #include <cstdint>
0010
0011
0012
0013
0014
0015
0016 class FedCablingAnalysis : public CommissioningAnalysis {
0017 public:
0018
0019
0020 FedCablingAnalysis(const uint32_t& key);
0021
0022 FedCablingAnalysis();
0023
0024 ~FedCablingAnalysis() override { ; }
0025
0026 typedef std::map<uint32_t, uint16_t> Candidates;
0027
0028 friend class FedCablingAlgorithm;
0029
0030
0031
0032
0033 bool isValid() const override;
0034
0035
0036 inline const uint16_t& fedId() const;
0037
0038
0039 inline const uint16_t& fedCh() const;
0040
0041
0042 inline const float& adcLevel() const;
0043
0044
0045 inline const Candidates& candidates() const;
0046
0047
0048
0049
0050 void print(std::stringstream&, uint32_t not_used = 0) override;
0051
0052
0053 void reset() override;
0054
0055
0056
0057 public:
0058
0059 static const float threshold_;
0060
0061
0062
0063 private:
0064
0065 uint16_t fedId_;
0066
0067
0068 uint16_t fedCh_;
0069
0070
0071 float adcLevel_;
0072
0073
0074 Candidates candidates_;
0075 };
0076
0077
0078
0079 const uint16_t& FedCablingAnalysis::fedId() const { return fedId_; }
0080 const uint16_t& FedCablingAnalysis::fedCh() const { return fedCh_; }
0081 const float& FedCablingAnalysis::adcLevel() const { return adcLevel_; }
0082 const FedCablingAnalysis::Candidates& FedCablingAnalysis::candidates() const { return candidates_; }
0083
0084 #endif