CMS 3D CMS Logo

HcalDetId Class Reference

Cell identifier class for the HCAL subdetectors, precision readout cells only. More...

#include <DataFormats/HcalDetId/interface/HcalDetId.h>

Inheritance diagram for HcalDetId:

DetId

List of all members.

Public Types

enum  { kSizeForDenseIndexing = 2*kHcalhalf }

Public Member Functions

int crystal_ieta_high () const
 get the largest crystal_ieta of the crystal in front of this tower (HB and HE tower 17 only)
int crystal_ieta_low () const
 get the smallest crystal_ieta of the crystal in front of this tower (HB and HE tower 17 only)
int crystal_iphi_high () const
 get the largest crystal_iphi of the crystal in front of this tower (HB and HE tower 17 only)
int crystal_iphi_low () const
 get the smallest crystal_iphi of the crystal in front of this tower (HB and HE tower 17 only)
uint32_t denseIndex () const
int depth () const
 get the tower depth
int hashed_index () const
 HcalDetId (const DetId &id)
 Constructor from a generic cell id.
 HcalDetId (HcalSubdetector subdet, int tower_ieta, int tower_iphi, int depth)
 Constructor from subdetector, signed tower ieta,iphi,and depth.
 HcalDetId (uint32_t rawid)
 Create cellid from raw id (0=invalid tower id).
 HcalDetId ()
 Create a null cellid.
int ieta () const
 get the cell ieta
int ietaAbs () const
 get the absolute value of the cell ieta
int iphi () const
 get the cell iphi
HcalDetIdoperator= (const DetId &id)
 Assignment from a generic cell id.
HcalSubdetector subdet () const
 get the subdetector
int zside () const
 get the z-side of the cell (1/-1)

Static Public Member Functions

static HcalDetId detIdFromDenseIndex (uint32_t di)
static bool validDenseIndex (uint32_t din)
static bool validDetId (HcalSubdetector subdet, int tower_ieta, int tower_iphi, int depth)

Static Public Attributes

static const HcalDetId Undefined

Private Types

enum  {
  kHBhalf = 1296, kHEhalf = 1296, kHOhalf = 1080, kHFhalf = 864,
  kHcalhalf = kHBhalf + kHEhalf + kHOhalf + kHFhalf
}


Detailed Description

Cell identifier class for the HCAL subdetectors, precision readout cells only.

Date
2008/06/25 22:13:29
Revision
1.12
Author:
J. Mans - Minnesota
Rev.1.11: A.Kubik,R.Ofierzynski: add the hashed_index

Definition at line 19 of file HcalDetId.h.


Member Enumeration Documentation

anonymous enum [private]

Enumerator:
kHBhalf 
kHEhalf 
kHOhalf 
kHFhalf 
kHcalhalf 

Definition at line 71 of file HcalDetId.h.

00071            { kHBhalf = 1296 ,
00072              kHEhalf = 1296 ,
00073              kHOhalf = 1080 ,
00074              kHFhalf = 864  ,
00075              kHcalhalf = kHBhalf + kHEhalf + kHOhalf + kHFhalf } ;

anonymous enum

Enumerator:
kSizeForDenseIndexing 

Definition at line 79 of file HcalDetId.h.


Constructor & Destructor Documentation

HcalDetId::HcalDetId (  ) 

Create a null cellid.

Definition at line 6 of file HcalDetId.cc.

Referenced by detIdFromDenseIndex().

00006                      : DetId() {
00007 }

HcalDetId::HcalDetId ( uint32_t  rawid  ) 

Create cellid from raw id (0=invalid tower id).

Definition at line 9 of file HcalDetId.cc.

00009                                    : DetId(rawid) {
00010 }

HcalDetId::HcalDetId ( HcalSubdetector  subdet,
int  tower_ieta,
int  tower_iphi,
int  depth 
)

Constructor from subdetector, signed tower ieta,iphi,and depth.

Definition at line 12 of file HcalDetId.cc.

References DetId::id_.

00012                                                                                       : DetId(Hcal,subdet) {
00013   // (no checking at this point!)
00014   id_ |= ((depth&0x7)<<14) |
00015     ((tower_ieta>0)?(0x2000|(tower_ieta<<7)):((-tower_ieta)<<7)) |
00016     (tower_iphi&0x7F);
00017 }

HcalDetId::HcalDetId ( const DetId id  ) 

Constructor from a generic cell id.

Definition at line 19 of file HcalDetId.cc.

References DetId::det(), Exception, DetId::Hcal, HcalBarrel, HcalEndcap, HcalForward, HcalOuter, DetId::id_, DetId::null(), DetId::rawId(), subdet(), and DetId::subdetId().

00019                                      {
00020   if (!gen.null()) {
00021     HcalSubdetector subdet=(HcalSubdetector(gen.subdetId()));
00022     if (gen.det()!=Hcal || 
00023         (subdet!=HcalBarrel && subdet!=HcalEndcap && 
00024          subdet!=HcalOuter && subdet!=HcalForward ))
00025       {
00026         throw cms::Exception("Invalid DetId") << "Cannot initialize HcalDetId from " << std::hex << gen.rawId() << std::dec; 
00027       }  
00028   }
00029   id_=gen.rawId();
00030 }


Member Function Documentation

int HcalDetId::crystal_ieta_high (  )  const [inline]

get the largest crystal_ieta of the crystal in front of this tower (HB and HE tower 17 only)

Definition at line 47 of file HcalDetId.h.

References ieta(), and zside().

Referenced by CaloTowerConstituentsMap::constituentsOf().

00047 { return ((ieta()-zside())*5)+5*zside(); }

int HcalDetId::crystal_ieta_low (  )  const [inline]

get the smallest crystal_ieta of the crystal in front of this tower (HB and HE tower 17 only)

Definition at line 45 of file HcalDetId.h.

References ieta(), and zside().

Referenced by CaloTowerConstituentsMap::constituentsOf().

00045 { return ((ieta()-zside())*5)+zside(); }

int HcalDetId::crystal_iphi_high (  )  const

get the largest crystal_iphi of the crystal in front of this tower (HB and HE tower 17 only)

Definition at line 52 of file HcalDetId.cc.

References iphi().

Referenced by CaloTowerConstituentsMap::constituentsOf().

00052                                        { 
00053   int simple_iphi=((iphi()-1)*5)+5; 
00054   simple_iphi+=10;
00055   return ((simple_iphi>360)?(simple_iphi-360):(simple_iphi));
00056 }

int HcalDetId::crystal_iphi_low (  )  const

get the smallest crystal_iphi of the crystal in front of this tower (HB and HE tower 17 only)

Definition at line 46 of file HcalDetId.cc.

References iphi().

Referenced by CaloTowerConstituentsMap::constituentsOf().

00046                                       { 
00047   int simple_iphi=((iphi()-1)*5)+1; 
00048   simple_iphi+=10;
00049   return ((simple_iphi>360)?(simple_iphi-360):(simple_iphi));
00050 }

uint32_t HcalDetId::denseIndex (  )  const [inline]

Definition at line 61 of file HcalDetId.h.

References hashed_index().

00061 { return hashed_index() ; }

int HcalDetId::depth (  )  const [inline]

get the tower depth

Definition at line 43 of file HcalDetId.h.

References DetId::id_.

Referenced by HcaluLUTTPGCoder::adc2Linear(), HcalTriggerPrimitiveAlgo::addSignal(), HFLightCalRand::analyze(), HCALRecHitAnalyzer::analyze(), HFLightCal::analyze(), JetToDigiDump::analyze(), cms::HcalConstantsASCIIWriter::analyze(), HFPreLightCal::analyze(), CaloTowersCreationAlgo::assignHit(), CaloRecHitCandidateProducer::cellTresholdAndWeight(), CaloGeometryHelper::getClosestCell(), CaloTowersCreationAlgo::getThresholdAndWeight(), hashed_index(), HcalGenericDetId::hashedId(), hpdId(), HcalTopology::incrementDepth(), DetIdInfo::info(), HcalText2DetIdConverter::init(), HcalHardcodeGeometryLoader::makeCell(), JetAnalyzer::MakeCellListFromCaloTowers(), HcalLEDMonitor::perChanHists(), HcalLaserMonitor::perChanHists(), HcalCableMapper::process(), HcalDigiMonitor::processEvent(), HcalTrigPrimMonitor::processEvent(), HcalPedestalMonitor::processEvent(), HcalDeadCellMonitor::processEvent_digi(), HcalHotCellMonitor::processEvent_pedestal(), HcalDummyHitProducer::produce(), CaloTowersCreationAlgo::rescale(), HcalSimParameterMap::simParameters(), and HcalTrigTowerGeometry::towerIds().

00043 { return (id_>>14)&0x7; }

HcalDetId HcalDetId::detIdFromDenseIndex ( uint32_t  di  )  [static]

Definition at line 154 of file HcalDetId.cc.

References HcalBarrel, HcalDetId(), HcalEndcap, HcalForward, HcalOuter, in, kHBhalf, kHEhalf, kHFhalf, kHOhalf, and validDenseIndex().

00155 {
00156     if( validDenseIndex( di ) )
00157     {
00158       HcalSubdetector sd ( HcalBarrel ) ;
00159       int ie ( 0 ) ;
00160       int ip ( 0 ) ;
00161       int dp ( 0 ) ;
00162       int in ( di ) ;
00163       int iz ( 1 ) ;
00164       if( in > 2*( kHBhalf + kHEhalf + kHOhalf ) - 1 )
00165       {
00166          sd  = HcalForward ;
00167          in -= 2*( kHBhalf + kHEhalf + kHOhalf ) ; 
00168          iz  = ( in<kHFhalf ? 1 : -1 ) ;
00169          in %= kHFhalf ; 
00170          ip  = 4*( in/48 ) ;
00171          in %= 48 ;
00172          ip += 1 + ( in>21 ? 2 : 0 ) ;
00173          if( 3 == ip%4 ) in -= 22 ;
00174          ie  = 29 + in/2 ;
00175          dp  = 1 + in%2 ;
00176       }
00177       else
00178       {
00179          if( in > 2*( kHBhalf + kHEhalf ) - 1 )
00180          {
00181             sd  = HcalOuter ;
00182             in -= 2*( kHBhalf + kHEhalf ) ; 
00183             iz  = ( in<kHOhalf ? 1 : -1 ) ;
00184             in %= kHOhalf ; 
00185             dp  = 4 ;
00186             ip  = 1 + in/15 ;
00187             ie  = 1 + ( in - 15*( ip - 1 ) ) ;
00188          }
00189          else
00190          {
00191             if( in > 2*kHBhalf - 1 )
00192             {
00193                sd  = HcalEndcap ;
00194                in -= 2*kHBhalf ;
00195                iz  = ( in<kHEhalf ? 1 : -1 ) ;
00196                in %= kHEhalf ; 
00197                ip  = 2*( in/36 ) ;
00198                in %= 36 ;
00199                ip += 1 + in/28 ;
00200                if( 0 == ip%2 ) in %= 28 ;
00201                ie  = 15 + ( in<2 ? 1 + in : 2 + 
00202                             ( in<20 ? 1 + ( in - 2 )/2 : 9 +
00203                               ( in<26 ? 1 + ( in - 20 )/3 : 3 ) ) ) ;
00204                dp  = ( in<1 ? 3 :
00205                        ( in<2 ? 1 : 
00206                          ( in<20 ? 1 + ( in - 2 )%2 : 
00207                            ( in<26 ? 1 + ( in - 20 )%3 : 
00208                              ( 1 + ( in - 26 )%2 ) ) ) ) ) ;
00209             }
00210             else // barrel
00211             {
00212                iz  = ( di<kHBhalf ? 1 : -1 ) ;
00213                in %= kHBhalf ; 
00214                ip = in/18 + 1 ;
00215                in %= 18 ;
00216                if( in < 14 )
00217                {
00218                   dp = 1 ;
00219                   ie = in + 1 ;
00220                }
00221                else
00222                {
00223                   in %= 14 ;
00224                   dp =  1 + in%2 ;
00225                   ie = 15 + in/2 ;
00226                }
00227             }
00228          }
00229       }
00230       return HcalDetId( sd, iz*int(ie), ip, dp ) ;
00231    }
00232    else
00233    {
00234       return HcalDetId() ;
00235    }
00236 }

int HcalDetId::hashed_index (  )  const

Definition at line 118 of file HcalDetId.cc.

References depth(), HcalBarrel, HcalEndcap, HcalForward, HcalOuter, ietaAbs(), iphi(), kHBhalf, kHEhalf, kHFhalf, kHOhalf, subdet(), and zside().

Referenced by HcalRecHitsMaker::createVectorOfSubdetectorCells(), denseIndex(), HcalRecHitsMaker::init(), CalorimetryManager::reconstruct(), and CalorimetryManager::reconstructECAL().

00119 {
00120    const HcalSubdetector sd ( subdet()  ) ;
00121    const int             ip ( iphi()    ) ;
00122    const int             ie ( ietaAbs() ) ;
00123    const int             dp ( depth()   ) ;
00124    const int             zn ( zside() < 0 ? 1 : 0 ) ;
00125 
00126    // HB valid DetIds: phi=1-72,eta=1-14,depth=1; phi=1-72,eta=15-16,depth=1-2
00127   
00128    // HE valid DetIds: phi=1-72,eta=16-17,depth=1; phi=1-72,eta=18-20,depth=1-2; 
00129    //                  phi=1-71(in steps of 2),eta=21-26,depth=1-2; phi=1-71(in steps of 2),eta=27-28,depth=1-3
00130    //                  phi=1-71(in steps of 2),eta=29,depth=1-2
00131 
00132    // HO valid DetIds: phi=1-72,eta=1-15,depth=4!
00133 
00134    // HF valid DetIds: phi=1-71(in steps of 2),eta=29-39,depth=1-2; phi=3-71(in steps of 4),eta=40-41,depth=1-2
00135 
00136    return ( ( sd == HcalBarrel ) ?
00137             ( ip - 1 )*18 + dp - 1 + ie - ( ie<16 ? 1 : 0 ) + zn*kHBhalf :
00138             ( ( sd == HcalEndcap ) ?
00139               2*kHBhalf + ( ip - 1 )*8 + ( ip/2 )*20 +
00140               ( ( ie==16 || ie==17 ) ? ie - 16 :
00141                 ( ( ie>=18 && ie<=20 ) ? 2 + 2*( ie - 18 ) + dp - 1 :
00142                   ( ( ie>=21 && ie<=26 ) ? 8 + 2*( ie - 21 ) + dp - 1 :
00143                     ( ( ie>=27 && ie<=28 ) ? 20 + 3*( ie - 27 ) + dp - 1 :
00144                       26 + 2*( ie - 29 ) + dp - 1 ) ) ) ) + zn*kHEhalf :
00145               ( ( sd == HcalOuter ) ?
00146                 2*kHBhalf + 2*kHEhalf + ( ip - 1 )*15 + ( ie - 1 ) + zn*kHOhalf :
00147                 ( ( sd == HcalForward ) ?
00148                   2*kHBhalf + 2*kHEhalf + 2*kHOhalf + 
00149                   ( ( ip - 1 )/4 )*4 + ( ( ip - 1 )/2 )*22 + 
00150                   2*( ie - 29 ) + ( dp - 1 ) + zn*kHFhalf : -1 ) ) ) ) ; 
00151 }

int HcalDetId::ieta (  )  const [inline]

get the cell ieta

Definition at line 39 of file HcalDetId.h.

References ietaAbs(), and zside().

Referenced by HcaluLUTTPGCoder::adc2Linear(), HFLightCalRand::analyze(), HCALRecHitAnalyzer::analyze(), SinglePionEfficiencyNew::analyze(), HFLightCal::analyze(), JetToDigiDump::analyze(), cms::HcalConstantsASCIIWriter::analyze(), cms::Analyzer_minbias::analyze(), HFPreLightCal::analyze(), crystal_ieta_high(), crystal_ieta_low(), HcalMTCCMonitor::dumpDigi(), CaloGeometryHelper::getClosestCell(), hpdId(), HcalTopology::incrementDepth(), DetIdInfo::info(), HcalText2DetIdConverter::init(), JetAnalyzer::MakeCellListFromCaloTowers(), HFClusterAlgo::makeCluster(), TrackDetMatchInfo::nXnEnergy(), HcalLaserMonitor::perChanHists(), HcalLEDMonitor::perChanHists(), HcalTemplateAnalysis::processEvent(), HcalDigiMonitor::processEvent(), HcalTrigPrimMonitor::processEvent(), HcalLEDMonitor::processEvent(), HcalBeamMonitor::processEvent(), HcalMTCCMonitor::processEvent(), HcalPedestalMonitor::processEvent(), HcalExpertMonitor::processEvent_Digi(), HcalDeadCellMonitor::processEvent_digi(), HcalHotCellMonitor::processEvent_pedestal(), AlCaHOCalibProducer::produce(), HcalTrigTowerGeometry::towerIds(), CaloTowerConstituentsMap::towerOf(), and HcalUnpacker::unpack().

00039 { return zside()*ietaAbs(); }

int HcalDetId::ietaAbs (  )  const [inline]

get the absolute value of the cell ieta

Definition at line 37 of file HcalDetId.h.

References DetId::id_.

Referenced by CaloRecHitCandidateProducer::cellTresholdAndWeight(), CaloGeometryHelper::getClosestCell(), CaloTowersCreationAlgo::getThresholdAndWeight(), hashed_index(), HcalGenericDetId::hashedId(), ieta(), HcalTopology::incrementDepth(), HcalHardcodeGeometryLoader::makeCell(), HFClusterAlgo::makeCluster(), HcalCableMapper::process(), HcalSimParameters::samplingFactor(), HcalTrigTowerGeometry::towerIds(), and CaloTowerConstituentsMap::towerOf().

00037 { return (id_>>7)&0x3f; }

int HcalDetId::iphi (  )  const [inline]

get the cell iphi

Definition at line 41 of file HcalDetId.h.

References DetId::id_.

Referenced by HcaluLUTTPGCoder::adc2Linear(), HFLightCalRand::analyze(), HCALRecHitAnalyzer::analyze(), HFLightCal::analyze(), JetToDigiDump::analyze(), cms::HcalConstantsASCIIWriter::analyze(), cms::Analyzer_minbias::analyze(), HFPreLightCal::analyze(), crystal_iphi_high(), crystal_iphi_low(), HcalMTCCMonitor::dumpDigi(), CaloGeometryHelper::getClosestCell(), hashed_index(), HcalGenericDetId::hashedId(), hpdId(), HcalTopology::incrementDepth(), DetIdInfo::info(), HcalText2DetIdConverter::init(), HcalHardcodeGeometryLoader::makeCell(), JetAnalyzer::MakeCellListFromCaloTowers(), HFClusterAlgo::makeCluster(), TrackDetMatchInfo::nXnEnergy(), HcalLaserMonitor::perChanHists(), HcalLEDMonitor::perChanHists(), HcalCableMapper::process(), HcalTemplateAnalysis::processEvent(), HcalDigiMonitor::processEvent(), HcalTrigPrimMonitor::processEvent(), HcalLEDMonitor::processEvent(), HcalBeamMonitor::processEvent(), HcalMTCCMonitor::processEvent(), HcalPedestalMonitor::processEvent(), HcalExpertMonitor::processEvent_Digi(), HcalDeadCellMonitor::processEvent_digi(), HcalHotCellMonitor::processEvent_pedestal(), AlCaHOCalibProducer::produce(), HcalTrigTowerGeometry::towerIds(), CaloTowerConstituentsMap::towerOf(), and HcalUnpacker::unpack().

00041 { return id_&0x7F; }

HcalDetId & HcalDetId::operator= ( const DetId id  ) 

Assignment from a generic cell id.

Definition at line 32 of file HcalDetId.cc.

References DetId::det(), Exception, DetId::Hcal, HcalBarrel, HcalEndcap, HcalForward, HcalOuter, DetId::id_, DetId::null(), DetId::rawId(), subdet(), and DetId::subdetId().

00032                                                 {
00033   if (!gen.null()) {
00034     HcalSubdetector subdet=(HcalSubdetector(gen.subdetId()));
00035     if (gen.det()!=Hcal || 
00036         (subdet!=HcalBarrel && subdet!=HcalEndcap && 
00037          subdet!=HcalOuter && subdet!=HcalForward ))
00038       {
00039         throw cms::Exception("Invalid DetId") << "Cannot assign HcalDetId from " << std::hex << gen.rawId() << std::dec; 
00040       }  
00041   }
00042   id_=gen.rawId();
00043   return (*this);
00044 }

HcalSubdetector HcalDetId::subdet (  )  const [inline]

get the subdetector

Definition at line 33 of file HcalDetId.h.

References DetId::subdetId().

Referenced by HcaluLUTTPGCoder::adc2Linear(), HFLightCalRand::analyze(), HCALRecHitAnalyzer::analyze(), HFLightCal::analyze(), JetToDigiDump::analyze(), HFPreLightCal::analyze(), CaloTowersCreationAlgo::assignHit(), CaloRecHitCandidateProducer::cellTresholdAndWeight(), HcalDeadCellMonitor::createMaps(), HcalHotCellMonitor::createMaps(), JetAnalyzer::fillRecHitHists(), CaloTowersCreationAlgo::getThresholdAndWeight(), hashed_index(), HcalDetId(), hpdId(), HcalTopology::incrementDepth(), DetIdInfo::info(), HcalHardcodeGeometryLoader::makeCell(), HcalDDDGeometryLoader::makeCell(), JetAnalyzer::MakeCellListFromCaloTowers(), HcalRecHitsMaker::noiseInfCfromDB(), operator<<(), operator=(), HcalCableMapper::process(), HcalLaserMonitor::processEvent(), HcalDigiMonitor::processEvent(), HcalLEDMonitor::processEvent(), HcalPedestalMonitor::processEvent(), HcalMTCCMonitor::processEvent(), HcalExpertMonitor::processEvent_Digi(), HcalDeadCellMonitor::processEvent_digi(), HcalHotCellMonitor::processEvent_pedestal(), CaloTowersCreationAlgo::rescale(), HcalZSAlgoRealistic::shouldKeep(), HcalTBSimParameterMap::simParameters(), HcalSimParameterMap::simParameters(), HcalTrigTowerGeometry::towerIds(), and CaloTowerConstituentsMap::towerOf().

00033 { return (HcalSubdetector)(subdetId()); }

static bool HcalDetId::validDenseIndex ( uint32_t  din  )  [inline, static]

Definition at line 63 of file HcalDetId.h.

References kSizeForDenseIndexing.

Referenced by detIdFromDenseIndex().

00063 { return ( din < kSizeForDenseIndexing ) ; }

bool HcalDetId::validDetId ( HcalSubdetector  subdet,
int  tower_ieta,
int  tower_iphi,
int  depth 
) [static]

Definition at line 69 of file HcalDetId.cc.

References funct::abs(), HcalBarrel, HcalEndcap, HcalForward, and HcalOuter.

00073 {
00074    const int ie ( abs( ies ) ) ;
00075 
00076    return ( ( ip >=  1         ) &&
00077             ( ip <= 72         ) &&
00078             ( dp >=  1         ) &&
00079             ( ie >=  1         ) &&
00080             ( ( ( sd == HcalBarrel ) &&
00081                 ( ( ( ie <= 14         ) &&
00082                     ( dp ==  1         )    ) ||
00083                   ( ( ( ie == 15 ) || ( ie == 16 ) ) && 
00084                     ( dp <= 2          )                ) ) ) ||
00085               (  ( sd == HcalEndcap ) &&
00086                  ( ( ( ie == 16 ) &&
00087                      ( dp ==  3 )          ) ||
00088                    ( ( ie == 17 ) &&
00089                      ( dp ==  1 )          ) ||
00090                    ( ( ie >= 18 ) &&
00091                      ( ie <= 20 ) &&
00092                      ( dp <=  2 )          ) ||
00093                    ( ( ie >= 21 ) &&
00094                      ( ie <= 26 ) &&
00095                      ( dp <=  2 ) &&
00096                      ( ip%2 == 1 )         ) ||
00097                    ( ( ie >= 27 ) &&
00098                      ( ie <= 28 ) &&
00099                      ( dp <=  3 ) &&
00100                      ( ip%2 == 1 )         ) ||
00101                    ( ( ie == 29 ) &&
00102                      ( dp <=  2 ) &&
00103                      ( ip%2 == 1 )         )          )      ) ||
00104               (  ( sd == HcalOuter ) &&
00105                  ( ie <= 15 ) &&
00106                  ( dp ==  4 )           ) ||
00107               (  ( sd == HcalForward ) &&
00108                  ( dp <=  2 )          &&
00109                  ( ( ( ie >= 29 ) &&
00110                      ( ie <= 39 ) &&
00111                      ( ip%2 == 1 )    ) ||
00112                    ( ( ie >= 40 ) &&
00113                      ( ie <= 41 ) &&
00114                      ( ip%4 == 3 )         )  ) ) ) ) ;
00115 }

int HcalDetId::zside (  )  const [inline]

get the z-side of the cell (1/-1)

Definition at line 35 of file HcalDetId.h.

References DetId::id_.

Referenced by crystal_ieta_high(), crystal_ieta_low(), hashed_index(), HcalGenericDetId::hashedId(), ieta(), HcalHardcodeGeometryLoader::makeCell(), HcalDDDGeometryLoader::makeCell(), HFClusterAlgo::makeCluster(), HcalTrigTowerGeometry::towerIds(), and CaloTowerConstituentsMap::towerOf().

00035 { return (id_&0x2000)?(1):(-1); }


Member Data Documentation

const HcalDetId HcalDetId::Undefined [static]

Definition at line 67 of file HcalDetId.h.

Referenced by HcalText2DetIdConverter::init(), CastorText2DetIdConverter::init(), and CastorDbHardcode::makeHardcodeMap().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:23:35 2009 for CMSSW by  doxygen 1.5.4