11 int nEtaHB, nEtaHO, nEtaHF;
18 << nEtaHO <<
":" << nEtaHF <<
":" <<
hcaltopo->
isBH() << std::endl;
45 int nEtaSinglePhi_, nEtaDoublePhi_, nEtaQuadPhi_;
48 nEtaQuadPhi_ =
lastHFRing_ - firstHFQuadPhiRing_ + 1;
56 std::cout <<
"CaloTowerTopology: (3) " << nEtaSinglePhi_ <<
":" 57 << nEtaDoublePhi_ <<
":" << nEtaQuadPhi_ <<
":" <<
nSinglePhi_ 98 int ia =
id.ietaAbs();
102 && (ip >= 1) && (ip <= 72)
111 std::vector<DetId>
dd;
122 if ((iphi%2)==0) iphi--;
128 if (((iphi-1)%4)==0) {
129 if (iphi==1) iphi=71;
143 std::vector<DetId>
dd;
155 if ((iphi%2)==0) iphi--;
161 if (((iphi-1)%4)==0) {
162 if (iphi==1) iphi=71;
178 int iphi_n=tid.
iphi()+1;
179 if (iphi_n>72) iphi_n=1;
182 if (iphi_n>72) iphi_n-=72;
185 if (iphi_n>72) iphi_n-=72;
188 std::vector<DetId>
dd;
196 int iphi_s=tid.
iphi()-1;
197 if (iphi_s==0) iphi_s=72;
200 if (iphi_s<=0) iphi_s+=72;
205 std::vector<DetId>
dd;
211 return std::vector<DetId>();
215 return std::vector<DetId>();
220 const int ie ( tid.
ietaAbs() );
221 const int ip ( tid.
iphi() - 1 ) ;
virtual std::vector< DetId > down(const DetId &id) const
virtual std::vector< DetId > south(const DetId &id) const
int convertHcaltoCT(int hcal_ieta, HcalSubdetector subdet) const
virtual bool valid(const DetId &id) const
is this detid present in the Topology?
int ietaAbs() const
get the absolute value of the tower ieta
CaloTopology const * topology(0)
uint32_t kSizeForDenseIndexing
CaloTowerTopology(const HcalTopology *topology)
standard constructor
int firstHEDoublePhiRing_
CaloTowerDetId detIdFromDenseIndex(uint32_t din) const
static const int SubdetId
virtual std::vector< DetId > north(const DetId &id) const
int iphi() const
get the tower iphi
int firstHEDoublePhiRing() const
const HcalTopology * hcaltopo
uint32_t denseIndex(const DetId &id) const
virtual std::vector< DetId > west(const DetId &id) const
int zside() const
get the z-side of the tower (1/-1)
int firstHFQuadPhiRing() const
virtual std::vector< DetId > east(const DetId &id) const
int convertCTtoHcal(int ct_ieta) const
int firstHEQuadPhiRing() const
virtual std::vector< DetId > up(const DetId &id) const
int ieta() const
get the tower ieta
bool validDenseIndex(uint32_t din) const
virtual bool validDetId(const CaloTowerDetId &id) const