CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
ZdcTopology Class Reference

#include <ZdcTopology.h>

Inheritance diagram for ZdcTopology:
CaloSubdetectorTopology

Public Member Functions

virtual std::vector< DetIddown (const DetId &id) const
 
virtual std::vector< DetIdeast (const DetId &id) const
 
void exclude (const HcalZDCDetId &id)
 
void exclude (int zside)
 
void exclude (int zside, HcalZDCDetId::Section section)
 
int exclude (int zside, HcalZDCDetId::Section section, int ich1, int ich2)
 
int firstCell (HcalZDCDetId::Section section) const
 
int lastCell (HcalZDCDetId::Section section) const
 
virtual std::vector< DetIdlongitudinal (const DetId &id) const
 
int ncells (HcalZDCDetId::Section section) const
 
virtual std::vector< DetIdnorth (const DetId &id) const
 
virtual std::vector< DetIdsouth (const DetId &id) const
 
virtual std::vector< DetIdtransverse (const DetId &id) const
 
virtual std::vector< DetIdup (const DetId &id) const
 
virtual bool valid (const HcalZDCDetId &id) const
 
virtual std::vector< DetIdwest (const DetId &id) const
 
 ZdcTopology ()
 
- Public Member Functions inherited from CaloSubdetectorTopology
 CaloSubdetectorTopology ()
 standard constructor More...
 
virtual DetId denseId2detId (unsigned int) const
 return a linear packed id More...
 
virtual bool denseIdConsistent (int topoVer) const
 return whether this topology is consistent with the numbering in the given topology More...
 
virtual unsigned int detId2denseId (const DetId &) const
 return a linear packed id More...
 
virtual std::vector< DetIdgetAllNeighbours (const DetId &id) const
 
virtual std::vector< DetIdgetNeighbours (const DetId &id, const CaloDirection &dir) const
 
virtual std::vector< DetIdgetWindow (const DetId &id, const int &northSouthSize, const int &eastWestSize) const
 
virtual DetId goDown (const DetId &id) const
 
virtual DetId goEast (const DetId &id) const
 
virtual DetId goNorth (const DetId &id) const
 
virtual DetId goSouth (const DetId &id) const
 
virtual DetId goUp (const DetId &id) const
 
virtual DetId goWest (const DetId &id) const
 
virtual unsigned int ncells () const
 return a count of valid cells (for dense indexing use) More...
 
virtual int topoVersion () const
 return a version which identifies the given topology More...
 
virtual bool valid (const DetId &) const
 is this detid present in the Topology? More...
 
virtual ~CaloSubdetectorTopology ()
 virtual destructor More...
 

Private Member Functions

int firstEMModule () const
 
int firstHADModule () const
 
int firstLUMModule () const
 
int firstRPDModule () const
 
bool isExcluded (const HcalZDCDetId &id) const
 
int lastEMModule () const
 
int lastHADModule () const
 
int lastLUMModule () const
 
int lastRPDModule () const
 
bool validRaw (const HcalZDCDetId &id) const
 

Private Attributes

bool excludeEM_
 
bool excludeHAD_
 
bool excludeLUM_
 
bool excludeRPD_
 
bool excludeZN_
 
bool excludeZP_
 
std::vector< HcalZDCDetIdexclusionList_
 
int firstEMModule_
 
int firstHADModule_
 
int firstLUMModule_
 
int firstRPDModule_
 
int lastEMModule_
 
int lastHADModule_
 
int lastLUMModule_
 
int lastRPDModule_
 

Additional Inherited Members

- Protected Types inherited from CaloSubdetectorTopology
typedef std::pair< int, int > Coordinate
 
- Protected Member Functions inherited from CaloSubdetectorTopology
Coordinate getNeighbourIndex (const Coordinate &coord, const CaloDirection &dir) const
 

Detailed Description

Definition at line 14 of file ZdcTopology.h.

Constructor & Destructor Documentation

ZdcTopology::ZdcTopology ( )

Definition at line 11 of file ZdcTopology.cc.

Member Function Documentation

std::vector< DetId > ZdcTopology::down ( const DetId id) const
virtual

Get the neighbors of the given cell in down direction (inward)

Implements CaloSubdetectorTopology.

Definition at line 251 of file ZdcTopology.cc.

std::vector< DetId > ZdcTopology::east ( const DetId id) const
virtual

Get the neighbors of the given cell in east direction

Implements CaloSubdetectorTopology.

Definition at line 219 of file ZdcTopology.cc.

void ZdcTopology::exclude ( const HcalZDCDetId id)

Exlucde a cell

Definition at line 57 of file ZdcTopology.cc.

void ZdcTopology::exclude ( int  zside)

Exclude a side

Definition at line 65 of file ZdcTopology.cc.

void ZdcTopology::exclude ( int  zside,
HcalZDCDetId::Section  section 
)

Exclude a section, in either side (+1 positive, -1 negative)

Definition at line 73 of file ZdcTopology.cc.

int ZdcTopology::exclude ( int  zside,
HcalZDCDetId::Section  section,
int  ich1,
int  ich2 
)

Exclude a range of channels (deph) for a given subdetector

Definition at line 88 of file ZdcTopology.cc.

int ZdcTopology::firstCell ( HcalZDCDetId::Section  section) const

Definition at line 270 of file ZdcTopology.cc.

int ZdcTopology::firstEMModule ( ) const
inlineprivate

Definition at line 65 of file ZdcTopology.h.

References firstEMModule_.

65 {return firstEMModule_;}
int firstEMModule_
Definition: ZdcTopology.h:60
int ZdcTopology::firstHADModule ( ) const
inlineprivate

Definition at line 66 of file ZdcTopology.h.

References firstHADModule_.

66 {return firstHADModule_;}
int firstHADModule_
Definition: ZdcTopology.h:60
int ZdcTopology::firstLUMModule ( ) const
inlineprivate

Definition at line 67 of file ZdcTopology.h.

References firstLUMModule_.

67 {return firstLUMModule_;}
int firstLUMModule_
Definition: ZdcTopology.h:60
int ZdcTopology::firstRPDModule ( ) const
inlineprivate

Definition at line 68 of file ZdcTopology.h.

References firstRPDModule_.

68 {return firstRPDModule_;}
int firstRPDModule_
Definition: ZdcTopology.h:60
bool ZdcTopology::isExcluded ( const HcalZDCDetId id) const
private

Definition at line 36 of file ZdcTopology.cc.

int ZdcTopology::lastCell ( HcalZDCDetId::Section  section) const

Definition at line 282 of file ZdcTopology.cc.

int ZdcTopology::lastEMModule ( ) const
inlineprivate

Definition at line 69 of file ZdcTopology.h.

References lastEMModule_.

69 {return lastEMModule_;}
int lastEMModule_
Definition: ZdcTopology.h:60
int ZdcTopology::lastHADModule ( ) const
inlineprivate

Definition at line 70 of file ZdcTopology.h.

References lastHADModule_.

70 {return lastHADModule_;}
int lastHADModule_
Definition: ZdcTopology.h:60
int ZdcTopology::lastLUMModule ( ) const
inlineprivate

Definition at line 71 of file ZdcTopology.h.

References lastLUMModule_.

71 {return lastLUMModule_;}
int lastLUMModule_
Definition: ZdcTopology.h:60
int ZdcTopology::lastRPDModule ( ) const
inlineprivate

Definition at line 72 of file ZdcTopology.h.

References lastRPDModule_.

72 {return lastRPDModule_;}
int lastRPDModule_
Definition: ZdcTopology.h:60
std::vector< DetId > ZdcTopology::longitudinal ( const DetId id) const
virtual

Get the longitudinal neighbors (Z) of the given cell

Definition at line 166 of file ZdcTopology.cc.

int ZdcTopology::ncells ( HcalZDCDetId::Section  section) const

Definition at line 258 of file ZdcTopology.cc.

std::vector< DetId > ZdcTopology::north ( const DetId id) const
virtual

Get the neighbors of the given cell in north direction

Implements CaloSubdetectorTopology.

Definition at line 233 of file ZdcTopology.cc.

std::vector< DetId > ZdcTopology::south ( const DetId id) const
virtual

Get the neighbors of the given cell in south direction

Implements CaloSubdetectorTopology.

Definition at line 239 of file ZdcTopology.cc.

std::vector< DetId > ZdcTopology::transverse ( const DetId id) const
virtual

Get the transverse (X) neighbors of the given cell

Definition at line 141 of file ZdcTopology.cc.

std::vector< DetId > ZdcTopology::up ( const DetId id) const
virtual

Get the neighbors of the given cell in up direction (outward)

Implements CaloSubdetectorTopology.

Definition at line 245 of file ZdcTopology.cc.

bool ZdcTopology::valid ( const HcalZDCDetId id) const
virtual

Is this a valid cell id?

Definition at line 29 of file ZdcTopology.cc.

bool ZdcTopology::validRaw ( const HcalZDCDetId id) const
private

Definition at line 118 of file ZdcTopology.cc.

std::vector< DetId > ZdcTopology::west ( const DetId id) const
virtual

Get the neighbors of the given cell in west direction

Implements CaloSubdetectorTopology.

Definition at line 226 of file ZdcTopology.cc.

Member Data Documentation

bool ZdcTopology::excludeEM_
private

Definition at line 58 of file ZdcTopology.h.

bool ZdcTopology::excludeHAD_
private

Definition at line 58 of file ZdcTopology.h.

bool ZdcTopology::excludeLUM_
private

Definition at line 58 of file ZdcTopology.h.

bool ZdcTopology::excludeRPD_
private

Definition at line 58 of file ZdcTopology.h.

bool ZdcTopology::excludeZN_
private

Definition at line 58 of file ZdcTopology.h.

bool ZdcTopology::excludeZP_
private

Definition at line 58 of file ZdcTopology.h.

std::vector<HcalZDCDetId> ZdcTopology::exclusionList_
private

Definition at line 56 of file ZdcTopology.h.

int ZdcTopology::firstEMModule_
private

Definition at line 60 of file ZdcTopology.h.

Referenced by firstEMModule().

int ZdcTopology::firstHADModule_
private

Definition at line 60 of file ZdcTopology.h.

Referenced by firstHADModule().

int ZdcTopology::firstLUMModule_
private

Definition at line 60 of file ZdcTopology.h.

Referenced by firstLUMModule().

int ZdcTopology::firstRPDModule_
private

Definition at line 60 of file ZdcTopology.h.

Referenced by firstRPDModule().

int ZdcTopology::lastEMModule_
private

Definition at line 60 of file ZdcTopology.h.

Referenced by lastEMModule().

int ZdcTopology::lastHADModule_
private

Definition at line 60 of file ZdcTopology.h.

Referenced by lastHADModule().

int ZdcTopology::lastLUMModule_
private

Definition at line 60 of file ZdcTopology.h.

Referenced by lastLUMModule().

int ZdcTopology::lastRPDModule_
private

Definition at line 60 of file ZdcTopology.h.

Referenced by lastRPDModule().