CMS 3D CMS Logo

Functions
EcalBadCrystalsCount.h File Reference
#include "DataFormats/EcalDetId/interface/EBDetId.h"
#include "DataFormats/EcalDetId/interface/EEDetId.h"

Go to the source code of this file.

Functions

template<class Item >
void getBarrelErrorSummary (typename std::vector< Item > vItems, long unsigned int &errorCount)
 
template<class Item >
void getEndCapErrorSummary (typename std::vector< Item > vItems, long unsigned int &errorCountEE1, long unsigned int &errorCountEE2, long unsigned int &totalEE1, long unsigned int &totalEE2)
 

Function Documentation

template<class Item >
void getBarrelErrorSummary ( typename std::vector< Item >  vItems,
long unsigned int &  errorCount 
)

Definition at line 5 of file EcalBadCrystalsCount.h.

5  {
6  unsigned int stcode = 0;
7  for(typename std::vector<Item>::const_iterator iItems = vItems.begin();
8  iItems != vItems.end(); ++iItems){
9 
10  stcode=iItems->getStatusCode();
11  if(stcode!=0)
12  errorCount ++;
13 
14  }
15 }
template<class Item >
void getEndCapErrorSummary ( typename std::vector< Item >  vItems,
long unsigned int &  errorCountEE1,
long unsigned int &  errorCountEE2,
long unsigned int &  totalEE1,
long unsigned int &  totalEE2 
)

Definition at line 18 of file EcalBadCrystalsCount.h.

References KineDebug3::count(), EEDetId::detIdFromDenseIndex(), and EEDetId::zside().

19  {
20 
21  unsigned int stcode = 0;
22  EEDetId endcapId;
23  long unsigned int count=0;
24 
25  for(typename std::vector<Item>::const_iterator iItems = vItems.begin();
26  iItems != vItems.end(); ++iItems){
27 
28  stcode=iItems->getStatusCode();
29  if(stcode!=0){
30  endcapId = EEDetId::detIdFromDenseIndex(count);
31  if(endcapId.zside() == -1) errorCountEE1++;
32  if(endcapId.zside() == +1) errorCountEE2++;
33  }
34 
35  if(endcapId.zside() == -1) totalEE1++;
36  if(endcapId.zside() == +1) totalEE2++;
37  count++;
38  }
39 
40 
41 }
static EEDetId detIdFromDenseIndex(uint32_t din)
Definition: EEDetId.h:220
int zside() const
Definition: EEDetId.h:71