Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:40:23

0001 #ifndef QIE11DigiSortedTable_h
0002 #define QIE11DigiSortedTable_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 QIE11DigiSortedTable {
0019 public:
0020   std::vector<HcalDetId> dids_;
0021   std::map<HcalDetId, unsigned int> did_indexmap_;  // Use std::map for efficient lookup, rather than std::find
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<bool> capidErrors_;
0030   std::vector<int> flags_;
0031   std::vector<int> sois_;
0032   std::vector<bool> valids_;
0033   std::vector<uint8_t> sipmTypes_;
0034 
0035   unsigned int nTS_;
0036   std::vector<std::vector<int>> adcs_;
0037   std::vector<std::vector<float>> fcs_;
0038   std::vector<std::vector<float>> pedestalfcs_;
0039   std::vector<std::vector<int>> tdcs_;
0040   std::vector<std::vector<int>> capids_;
0041 
0042   QIE11DigiSortedTable(const std::vector<HcalDetId>& dids, const unsigned int nTS);
0043   void add(const QIE11DataFrame* digi, const edm::ESHandle<HcalDbService>& dbService);
0044   void reset();
0045 };
0046 
0047 typedef QIE11DigiSortedTable HBDigiSortedTable;
0048 typedef QIE11DigiSortedTable HEDigiSortedTable;
0049 #endif