File indexing completed on 2024-04-06 12:05:37
0001 #ifndef HODigiSortedTable_h
0002 #define HODigiSortedTable_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 HODigiSortedTable {
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<int> fiberIdleOffsets_;
0029 std::vector<int> sois_;
0030 std::vector<bool> valids_;
0031
0032 unsigned int nTS_;
0033 std::vector<std::vector<int>> adcs_;
0034 std::vector<std::vector<float>> fcs_;
0035 std::vector<std::vector<float>> pedestalfcs_;
0036 std::vector<std::vector<int>> capids_;
0037 std::vector<std::vector<int>> fibers_;
0038 std::vector<std::vector<int>> fiberChans_;
0039 std::vector<std::vector<int>> dvs_;
0040 std::vector<std::vector<int>> ers_;
0041
0042 HODigiSortedTable(const std::vector<HcalDetId>& dids, const unsigned int nTS);
0043 void add(const HODataFrame* digi, const edm::ESHandle<HcalDbService>& dbService);
0044 void reset();
0045 };
0046
0047 #endif