#include <HGCalCoarseTriggerCellMapping.h>
Public Member Functions | |
void | checkSizeValidity (int ctcSize) const |
uint32_t | getCoarseTriggerCellId (uint32_t detid) const |
GlobalPoint | getCoarseTriggerCellPosition (uint32_t ctcId) const |
std::vector< uint32_t > | getConstituentTriggerCells (uint32_t ctcId) const |
uint32_t | getRepresentativeDetId (uint32_t tcid) const |
HGCalCoarseTriggerCellMapping (const std::vector< unsigned > &ctcSize) | |
void | setGeometry (const HGCalTriggerGeometryBase *const geom) |
Static Public Attributes | |
static constexpr int | kCTCsizeCoarse_ = 16 |
static constexpr int | kCTCsizeFine_ = 4 |
static constexpr int | kCTCsizeIndividual_ = 1 |
static constexpr int | kCTCsizeMid_ = 8 |
static constexpr int | kCTCsizeVeryFine_ = 2 |
Private Attributes | |
std::vector< unsigned > | ctcSize_ |
HGCSiliconDetIdToROC | detIdToROC_ |
HGCalTriggerTools | triggerTools_ |
Static Private Attributes | |
static constexpr int | kHGCalCellMaskInv_ = ~0xff |
static constexpr int | kHGCalScinCellMaskInv_ = ~0x1ffff |
static constexpr int | kNHGCalLayersMax_ = 52 |
static constexpr int | kNThicknesses_ = 4 |
static constexpr int | kRoc0deg_ = 1 |
static constexpr int | kRoc120deg_ = 2 |
static constexpr int | kRoc240deg_ = 3 |
static constexpr int | kRocMask_ = 0xf |
static constexpr int | kRocShift_ = 4 |
static constexpr int | kRotate4_ = 4 |
static constexpr int | kRotate7_ = 7 |
static const std::map< int, int > | kSplit_ |
static constexpr int | kSplit_Coarse_ = 0 |
static constexpr int | kSplit_Fine_ = 0xa |
static constexpr int | kSplit_Individual_ = 0xf |
static constexpr int | kSplit_Mid_ = 0x2 |
static const std::map< int, int > | kSplit_Scin_ |
static constexpr int | kSplit_Scin_Coarse_ = 0x1f9fc |
static constexpr int | kSplit_Scin_Fine_ = 0x1fdfe |
static constexpr int | kSplit_Scin_Individual_ = 0x1ffff |
static constexpr int | kSplit_Scin_Mid_ = 0x1fdfc |
static constexpr int | kSplit_Scin_VeryFine_ = 0x1fffe |
static constexpr int | kSplit_VeryFine_ = 0xb |
static constexpr int | kSTCidMaskInv_ = ~0xf |
static constexpr int | kUMask_ = 0x3 |
static constexpr int | kUShift_ = 2 |
static constexpr int | kVMask_ = 0x3 |
static constexpr int | kVShift_ = 0 |
Definition at line 9 of file HGCalCoarseTriggerCellMapping.h.
HGCalCoarseTriggerCellMapping::HGCalCoarseTriggerCellMapping | ( | const std::vector< unsigned > & | ctcSize | ) |
Definition at line 4 of file HGCalCoarseTriggerCellMapping.cc.
References kCTCsizeVeryFine_, kNHGCalLayersMax_, and kNThicknesses_.
void HGCalCoarseTriggerCellMapping::checkSizeValidity | ( | int | ctcSize | ) | const |
Definition at line 32 of file HGCalCoarseTriggerCellMapping.cc.
References l1tHGCalConcentratorProducer_cfi::ctcSize, Exception, kCTCsizeCoarse_, kCTCsizeFine_, kCTCsizeIndividual_, kCTCsizeMid_, and kCTCsizeVeryFine_.
uint32_t HGCalCoarseTriggerCellMapping::getCoarseTriggerCellId | ( | uint32_t | detid | ) | const |
Definition at line 54 of file HGCalCoarseTriggerCellMapping.cc.
References l1tHGCalConcentratorProducer_cfi::ctcSize, ctcSize_, DetId::det(), detIdToROC_, HGCSiliconDetIdToROC::getROCNumber(), DetId::HGCalHSc, DetId::HGCalTrigger, HGCScintillatorDetId::ietaAbs(), HGCScintillatorDetId::iphi(), HGCalTriggerTools::isScintillator(), kHGCalCellMaskInv_, HGCScintillatorDetId::kHGCalRadiusOffset, kHGCalScinCellMaskInv_, kNHGCalLayersMax_, kRoc0deg_, kRoc120deg_, kRoc240deg_, kRocShift_, kRotate4_, kRotate7_, kSplit_, kSplit_Scin_, kUShift_, pixelTopology::layer, HGCalTriggerTools::layerWithOffset(), Calorimetry_cff::thickness, HGCalTriggerTools::thicknessIndex(), HGCalTriggerDetId::triggerCellU(), HGCalTriggerDetId::triggerCellV(), and triggerTools_.
Referenced by HGCalConcentratorSuperTriggerCellImpl::assignSuperTriggerCellEnergyAndPosition(), HGCalConcentratorCoarsenerImpl::coarsen(), HGCalConcentratorSuperTriggerCellImpl::createAllTriggerCells(), getRepresentativeDetId(), and HGCalConcentratorSuperTriggerCellImpl::select().
GlobalPoint HGCalCoarseTriggerCellMapping::getCoarseTriggerCellPosition | ( | uint32_t | ctcId | ) | const |
Definition at line 162 of file HGCalCoarseTriggerCellMapping.cc.
References PV3DBase< T, PVType, FrameType >::basicVector(), getConstituentTriggerCells(), HGCalTriggerTools::getTCPosition(), and triggerTools_.
Referenced by HGCalConcentratorSuperTriggerCellImpl::assignSuperTriggerCellEnergyAndPosition(), and HGCalConcentratorCoarsenerImpl::coarsen().
std::vector< uint32_t > HGCalCoarseTriggerCellMapping::getConstituentTriggerCells | ( | uint32_t | ctcId | ) | const |
Definition at line 102 of file HGCalCoarseTriggerCellMapping.cc.
References l1tHGCalConcentratorProducer_cfi::ctcSize, ctcSize_, DetId::det(), HGCalTriggerTools::getTriggerGeometry(), DetId::HGCalHSc, DetId::HGCalTrigger, mps_fire::i, HGCScintillatorDetId::iphi(), HGCScintillatorDetId::iradiusAbs(), HGCalTriggerTools::isScintillator(), kHGCalCellMaskInv_, HGCalTriggerDetId::kHGCalCellUMask, HGCalTriggerDetId::kHGCalCellUOffset, HGCalTriggerDetId::kHGCalCellVMask, HGCalTriggerDetId::kHGCalCellVOffset, HGCScintillatorDetId::kHGCalRadiusOffset, kHGCalScinCellMaskInv_, kNHGCalLayersMax_, kRoc0deg_, kRoc120deg_, kRoc240deg_, kRocMask_, kRocShift_, kRotate4_, kRotate7_, kSplit_, kSplit_Scin_, kSTCidMaskInv_, kUMask_, kUShift_, kVMask_, kVShift_, pixelTopology::layer, HGCalTriggerTools::layerWithOffset(), Calorimetry_cff::thickness, HGCalTriggerTools::thicknessIndex(), triggerTools_, findQualityFiles::v, and HGCalTriggerGeometryBase::validTriggerCell().
Referenced by HGCalConcentratorSuperTriggerCellImpl::assignSuperTriggerCellEnergyAndPosition(), HGCalConcentratorSuperTriggerCellImpl::createAllTriggerCells(), getCoarseTriggerCellPosition(), and getRepresentativeDetId().
uint32_t HGCalCoarseTriggerCellMapping::getRepresentativeDetId | ( | uint32_t | tcid | ) | const |
Definition at line 41 of file HGCalCoarseTriggerCellMapping.cc.
References getCoarseTriggerCellId(), getConstituentTriggerCells(), HGCalTriggerTools::getTriggerGeometry(), triggerTools_, and HGCalTriggerGeometryBase::validTriggerCell().
Referenced by HGCalConcentratorCoarsenerImpl::coarsen(), and HGCalConcentratorSuperTriggerCellImpl::createAllTriggerCells().
|
inline |
Definition at line 17 of file HGCalCoarseTriggerCellMapping.h.
References relativeConstraints::geom, HGCalTriggerTools::setGeometry(), and triggerTools_.
Referenced by HGCalConcentratorCoarsenerImpl::setGeometry(), and HGCalConcentratorSuperTriggerCellImpl::setGeometry().
|
private |
Definition at line 62 of file HGCalCoarseTriggerCellMapping.h.
Referenced by getCoarseTriggerCellId(), and getConstituentTriggerCells().
|
private |
Definition at line 61 of file HGCalCoarseTriggerCellMapping.h.
Referenced by getCoarseTriggerCellId().
|
static |
Definition at line 19 of file HGCalCoarseTriggerCellMapping.h.
Referenced by checkSizeValidity().
|
static |
Definition at line 21 of file HGCalCoarseTriggerCellMapping.h.
Referenced by checkSizeValidity().
|
static |
Definition at line 23 of file HGCalCoarseTriggerCellMapping.h.
Referenced by checkSizeValidity().
|
static |
Definition at line 20 of file HGCalCoarseTriggerCellMapping.h.
Referenced by checkSizeValidity().
|
static |
Definition at line 22 of file HGCalCoarseTriggerCellMapping.h.
Referenced by checkSizeValidity(), and HGCalCoarseTriggerCellMapping().
|
staticprivate |
Definition at line 53 of file HGCalCoarseTriggerCellMapping.h.
Referenced by getCoarseTriggerCellId(), and getConstituentTriggerCells().
|
staticprivate |
Definition at line 54 of file HGCalCoarseTriggerCellMapping.h.
Referenced by getCoarseTriggerCellId(), and getConstituentTriggerCells().
|
staticprivate |
Definition at line 30 of file HGCalCoarseTriggerCellMapping.h.
Referenced by getCoarseTriggerCellId(), getConstituentTriggerCells(), and HGCalCoarseTriggerCellMapping().
|
staticprivate |
Definition at line 29 of file HGCalCoarseTriggerCellMapping.h.
Referenced by HGCalCoarseTriggerCellMapping().
|
staticprivate |
Definition at line 56 of file HGCalCoarseTriggerCellMapping.h.
Referenced by getCoarseTriggerCellId(), and getConstituentTriggerCells().
|
staticprivate |
Definition at line 57 of file HGCalCoarseTriggerCellMapping.h.
Referenced by getCoarseTriggerCellId(), and getConstituentTriggerCells().
|
staticprivate |
Definition at line 58 of file HGCalCoarseTriggerCellMapping.h.
Referenced by getCoarseTriggerCellId(), and getConstituentTriggerCells().
|
staticprivate |
Definition at line 46 of file HGCalCoarseTriggerCellMapping.h.
Referenced by getConstituentTriggerCells().
|
staticprivate |
Definition at line 45 of file HGCalCoarseTriggerCellMapping.h.
Referenced by getCoarseTriggerCellId(), and getConstituentTriggerCells().
|
staticprivate |
Definition at line 47 of file HGCalCoarseTriggerCellMapping.h.
Referenced by getCoarseTriggerCellId(), and getConstituentTriggerCells().
|
staticprivate |
Definition at line 48 of file HGCalCoarseTriggerCellMapping.h.
Referenced by getCoarseTriggerCellId(), and getConstituentTriggerCells().
|
staticprivate |
Definition at line 26 of file HGCalCoarseTriggerCellMapping.h.
Referenced by getCoarseTriggerCellId(), and getConstituentTriggerCells().
|
staticprivate |
Definition at line 32 of file HGCalCoarseTriggerCellMapping.h.
|
staticprivate |
Definition at line 34 of file HGCalCoarseTriggerCellMapping.h.
|
staticprivate |
Definition at line 36 of file HGCalCoarseTriggerCellMapping.h.
|
staticprivate |
Definition at line 33 of file HGCalCoarseTriggerCellMapping.h.
|
staticprivate |
Definition at line 27 of file HGCalCoarseTriggerCellMapping.h.
Referenced by getCoarseTriggerCellId(), and getConstituentTriggerCells().
|
staticprivate |
Definition at line 38 of file HGCalCoarseTriggerCellMapping.h.
|
staticprivate |
Definition at line 40 of file HGCalCoarseTriggerCellMapping.h.
|
staticprivate |
Definition at line 42 of file HGCalCoarseTriggerCellMapping.h.
|
staticprivate |
Definition at line 39 of file HGCalCoarseTriggerCellMapping.h.
|
staticprivate |
Definition at line 41 of file HGCalCoarseTriggerCellMapping.h.
|
staticprivate |
Definition at line 35 of file HGCalCoarseTriggerCellMapping.h.
|
staticprivate |
Definition at line 28 of file HGCalCoarseTriggerCellMapping.h.
Referenced by getConstituentTriggerCells().
|
staticprivate |
Definition at line 51 of file HGCalCoarseTriggerCellMapping.h.
Referenced by getConstituentTriggerCells().
|
staticprivate |
Definition at line 49 of file HGCalCoarseTriggerCellMapping.h.
Referenced by getCoarseTriggerCellId(), and getConstituentTriggerCells().
|
staticprivate |
Definition at line 52 of file HGCalCoarseTriggerCellMapping.h.
Referenced by getConstituentTriggerCells().
|
staticprivate |
Definition at line 50 of file HGCalCoarseTriggerCellMapping.h.
Referenced by getConstituentTriggerCells().
|
private |
Definition at line 60 of file HGCalCoarseTriggerCellMapping.h.
Referenced by getCoarseTriggerCellId(), getCoarseTriggerCellPosition(), getConstituentTriggerCells(), getRepresentativeDetId(), and setGeometry().