39 std::vector<DetId>::const_iterator barrelIt;
41 for (barrelIt=barrelCells.begin(); barrelIt!=barrelCells.end(); barrelIt++) {
44 int sign = eb.
zside()>0 ? 1 : 0;
46 int chs= (*chStatus)[*barrelIt].getStatusCode() & 0x001F;
47 if( chs <= statusThresold)
70 std::vector<DetId>::const_iterator endcapIt;
71 for (endcapIt=endcapCells.begin(); endcapIt!=endcapCells.end(); endcapIt++) {
78 int sign = ee.
zside()>0 ? 1 : 0;
88 for (
int i=0;
i<4;
i++) {
89 int iplus1 =
i==3 ? 0 :
i+1;
91 cellCorners[
i].eta()*float(cellCorners[iplus1].
phi()) -
92 cellCorners[iplus1].eta()*float(cellCorners[
i].
phi());
97 cellArea_[ix][iy] = fabs(cellArea_[ix][iy])/2.;
107 int chs= (*chStatus)[*endcapIt].getStatusCode() & 0x001F;
108 if( chs <= statusThresold)
121 std::cout <<
"Eta ring " <<
ring <<
" : " << eta_ring << std::endl;
145 for(
int sign=0; sign<
kSides; sign++){
185 for (endcapIt=endcapCells.begin(); endcapIt!=endcapCells.end();endcapIt++){
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
void setup(const CaloGeometry *geometry, const EcalChannelStatus *chstatus, int statusThreshold)
int nRing_[kEndcEtaRings]
int nBads_endc[kEndcEtaRings]
static const int kBarlRings
bool goodCell_barl[kBarlRings][kBarlWedges][kSides]
Geom::Phi< T > phi() const
Global3DPoint GlobalPoint
GlobalPoint cellPos_[kEndcWedgesX][kEndcWedgesY]
static const int kMaxEndciPhi
const GlobalPoint & getPosition() const
Returns the position of reference for this cell.
double phi_endc_[kMaxEndciPhi][kEndcEtaRings]
virtual const CaloCellGeometry * getGeometry(const DetId &id) const
Get the cell geometry of a given detector id. Should return false if not found.
int iphi() const
get the crystal iphi
static const int kEndcWedgesX
int endcapRing_[kEndcWedgesX][kEndcWedgesY]
static const int kEndcEtaRings
int ieta() const
get the crystal ieta
std::vector< DetId > getValidDetIds() const
Get the list of all valid detector ids.
double cellPhi_[kEndcWedgesX][kEndcWedgesY]
ESHandle< TrackerGeometry > geometry
double meanCellArea_[kEndcEtaRings]
double cellArea_[kEndcWedgesX][kEndcWedgesY]
int nBads_barl[kBarlRings]
virtual const CornersVec & getCorners() const =0
Returns the corner points of this cell's volume.
int zside() const
get the z-side of the crystal (1/-1)
bool goodCell_endc[kEndcWedgesX][kEndcWedgesX][kSides]
double etaBoundary_[kEndcEtaRings+1]
static const int kEndcWedgesY