#include <ZdcTopology.h>
Public Member Functions | |
virtual std::vector< DetId > | down (const DetId &id) const |
virtual std::vector< DetId > | east (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< DetId > | longitudinal (const DetId &id) const |
int | ncells (HcalZDCDetId::Section section) const |
virtual std::vector< DetId > | north (const DetId &id) const |
virtual std::vector< DetId > | south (const DetId &id) const |
virtual std::vector< DetId > | transverse (const DetId &id) const |
virtual std::vector< DetId > | up (const DetId &id) const |
virtual bool | valid (const HcalZDCDetId &id) const |
virtual std::vector< DetId > | west (const DetId &id) const |
ZdcTopology () | |
Public Member Functions inherited from CaloSubdetectorTopology | |
CaloSubdetectorTopology () | |
standard constructor More... | |
virtual std::vector< DetId > | getAllNeighbours (const DetId &id) const |
virtual std::vector< DetId > | getNeighbours (const DetId &id, const CaloDirection &dir) const |
virtual std::vector< DetId > | getWindow (const DetId &id, const int &northSouthSize, const int &eastWestSize) const |
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 |
bool | isExcluded (const HcalZDCDetId &id) const |
int | lastEMModule () const |
int | lastHADModule () const |
int | lastLUMModule () const |
bool | validRaw (const HcalZDCDetId &id) const |
Private Attributes | |
bool | excludeEM_ |
bool | excludeHAD_ |
bool | excludeLUM_ |
bool | excludeZN_ |
bool | excludeZP_ |
std::vector< HcalZDCDetId > | exclusionList_ |
int | firstEMModule_ |
int | firstHADModule_ |
int | firstLUMModule_ |
int | lastEMModule_ |
int | lastHADModule_ |
int | lastLUMModule_ |
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 |
Definition at line 15 of file ZdcTopology.h.
ZdcTopology::ZdcTopology | ( | ) |
Definition at line 10 of file ZdcTopology.cc.
Get the neighbors of the given cell in down direction (inward)
Implements CaloSubdetectorTopology.
Definition at line 230 of file ZdcTopology.cc.
References gather_cfg::cout.
Get the neighbors of the given cell in east direction
Implements CaloSubdetectorTopology.
Definition at line 198 of file ZdcTopology.cc.
References gather_cfg::cout.
void ZdcTopology::exclude | ( | const HcalZDCDetId & | id | ) |
Exlucde a cell
Definition at line 59 of file ZdcTopology.cc.
References exclusionList_, i, and errorMatrix2Lands_multiChannel::id.
Referenced by exclude().
void ZdcTopology::exclude | ( | int | zside | ) |
void ZdcTopology::exclude | ( | int | zside, |
HcalZDCDetId::Section | section | ||
) |
Exclude a section, in either side (+1 positive, -1 negative)
Definition at line 75 of file ZdcTopology.cc.
References HcalZDCDetId::EM, excludeEM_, excludeHAD_, excludeLUM_, excludeZN_, excludeZP_, HcalZDCDetId::HAD, and HcalZDCDetId::LUM.
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 89 of file ZdcTopology.cc.
References HcalZDCDetId::EM, exclude(), excludeEM_, excludeHAD_, excludeLUM_, excludeZN_, excludeZP_, HcalZDCDetId::HAD, errorMatrix2Lands_multiChannel::id, HcalZDCDetId::LUM, n, and validRaw().
int ZdcTopology::firstCell | ( | HcalZDCDetId::Section | section | ) | const |
Definition at line 248 of file ZdcTopology.cc.
References HcalZDCDetId::EM, firstEMModule_, firstHADModule_, firstLUMModule_, HcalZDCDetId::HAD, HcalZDCDetId::LUM, and HcalZDCDetId::Unknown.
Referenced by ZdcHardcodeGeometryLoader::fill().
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
private |
Definition at line 32 of file ZdcTopology.cc.
References HcalZDCDetId::EM, excludeEM_, excludeHAD_, excludeLUM_, excludeZN_, excludeZP_, exclusionList_, HcalZDCDetId::HAD, i, errorMatrix2Lands_multiChannel::id, and HcalZDCDetId::LUM.
Referenced by valid().
int ZdcTopology::lastCell | ( | HcalZDCDetId::Section | section | ) | const |
Definition at line 259 of file ZdcTopology.cc.
References HcalZDCDetId::EM, HcalZDCDetId::HAD, lastEMModule_, lastHADModule_, lastLUMModule_, HcalZDCDetId::LUM, and HcalZDCDetId::Unknown.
Referenced by ZdcHardcodeGeometryLoader::fill().
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
Get the longitudinal neighbors (Z) of the given cell
Definition at line 159 of file ZdcTopology.cc.
References HcalZDCDetId::channel(), HcalZDCDetId::HAD, ICH_HAD_MAX, ICH_LUM_MAX, HcalZDCDetId::LUM, DetId::rawId(), HcalZDCDetId::section(), validRaw(), and HcalZDCDetId::zside().
int ZdcTopology::ncells | ( | HcalZDCDetId::Section | section | ) | const |
Definition at line 237 of file ZdcTopology.cc.
References HcalZDCDetId::EM, HcalZDCDetId::HAD, ICH_EM_MAX, ICH_HAD_MAX, ICH_LUM_MAX, HcalZDCDetId::LUM, and HcalZDCDetId::Unknown.
Get the neighbors of the given cell in north direction
Implements CaloSubdetectorTopology.
Definition at line 212 of file ZdcTopology.cc.
References gather_cfg::cout.
Get the neighbors of the given cell in south direction
Implements CaloSubdetectorTopology.
Definition at line 218 of file ZdcTopology.cc.
References gather_cfg::cout.
Get the transverse (X) neighbors of the given cell
Definition at line 134 of file ZdcTopology.cc.
References HcalZDCDetId::channel(), HcalZDCDetId::EM, ICH_EM_MAX, DetId::rawId(), HcalZDCDetId::section(), validRaw(), and HcalZDCDetId::zside().
Get the neighbors of the given cell in up direction (outward)
Implements CaloSubdetectorTopology.
Definition at line 224 of file ZdcTopology.cc.
References gather_cfg::cout.
|
virtual |
Is this a valid cell id?
Definition at line 25 of file ZdcTopology.cc.
References isExcluded(), convertSQLiteXML::ok, and validRaw().
Referenced by ZdcHardcodeGeometryLoader::fill().
|
private |
Definition at line 118 of file ZdcTopology.cc.
References abs, HcalZDCDetId::EM, HcalZDCDetId::HAD, ICH_EM_MAX, ICH_HAD_MAX, ICH_LUM_MAX, HcalZDCDetId::LUM, and convertSQLiteXML::ok.
Referenced by exclude(), longitudinal(), transverse(), and valid().
Get the neighbors of the given cell in west direction
Implements CaloSubdetectorTopology.
Definition at line 205 of file ZdcTopology.cc.
References gather_cfg::cout.
|
private |
Definition at line 59 of file ZdcTopology.h.
Referenced by exclude(), and isExcluded().
|
private |
Definition at line 59 of file ZdcTopology.h.
Referenced by exclude(), and isExcluded().
|
private |
Definition at line 59 of file ZdcTopology.h.
Referenced by exclude(), and isExcluded().
|
private |
Definition at line 59 of file ZdcTopology.h.
Referenced by exclude(), and isExcluded().
|
private |
Definition at line 59 of file ZdcTopology.h.
Referenced by exclude(), and isExcluded().
|
private |
Definition at line 57 of file ZdcTopology.h.
Referenced by exclude(), and isExcluded().
|
private |
Definition at line 61 of file ZdcTopology.h.
Referenced by firstCell(), and firstEMModule().
|
private |
Definition at line 61 of file ZdcTopology.h.
Referenced by firstCell(), and firstHADModule().
|
private |
Definition at line 61 of file ZdcTopology.h.
Referenced by firstCell(), and firstLUMModule().
|
private |
Definition at line 61 of file ZdcTopology.h.
Referenced by lastCell(), and lastEMModule().
|
private |
Definition at line 61 of file ZdcTopology.h.
Referenced by lastCell(), and lastHADModule().
|
private |
Definition at line 61 of file ZdcTopology.h.
Referenced by lastCell(), and lastLUMModule().