CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes
EcalTrigTowerDetId Class Reference

#include <EcalTrigTowerDetId.h>

Inheritance diagram for EcalTrigTowerDetId:
DetId

Public Types

enum  {
  kEETowersInPhiPerEndcap = 4* kEETowersInPhiPerQuadrant, kEEOuterEta = 18, kEEInnerEta = 28, kEETowersInEta = ( kEEInnerEta - kEEOuterEta + 1 ),
  kEBHalfTowers = kEBTowersPerSM*18, kEBTotalTowers = kEBHalfTowers*2, kEETowersPerEndcap = kEETowersInEta*kEETowersInPhiPerEndcap - 72, kEETotalTowers = kEETowersPerEndcap*2,
  kSizeForDenseIndexing = kEBTotalTowers + kEETotalTowers
}
 
- Public Types inherited from DetId
enum  Detector {
  Tracker =1, Muon =2, Ecal =3, Hcal =4,
  Calo =5, Forward =6, VeryForward =7, HGCalEE =8,
  HGCalHSi =9, HGCalHSc =10, HGCalTrigger =11
}
 

Public Member Functions

uint32_t denseIndex () const
 
 EcalTrigTowerDetId ()
 
 EcalTrigTowerDetId (uint32_t rawid)
 
 EcalTrigTowerDetId (int zside, EcalSubdetector subdet, int i, int j, int mode=SUBDETIJMODE)
 Constructor from signed ieta, iphi. More...
 
 EcalTrigTowerDetId (const DetId &id)
 
int hashedIndex () const
 get a compact index for arrays [TODO: NEEDS WORK] More...
 
int iDCC () const
 get the ECAL DCC id - in the barrrel ism == iDCC More...
 
int ieta () const
 get the tower ieta More...
 
int ietaAbs () const
 get the absolute value of the tower ieta More...
 
int iphi () const
 get the tower iphi More...
 
int iquadrant () const
 
int iTT () const
 sequential index within one DCC More...
 
int ix () const
 get the tower ix (Endcap case) */ More...
 
int iy () const
 get the tower iy (Endcap case) */ More...
 
EcalTrigTowerDetIdoperator= (const DetId &id)
 
EcalSubdetector subDet () const
 get the subDetector associated to the Trigger Tower More...
 
int zside () const
 get the z-side of the tower (1/-1) More...
 
- Public Member Functions inherited from DetId
constexpr Detector det () const
 get the detector field from this detid More...
 
constexpr DetId ()
 Create an empty or null id (also for persistence) More...
 
constexpr DetId (uint32_t id)
 Create an id from a raw number. More...
 
constexpr DetId (Detector det, int subdet)
 Create an id, filling the detector and subdetector fields as specified. More...
 
constexpr bool null () const
 is this a null id ? More...
 
constexpr operator uint32_t () const
 
constexpr bool operator!= (DetId id) const
 inequality More...
 
constexpr uint32_t operator() () const
 
constexpr bool operator< (DetId id) const
 comparison More...
 
constexpr bool operator== (DetId id) const
 equality More...
 
constexpr uint32_t rawId () const
 get the raw id More...
 
constexpr int subdetId () const
 get the contents of the subdetector field (not cast into any detector's numbering enum) More...
 

Static Public Member Functions

static EcalTrigTowerDetId detIdFromDenseIndex (uint32_t di)
 
static bool validDenseIndex (uint32_t din)
 
static bool validDetId (int iz, EcalSubdetector sd, int i, int j)
 check if a valid index combination More...
 

Static Public Attributes

static const int kEBTowersInEta = 17
 
static const int kEBTowersInPhi = 4
 
static const int kEBTowersPerSM = 68
 
static const int kEETowersInPhiPerQuadrant = 18
 
static const int MAX_I = 127
 
static const int MAX_J = 127
 
static const int MIN_I = 1
 
static const int MIN_J = 1
 
static const int SUBDETDCCTTMODE = 1
 
static const int SUBDETIJMODE = 0
 
- Static Public Attributes inherited from DetId
static const int kDetMask = 0xF
 
static const int kDetOffset = 28
 
static const int kSubdetMask = 0x7
 
static const int kSubdetOffset = 25
 

Additional Inherited Members

- Protected Attributes inherited from DetId
uint32_t id_
 

Detailed Description

DetId for an Ecal Trigger tower

Definition at line 16 of file EcalTrigTowerDetId.h.

Member Enumeration Documentation

anonymous enum
Enumerator
kEETowersInPhiPerEndcap 
kEEOuterEta 
kEEInnerEta 
kEETowersInEta 
kEBHalfTowers 
kEBTotalTowers 
kEETowersPerEndcap 
kEETotalTowers 
kSizeForDenseIndexing 

Definition at line 125 of file EcalTrigTowerDetId.h.

Constructor & Destructor Documentation

EcalTrigTowerDetId::EcalTrigTowerDetId ( )

Constructor of a null id

Definition at line 5 of file EcalTrigTowerDetId.cc.

Referenced by detIdFromDenseIndex().

5  {
6 }
EcalTrigTowerDetId::EcalTrigTowerDetId ( uint32_t  rawid)

Constructor from a raw value

Definition at line 9 of file EcalTrigTowerDetId.cc.

9  : DetId(rawid) {
10 }
constexpr DetId()
Create an empty or null id (also for persistence)
Definition: DetId.h:30
EcalTrigTowerDetId::EcalTrigTowerDetId ( int  zside,
EcalSubdetector  subdet,
int  i,
int  j,
int  mode = SUBDETIJMODE 
)

Constructor from signed ieta, iphi.

Definition at line 12 of file EcalTrigTowerDetId.cc.

References EcalBarrel, Exception, mps_fire::i, DetId::id_, MAX_I, MAX_J, MIN_J, SUBDETDCCTTMODE, and SUBDETIJMODE.

14 {
15  int tower_i=0;
16  int tower_j=0;
17 
18  if (mode == SUBDETIJMODE)
19  {
20  tower_i=i;
21  tower_j=j;
22  }
23  else if (mode == SUBDETDCCTTMODE)
24  {
25  throw cms::Exception("InvalidDetId") << "EcalTriggerTowerDetId: Cannot create object. SUBDETDCCTTMODE not yet implemented.";
26  }
27  else
28  throw cms::Exception("InvalidDetId") << "EcalTriggerTowerDetId: Cannot create object. Unknown mode for (int, EcalSubdetector, int, int) constructor.";
29 
30  if (tower_i > MAX_I || tower_i < MIN_I || tower_j > MAX_J || tower_j < MIN_J)
31  throw cms::Exception("InvalidDetId") << "EcalTriggerTowerDetId: Cannot create object. Indexes out of bounds.";
32 
33  id_|= ((zside>0)?(0x8000):(0x0)) | ((subDet == EcalBarrel)?(0x4000):(0x0)) | (tower_i<<7) | (tower_j & 0x7F);
34 
35 }
static const int SUBDETIJMODE
static const int MIN_J
static const int MAX_J
int zside() const
get the z-side of the tower (1/-1)
static const int MAX_I
static const int SUBDETDCCTTMODE
uint32_t id_
Definition: DetId.h:59
EcalSubdetector subDet() const
get the subDetector associated to the Trigger Tower
constexpr DetId()
Create an empty or null id (also for persistence)
Definition: DetId.h:30
EcalTrigTowerDetId::EcalTrigTowerDetId ( const DetId id)

Constructor from a generic cell id

Definition at line 37 of file EcalTrigTowerDetId.cc.

References DetId::det(), DetId::Ecal, EcalTriggerTower, Exception, DetId::id_, DetId::null(), DetId::rawId(), and DetId::subdetId().

38 {
39  if (!gen.null() && ( gen.det()!=Ecal || gen.subdetId()!=EcalTriggerTower )) {
40  throw cms::Exception("InvalidDetId"); }
41  id_=gen.rawId();
42 }
uint32_t id_
Definition: DetId.h:59

Member Function Documentation

uint32_t EcalTrigTowerDetId::denseIndex ( ) const
inline

Definition at line 91 of file EcalTrigTowerDetId.h.

References hashedIndex().

91 { return hashedIndex() ; }
int hashedIndex() const
get a compact index for arrays [TODO: NEEDS WORK]
EcalTrigTowerDetId EcalTrigTowerDetId::detIdFromDenseIndex ( uint32_t  di)
static

Definition at line 130 of file EcalTrigTowerDetId.cc.

References EcalBarrel, EcalEndcap, EcalTrigTowerDetId(), mps_fire::i, kEBHalfTowers, kEBTotalTowers, kEBTowersInPhi, kEBTowersPerSM, kEEOuterEta, kEETowersInPhiPerEndcap, kEETowersPerEndcap, sd, and validDetId().

Referenced by EcalDAQTowerStatusXMLTranslator::dumpXML(), EcalDCSTowerStatusXMLTranslator::dumpXML(), ecaldqm::TowerStatusTask::endLuminosityBlock(), EcalDCSTowerStatusXMLTranslator::plot(), EcalDAQTowerStatusXMLTranslator::plot(), ecaldqm::OccupancyClient::producePlots(), ecaldqm::SelectiveReadoutClient::producePlots(), ecaldqm::TrigPrimClient::producePlots(), ecaldqm::StatusManager::readFromObj(), ecaldqm::SelectiveReadoutTask::runOnDigis(), validDenseIndex(), and ecaldqm::StatusManager::writeToObj().

131 {
133  const int iz ( di < kEBTotalTowers ?
134  ( di < kEBHalfTowers ? 1 : -1 ) :
135  ( di - kEBTotalTowers < kEETowersPerEndcap ? -1 : 1 ) ) ;
136  int i ;
137  int j ;
138  if( di < kEBTotalTowers ) // barrel
139  {
140  const unsigned int itt ( di%kEBTowersPerSM ) ;
141  const unsigned int idc ( di/kEBTowersPerSM ) ;
142  j = (idc%18)*kEBTowersInPhi +
143  ( (1+iz)/2 )*kEBTowersInPhi -
144  iz*(itt%kEBTowersInPhi) + 1 - (1+iz)/2 - 2 ;
145  if( j < 1 ) j += 72 ;
146  i = 1 + itt/kEBTowersInPhi ;
147  }
148  else
149  {
150  const int eonly ( ( di - kEBTotalTowers )%kEETowersPerEndcap ) ;
152  j = 1 + eonly%kEETowersInPhiPerEndcap ;
153  if( 27 == i ) // last two rings have half of normal phi elementes
154  {
155  if( j > kEETowersInPhiPerEndcap/2 )
156  {
157  ++i ;
158  j -= kEETowersInPhiPerEndcap/2 ;
159  }
160  j = 2*j ;
161  if( 0 < iz ) --j ;
162  }
163  }
164  assert( validDetId( iz, sd, i, j ) ) ;
165  return EcalTrigTowerDetId( iz, sd, i, j ) ;
166 }
static const int kEBTowersInPhi
double sd
static bool validDetId(int iz, EcalSubdetector sd, int i, int j)
check if a valid index combination
static const int kEBTowersPerSM
EcalSubdetector
int EcalTrigTowerDetId::hashedIndex ( ) const

get a compact index for arrays [TODO: NEEDS WORK]

Definition at line 117 of file EcalTrigTowerDetId.cc.

References EcalBarrel, iDCC(), ietaAbs(), iphi(), iTT(), kEBTotalTowers, kEBTowersPerSM, kEEOuterEta, kEETowersInPhiPerEndcap, kEETowersPerEndcap, subDet(), and zside().

Referenced by denseIndex(), popcon::EcalDAQHandler::getNewObjects(), popcon::EcalDCSHandler::getNewObjects(), iy(), ecaldqm::SelectiveReadoutTask::runOnDigis(), and ecaldqm::SelectiveReadoutTask::runOnSrFlags().

118 {
119  const unsigned int iea ( ietaAbs() ) ;
120  const unsigned int iph ( iphi() ) ;
121  return ( subDet() == EcalBarrel ?
122  ( iDCC() - 1 )*kEBTowersPerSM + iTT() - 1 :
123  kEBTotalTowers + ( ( zside() + 1 )/2 )*kEETowersPerEndcap +
124  ( ( iea < 27 ? iea : 27 ) - kEEOuterEta )*kEETowersInPhiPerEndcap +
125  ( iea < 27 ? iph : // for iphi=27,28 only half TT present, odd for EE-, even EE+
126  ( iea - 27 )*kEETowersInPhiPerEndcap/2 + ( iph + 1 )/2 ) - 1 ) ;
127 }
int iDCC() const
get the ECAL DCC id - in the barrrel ism == iDCC
int zside() const
get the z-side of the tower (1/-1)
int ietaAbs() const
get the absolute value of the tower ieta
int iphi() const
get the tower iphi
EcalSubdetector subDet() const
get the subDetector associated to the Trigger Tower
int iTT() const
sequential index within one DCC
static const int kEBTowersPerSM
int EcalTrigTowerDetId::iDCC ( ) const

get the ECAL DCC id - in the barrrel ism == iDCC

Definition at line 53 of file EcalTrigTowerDetId.cc.

References EcalBarrel, Exception, triggerObjects_cff::id, iphi(), kEBTowersInPhi, subDet(), and zside().

Referenced by hashedIndex(), and validDenseIndex().

54 {
55  if ( subDet() == EcalBarrel )
56  {
57  //Correction since iphi is uniformized with HB convention
58  int iphi_simple = iphi() + 2 ;
59  if (iphi_simple > 72 ) iphi_simple = iphi_simple % 72;
60  int id = ( iphi_simple - 1 ) / kEBTowersInPhi + 1;
61  if ( zside() < 0 ) id += 18;
62  return id;
63  }
64  else
65  throw cms::Exception("MethodNotImplemented") << "EcalTriggerTowerDetId: iDCC not yet implemented";
66 }
static const int kEBTowersInPhi
int zside() const
get the z-side of the tower (1/-1)
int iphi() const
get the tower iphi
EcalSubdetector subDet() const
get the subDetector associated to the Trigger Tower
int EcalTrigTowerDetId::ieta ( ) const
inline

get the tower ieta

Definition at line 48 of file EcalTrigTowerDetId.h.

References ietaAbs(), and zside().

Referenced by EcalTPGAnalyzer::analyze(), EcalTrigPrimAnalyzer::analyze(), EcalTPGParamBuilder::analyze(), EcalSelectiveReadoutValidation::analyzeEB(), ecaldqm::binning::channelName(), EcalTrigPrimCompactColl::compressedEt(), EcalSelectiveReadoutValidation::dccCh(), TCCBlockFormatter::DigiToRaw(), EcalTPGTowerStatusXMLTranslator::dumpXML(), ecaldqm::MESetProjection::fill(), ecaldqm::binning::findBinRCT_(), ecaldqm::binning::findBinSuperCrystal_(), ecaldqm::binning::findBinTriggerTower_(), EcalTrigPrimCompactColl::fineGrain(), ecaldqm::MESetProjection::getBinContent(), ecaldqm::MESetProjection::getBinEntries(), ecaldqm::MESetProjection::getBinError(), EcalSimRawData::getSrfs(), EcalSelectiveReadout::getTowerInterest(), EcalSimRawData::getTp(), EcalTPGTowerStatusXMLTranslator::plot(), EcalDCSTowerStatusXMLTranslator::plot(), EcalDAQTowerStatusXMLTranslator::plot(), EcalSelectiveReadoutProducer::printSrFlags(), EcalSelectiveReadoutProducer::printTTFlags(), EcalFEtoDigi::produce(), ecaldqm::OccupancyClient::producePlots(), EcalTrigPrimCompactColl::raw(), ecaldqm::MESetProjection::setBinContent(), ecaldqm::MESetProjection::setBinEntries(), ecaldqm::MESetProjection::setBinError(), EcalSelectiveReadoutValidation::setTtEtSums(), EcalSelectiveReadoutSuppressor::setTtFlags(), EcalTrigPrimCompactColl::sFGVB(), EcalTrigPrimCompactColl::toEcalTrigPrimDigiCollection(), EcalTrigPrimCompactColl::ttFlag(), and xuti::writeCell().

49  {
50  /* if ( subDet() == EcalBarrel) */
51  return zside()*ietaAbs();
52  /* else */
53  /* throw(std::runtime_error("EcalTrigTowerDetId: ieta not applicable for this subDetector.")); */
54  }
int zside() const
get the z-side of the tower (1/-1)
int ietaAbs() const
get the absolute value of the tower ieta
int EcalTrigTowerDetId::ietaAbs ( ) const
inline

get the absolute value of the tower ieta

Definition at line 39 of file EcalTrigTowerDetId.h.

References DetId::id_.

Referenced by EcalTrigPrimAnalyzer::analyze(), TPGCheck::analyze(), EcalTPGParamBuilder::analyze(), EcalSelectiveReadoutValidation::analyzeEB(), EcalSelectiveReadoutValidation::dccId(), TCCBlockFormatter::DigiToRaw(), hashedIndex(), ieta(), iTT(), EcalTrigPrimFunctionalAlgo::run_part2(), and EcalTrigTowerConstituentsMap::wrapEcalTrigTowerDetId().

40  {
41  /* if ( subDet() == EcalBarrel) */
42  return (id_>>7)&0x7f;
43  /* else */
44  /* throw(std::runtime_error("EcalTrigTowerDetId: ietaAbs not applicable for this subDetector.")); */
45  }
uint32_t id_
Definition: DetId.h:59
int EcalTrigTowerDetId::iphi ( ) const
inline

get the tower iphi

Definition at line 57 of file EcalTrigTowerDetId.h.

References DetId::id_, and iquadrant().

Referenced by EcalTPGAnalyzer::analyze(), EcalTrigPrimAnalyzer::analyze(), EcalTPGParamBuilder::analyze(), EcalSelectiveReadoutValidation::analyzeEB(), ecaldqm::binning::channelName(), EcalTrigPrimCompactColl::compressedEt(), EcalSelectiveReadoutValidation::dccCh(), TCCBlockFormatter::DigiToRaw(), EcalTPGTowerStatusXMLTranslator::dumpXML(), ecaldqm::binning::findBinRCT_(), ecaldqm::binning::findBinSuperCrystal_(), ecaldqm::binning::findBinTriggerTower_(), EcalTrigPrimCompactColl::fineGrain(), EcalSimRawData::getSrfs(), EcalSelectiveReadout::getTowerInterest(), EcalSimRawData::getTp(), hashedIndex(), iDCC(), iquadrant(), iTT(), ecaldqm::phi(), EcalTPGTowerStatusXMLTranslator::plot(), EcalDAQTowerStatusXMLTranslator::plot(), EcalDCSTowerStatusXMLTranslator::plot(), EcalSelectiveReadoutProducer::printSrFlags(), EcalSelectiveReadoutProducer::printTTFlags(), EcalFEtoDigi::produce(), EcalTrigPrimCompactColl::raw(), EcalTrigPrimFunctionalAlgo::run_part2(), EcalSelectiveReadoutValidation::setTtEtSums(), EcalSelectiveReadoutSuppressor::setTtFlags(), EcalTrigPrimCompactColl::sFGVB(), EcalTrigPrimCompactColl::toEcalTrigPrimDigiCollection(), EcalTrigPrimCompactColl::ttFlag(), EcalTrigTowerConstituentsMap::wrapEcalTrigTowerDetId(), and xuti::writeCell().

58  {
59  /* if ( subDet() == EcalBarrel) */
60  return id_&0x7F;
61  /* else */
62  /* throw(std::runtime_error("EcalTrigTowerDetId: iphi not applicable for this subDetector.")); */
63 
64  }
uint32_t id_
Definition: DetId.h:59
int EcalTrigTowerDetId::iquadrant ( ) const

Definition at line 88 of file EcalTrigTowerDetId.cc.

References EcalEndcap, Exception, createfilelist::int, iphi(), kEETowersInPhiPerQuadrant, and subDet().

Referenced by iphi(), and EcalTrigTowerConstituentsMap::wrapEcalTrigTowerDetId().

89 {
90  if ( subDet() == EcalEndcap )
91  return int((iphi()-1)/kEETowersInPhiPerQuadrant)+1;
92  else
93  throw cms::Exception("MethodNotApplicable") << "EcalTriggerTowerDetId: iquadrant not applicable";
94 }
static const int kEETowersInPhiPerQuadrant
int iphi() const
get the tower iphi
EcalSubdetector subDet() const
get the subDetector associated to the Trigger Tower
int EcalTrigTowerDetId::iTT ( ) const

sequential index within one DCC

Definition at line 68 of file EcalTrigTowerDetId.cc.

References EcalBarrel, Exception, ietaAbs(), iphi(), kEBTowersInPhi, subDet(), and zside().

Referenced by hashedIndex(), ecaldqm::towerId(), ecaldqm::ttId(), and validDenseIndex().

69 {
70  if ( subDet() == EcalBarrel )
71  {
72  int ie = ietaAbs() -1;
73  int ip;
74  int iphi_simple = iphi() + 2 ;
75  if (iphi_simple > 72 ) iphi_simple = iphi_simple % 72;
76  if (zside() < 0) {
77  ip = (( iphi_simple -1 ) % kEBTowersInPhi ) + 1;
78  } else {
79  ip = kEBTowersInPhi - ((iphi_simple -1 ) % kEBTowersInPhi );
80  }
81 
82  return (ie * kEBTowersInPhi) + ip;
83  }
84  else
85  throw cms::Exception("MethodNotImplemented") << "EcalTriggerTowerDetId: iTT not yet implemented";
86 }
static const int kEBTowersInPhi
int zside() const
get the z-side of the tower (1/-1)
int ietaAbs() const
get the absolute value of the tower ieta
int iphi() const
get the tower iphi
EcalSubdetector subDet() const
get the subDetector associated to the Trigger Tower
int EcalTrigTowerDetId::ix ( ) const
inline

get the tower ix (Endcap case) */

Definition at line 70 of file EcalTrigTowerDetId.h.

References EcalEndcap, DetId::id_, and subDet().

71  {
72  if ( subDet() == EcalEndcap)
73  return (id_>>7)&0x7f;
74  else
75  throw(std::runtime_error("EcalTrigTowerDetId: ix not applicable for this subDetector."));
76  }
uint32_t id_
Definition: DetId.h:59
EcalSubdetector subDet() const
get the subDetector associated to the Trigger Tower
int EcalTrigTowerDetId::iy ( ) const
inline

get the tower iy (Endcap case) */

Definition at line 79 of file EcalTrigTowerDetId.h.

References EcalEndcap, hashedIndex(), DetId::id_, and subDet().

80  {
81  if ( subDet() == EcalEndcap)
82  return id_&0x7F;
83  else
84  throw(std::runtime_error("EcalTrigTowerDetId: ix not applicable for this subDetector."));
85  }
uint32_t id_
Definition: DetId.h:59
EcalSubdetector subDet() const
get the subDetector associated to the Trigger Tower
EcalTrigTowerDetId & EcalTrigTowerDetId::operator= ( const DetId id)

Assignment from a generic cell id

Definition at line 44 of file EcalTrigTowerDetId.cc.

References DetId::det(), DetId::Ecal, EcalTriggerTower, Exception, DetId::id_, DetId::null(), DetId::rawId(), and DetId::subdetId().

44  {
45  if (!gen.null() && ( gen.det()!=Ecal || gen.subdetId()!=EcalTriggerTower )) {
46  throw cms::Exception("InvalidDetId");
47  }
48  id_=gen.rawId();
49  return *this;
50 }
uint32_t id_
Definition: DetId.h:59
EcalSubdetector EcalTrigTowerDetId::subDet ( ) const
inline
static bool EcalTrigTowerDetId::validDenseIndex ( uint32_t  din)
inlinestatic
bool EcalTrigTowerDetId::validDetId ( int  iz,
EcalSubdetector  sd,
int  i,
int  j 
)
static

check if a valid index combination

Definition at line 97 of file EcalTrigTowerDetId.cc.

References funct::abs(), EcalBarrel, EcalEndcap, kEBTowersInEta, kEEInnerEta, kEEOuterEta, and kEETowersInPhiPerEndcap.

Referenced by detIdFromDenseIndex(), popcon::EcalDAQHandler::getNewObjects(), popcon::EcalDCSHandler::getNewObjects(), popcon::EcalDCSHandler::insertHVDataSetToOffline(), popcon::EcalDCSHandler::insertLVDataSetToOffline(), L1CaloEcalScaleConfigOnlineProd::newObject(), EcalTrivialConditionRetriever::produceEcalDAQTowerStatus(), EcalTrivialConditionRetriever::produceEcalDCSTowerStatus(), EcalTrivialConditionRetriever::produceEcalDQMTowerStatus(), and validDenseIndex().

98 {
99  return ( 1 == abs( iz ) &&
100  0 < i &&
101  0 < j &&
103  ( ( EcalBarrel == sd &&
104  kEBTowersInEta >= i ) ||
105  ( EcalEndcap == sd &&
106  kEEOuterEta <= i &&
107  kEEInnerEta >= i &&
108  ( 27 > i ||
109  ( ( 0 > iz &&
110  0 == j%2 ) ||
111  ( 0 < iz &&
112  1 == j%2 ) ) ) ) ) ) ;
113 
114 }
static const int kEBTowersInEta
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
double sd
int EcalTrigTowerDetId::zside ( ) const
inline

Member Data Documentation

const int EcalTrigTowerDetId::kEBTowersInEta = 17
static

Definition at line 117 of file EcalTrigTowerDetId.h.

Referenced by validDetId().

const int EcalTrigTowerDetId::kEBTowersInPhi = 4
static

Definition at line 115 of file EcalTrigTowerDetId.h.

Referenced by detIdFromDenseIndex(), iDCC(), and iTT().

const int EcalTrigTowerDetId::kEBTowersPerSM = 68
static
const int EcalTrigTowerDetId::kEETowersInPhiPerQuadrant = 18
static
const int EcalTrigTowerDetId::MAX_I = 127
static

Definition at line 112 of file EcalTrigTowerDetId.h.

Referenced by EcalTrigTowerDetId().

const int EcalTrigTowerDetId::MAX_J = 127
static

Definition at line 113 of file EcalTrigTowerDetId.h.

Referenced by EcalTrigTowerDetId().

const int EcalTrigTowerDetId::MIN_I = 1
static

Definition at line 110 of file EcalTrigTowerDetId.h.

const int EcalTrigTowerDetId::MIN_J = 1
static

Definition at line 111 of file EcalTrigTowerDetId.h.

Referenced by EcalTrigTowerDetId().

const int EcalTrigTowerDetId::SUBDETDCCTTMODE = 1
static

Definition at line 123 of file EcalTrigTowerDetId.h.

Referenced by EcalTrigTowerDetId().

const int EcalTrigTowerDetId::SUBDETIJMODE = 0
static