Analyze.
93 int gt_L1A = 0, gt_OrbitNumber = 0, gt_BX = 0;
94 int esDCC_L1A_MostFreqCounts = 0;
95 int esDCC_BX_MostFreqCounts = 0;
96 int esDCC_OrbitNumber_MostFreqCounts = 0;
101 int gtFedDataSize = 0;
110 if ( gtFedDataSize > 0 ) {
119 map<int, int> esDCC_L1A_FreqMap;
120 map<int, int> esDCC_BX_FreqMap;
121 map<int, int> esDCC_OrbitNumber_FreqMap;
127 esDCC_L1A_FreqMap[esdcc.
getLV1()]++;
128 esDCC_BX_FreqMap[esdcc.
getBX()]++;
131 if (esDCC_L1A_FreqMap[esdcc.
getLV1()] > esDCC_L1A_MostFreqCounts) {
132 esDCC_L1A_MostFreqCounts = esDCC_L1A_FreqMap[esdcc.
getLV1()];
136 if (esDCC_BX_FreqMap[esdcc.
getBX()] > esDCC_BX_MostFreqCounts) {
137 esDCC_BX_MostFreqCounts = esDCC_BX_FreqMap[esdcc.
getBX()];
138 gt_BX = esdcc.
getBX();
141 if (esDCC_OrbitNumber_FreqMap[esdcc.
getOrbitNumber()] > esDCC_OrbitNumber_MostFreqCounts) {
142 esDCC_OrbitNumber_MostFreqCounts = esDCC_OrbitNumber_FreqMap[esdcc.
getOrbitNumber()];
148 LogWarning(
"ESRawDataTask") <<
"dccCollections not available";
153 LogWarning(
"ESRawDataTask") <<
"FEDRawDataCollection not available";
157 vector<int> fiberStatus;
168 if (dcc.
getLV1() != gt_L1A) {
171 Float_t l1a_diff = dcc.
getLV1() - gt_L1A;
172 if (l1a_diff > 100) l1a_diff = 100;
173 else if (l1a_diff < -100) l1a_diff = -100;
177 if (dcc.
getBX() != gt_BX) {
180 Float_t bx_diff = dcc.
getBX() - gt_BX;
181 if (bx_diff > 100) bx_diff = 100;
182 else if (bx_diff < -100) bx_diff = -100;
189 if (orbitnumber_diff > 100) orbitnumber_diff = 100;
190 else if (orbitnumber_diff < -100) orbitnumber_diff = -100;
MonitorElement * meOrbitNumberDiff_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
MonitorElement * meOrbitNumberDCCErrors_
std::vector< ESDCCHeaderBlock >::const_iterator const_iterator
edm::EDGetTokenT< FEDRawDataCollection > FEDRawDataCollection_
int bunchCrossing() const
size_t size() const
Lenght of the data buffer in bytes.
MonitorElement * meL1ADCCErrors_
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
MonitorElement * meBXDCCErrors_
const_iterator end() const
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_
const_iterator begin() const