Analyze.
82 int gt_L1A = 0, gt_OrbitNumber = 0, gt_BX = 0;
83 int esDCC_L1A_MostFreqCounts = 0;
84 int esDCC_BX_MostFreqCounts = 0;
85 int esDCC_OrbitNumber_MostFreqCounts = 0;
90 int gtFedDataSize = 0;
94 const FEDRawData& gtFedData = allFedRawData->FEDData(812);
98 if (gtFedDataSize > 0) {
105 map<int, int> esDCC_L1A_FreqMap;
106 map<int, int> esDCC_BX_FreqMap;
107 map<int, int> esDCC_OrbitNumber_FreqMap;
113 esDCC_L1A_FreqMap[esdcc.
getLV1()]++;
114 esDCC_BX_FreqMap[esdcc.
getBX()]++;
117 if (esDCC_L1A_FreqMap[esdcc.
getLV1()] > esDCC_L1A_MostFreqCounts) {
118 esDCC_L1A_MostFreqCounts = esDCC_L1A_FreqMap[esdcc.
getLV1()];
122 if (esDCC_BX_FreqMap[esdcc.
getBX()] > esDCC_BX_MostFreqCounts) {
123 esDCC_BX_MostFreqCounts = esDCC_BX_FreqMap[esdcc.
getBX()];
124 gt_BX = esdcc.
getBX();
127 if (esDCC_OrbitNumber_FreqMap[esdcc.
getOrbitNumber()] > esDCC_OrbitNumber_MostFreqCounts) {
128 esDCC_OrbitNumber_MostFreqCounts = esDCC_OrbitNumber_FreqMap[esdcc.
getOrbitNumber()];
133 LogWarning(
"ESRawDataTask") <<
"dccCollections not available";
137 LogWarning(
"ESRawDataTask") <<
"FEDRawDataCollection not available";
141 vector<int> fiberStatus;
151 if (dcc.
getLV1() != gt_L1A) {
154 Float_t l1a_diff = dcc.
getLV1() - gt_L1A;
157 else if (l1a_diff < -100)
162 if (dcc.
getBX() != gt_BX) {
165 Float_t bx_diff = dcc.
getBX() - gt_BX;
168 else if (bx_diff < -100)
176 if (orbitnumber_diff > 100)
177 orbitnumber_diff = 100;
178 else if (orbitnumber_diff < -100)
179 orbitnumber_diff = -100;
MonitorElement * meOrbitNumberDiff_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
MonitorElement * meOrbitNumberDCCErrors_
std::vector< T >::const_iterator const_iterator
edm::EDGetTokenT< FEDRawDataCollection > FEDRawDataCollection_
int bunchCrossing() const
size_t size() const
Lenght of the data buffer in bytes.
MonitorElement * meL1ADCCErrors_
MonitorElement * meBXDCCErrors_
edm::EDGetTokenT< ESRawDataCollection > dccCollections_
unsigned long long uint64_t
MonitorElement * meL1ADiff_
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
MonitorElement * meBXDiff_
Log< level::Warning, false > LogWarning