CMS 3D CMS Logo

EcalBadCrystalsCount.h
Go to the documentation of this file.
3 
4 template <class Item>
5 void getBarrelErrorSummary(typename std::vector<Item> vItems, long unsigned int& errorCount) {
6  unsigned int stcode = 0;
7  for (typename std::vector<Item>::const_iterator iItems = vItems.begin(); iItems != vItems.end(); ++iItems) {
8  stcode = iItems->getStatusCode();
9  if (stcode != 0)
10  errorCount++;
11  }
12 }
13 
14 template <class Item>
15 void getEndCapErrorSummary(typename std::vector<Item> vItems,
16  long unsigned int& errorCountEE1,
17  long unsigned int& errorCountEE2,
18  long unsigned int& totalEE1,
19  long unsigned int& totalEE2) {
20  unsigned int stcode = 0;
21  EEDetId endcapId;
22  long unsigned int count = 0;
23 
24  for (typename std::vector<Item>::const_iterator iItems = vItems.begin(); iItems != vItems.end(); ++iItems) {
25  stcode = iItems->getStatusCode();
26  if (stcode != 0) {
28  if (endcapId.zside() == -1)
29  errorCountEE1++;
30  if (endcapId.zside() == +1)
31  errorCountEE2++;
32  }
33 
34  if (endcapId.zside() == -1)
35  totalEE1++;
36  if (endcapId.zside() == +1)
37  totalEE2++;
38  count++;
39  }
40 }
EBDetId.h
EEDetId.h
getBarrelErrorSummary
void getBarrelErrorSummary(typename std::vector< Item > vItems, long unsigned int &errorCount)
Definition: EcalBadCrystalsCount.h:5
EEDetId::detIdFromDenseIndex
static EEDetId detIdFromDenseIndex(uint32_t din)
Definition: EEDetId.h:220
getEndCapErrorSummary
void getEndCapErrorSummary(typename std::vector< Item > vItems, long unsigned int &errorCountEE1, long unsigned int &errorCountEE2, long unsigned int &totalEE1, long unsigned int &totalEE2)
Definition: EcalBadCrystalsCount.h:15
submitPVResolutionJobs.count
count
Definition: submitPVResolutionJobs.py:352
EEDetId::zside
int zside() const
Definition: EEDetId.h:71
EEDetId
Definition: EEDetId.h:14