File indexing completed on 2024-04-06 12:05:37
0001 #ifndef QIE10DigiSortedTable_h
0002 #define QIE10DigiSortedTable_h
0003
0004 #include <vector>
0005 #include <map>
0006
0007 #include "CalibFormats/HcalObjects/interface/HcalCoderDb.h"
0008 #include "CalibFormats/HcalObjects/interface/HcalDbRecord.h"
0009 #include "CalibFormats/HcalObjects/interface/HcalDbService.h"
0010 #include "DataFormats/HcalDetId/interface/HcalSubdetector.h"
0011 #include "DataFormats/HcalDetId/interface/HcalDetId.h"
0012 #include "DataFormats/HcalDetId/interface/HcalGenericDetId.h"
0013 #include "DataFormats/HcalDigi/interface/HcalDigiCollections.h"
0014 #include "CondFormats/HcalObjects/interface/HcalElectronicsMap.h"
0015 #include "CondFormats/HcalObjects/interface/HcalChannelQuality.h"
0016 #include "DQM/HcalCommon/interface/Utilities.h"
0017
0018 class QIE10DigiSortedTable {
0019 public:
0020 std::vector<HcalDetId> dids_;
0021 std::map<HcalDetId, unsigned int> did_indexmap_;
0022
0023 std::vector<int> ietas_;
0024 std::vector<int> iphis_;
0025 std::vector<int> subdets_;
0026 std::vector<int> depths_;
0027 std::vector<int> rawIds_;
0028 std::vector<bool> linkErrors_;
0029 std::vector<int> flags_;
0030 std::vector<int> sois_;
0031 std::vector<bool> valids_;
0032
0033
0034 unsigned int nTS_;
0035 std::vector<std::vector<int>> adcs_;
0036 std::vector<std::vector<float>> fcs_;
0037 std::vector<std::vector<float>> pedestalfcs_;
0038 std::vector<std::vector<int>> tdcs_;
0039 std::vector<std::vector<int>> capids_;
0040 std::vector<std::vector<bool>> oks_;
0041
0042 QIE10DigiSortedTable(const std::vector<HcalDetId>& dids, const unsigned int nTS);
0043 void add(const QIE10DataFrame* digi, const edm::ESHandle<HcalDbService>& dbService);
0044 void reset();
0045 };
0046
0047 typedef QIE10DigiSortedTable HFDigiSortedTable;
0048
0049 #endif