Analyze.
168 int gt_L1A = 0, gt_OrbitNumber = 0, gt_BX = 0;
169 int esDCC_L1A_MostFreqCounts = 0;
170 int esDCC_BX_MostFreqCounts = 0;
171 int esDCC_OrbitNumber_MostFreqCounts = 0;
176 int gtFedDataSize = 0;
181 const FEDRawData& gtFedData = allFedRawData->FEDData(812);
185 if ( gtFedDataSize > 0 ) {
194 map<int, int> esDCC_L1A_FreqMap;
195 map<int, int> esDCC_BX_FreqMap;
196 map<int, int> esDCC_OrbitNumber_FreqMap;
202 esDCC_L1A_FreqMap[esdcc.
getLV1()]++;
203 esDCC_BX_FreqMap[esdcc.
getBX()]++;
206 if (esDCC_L1A_FreqMap[esdcc.
getLV1()] > esDCC_L1A_MostFreqCounts) {
207 esDCC_L1A_MostFreqCounts = esDCC_L1A_FreqMap[esdcc.
getLV1()];
211 if (esDCC_BX_FreqMap[esdcc.
getBX()] > esDCC_BX_MostFreqCounts) {
212 esDCC_BX_MostFreqCounts = esDCC_BX_FreqMap[esdcc.
getBX()];
213 gt_BX = esdcc.
getBX();
216 if (esDCC_OrbitNumber_FreqMap[esdcc.
getOrbitNumber()] > esDCC_OrbitNumber_MostFreqCounts) {
217 esDCC_OrbitNumber_MostFreqCounts = esDCC_OrbitNumber_FreqMap[esdcc.
getOrbitNumber()];
232 vector<int> fiberStatus;
243 if (dcc.
getLV1() != gt_L1A) {
246 Float_t l1a_diff = dcc.
getLV1() - gt_L1A;
247 if (l1a_diff > 100) l1a_diff = 100;
248 else if (l1a_diff < -100) l1a_diff = -100;
252 if (dcc.
getBX() != gt_BX) {
255 Float_t bx_diff = dcc.
getBX() - gt_BX;
256 if (bx_diff > 100) bx_diff = 100;
257 else if (bx_diff < -100) bx_diff = -100;
264 if (orbitnumber_diff > 100) orbitnumber_diff = 100;
265 else if (orbitnumber_diff < -100) orbitnumber_diff = -100;
MonitorElement * meOrbitNumberDiff_
MonitorElement * meOrbitNumberDCCErrors_
std::vector< T >::const_iterator const_iterator
int bunchCrossing() const
edm::InputTag dccCollections_
size_t size() const
Lenght of the data buffer in bytes.
MonitorElement * meL1ADCCErrors_
MonitorElement * meBXDCCErrors_
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
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_
edm::InputTag FEDRawDataCollection_