Analyze.
92 int gt_L1A = 0, gt_OrbitNumber = 0, gt_BX = 0;
93 int esDCC_L1A_MostFreqCounts = 0;
94 int esDCC_BX_MostFreqCounts = 0;
95 int esDCC_OrbitNumber_MostFreqCounts = 0;
100 int gtFedDataSize = 0;
109 if ( gtFedDataSize > 0 ) {
118 map<int, int> esDCC_L1A_FreqMap;
119 map<int, int> esDCC_BX_FreqMap;
120 map<int, int> esDCC_OrbitNumber_FreqMap;
126 esDCC_L1A_FreqMap[esdcc.
getLV1()]++;
127 esDCC_BX_FreqMap[esdcc.
getBX()]++;
130 if (esDCC_L1A_FreqMap[esdcc.
getLV1()] > esDCC_L1A_MostFreqCounts) {
131 esDCC_L1A_MostFreqCounts = esDCC_L1A_FreqMap[esdcc.
getLV1()];
135 if (esDCC_BX_FreqMap[esdcc.
getBX()] > esDCC_BX_MostFreqCounts) {
136 esDCC_BX_MostFreqCounts = esDCC_BX_FreqMap[esdcc.
getBX()];
137 gt_BX = esdcc.
getBX();
140 if (esDCC_OrbitNumber_FreqMap[esdcc.
getOrbitNumber()] > esDCC_OrbitNumber_MostFreqCounts) {
141 esDCC_OrbitNumber_MostFreqCounts = esDCC_OrbitNumber_FreqMap[esdcc.
getOrbitNumber()];
147 LogWarning(
"ESRawDataTask") <<
"dccCollections not available";
152 LogWarning(
"ESRawDataTask") <<
"FEDRawDataCollection not available";
156 vector<int> fiberStatus;
167 if (dcc.
getLV1() != gt_L1A) {
170 Float_t l1a_diff = dcc.
getLV1() - gt_L1A;
171 if (l1a_diff > 100) l1a_diff = 100;
172 else if (l1a_diff < -100) l1a_diff = -100;
176 if (dcc.
getBX() != gt_BX) {
179 Float_t bx_diff = dcc.
getBX() - gt_BX;
180 if (bx_diff > 100) bx_diff = 100;
181 else if (bx_diff < -100) bx_diff = -100;
188 if (orbitnumber_diff > 100) orbitnumber_diff = 100;
189 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