|
|
#include <HGCalCoarseTriggerCellMapping.h>
◆ HGCalCoarseTriggerCellMapping()
HGCalCoarseTriggerCellMapping::HGCalCoarseTriggerCellMapping |
( |
const std::vector< unsigned > & |
ctcSize | ) |
|
◆ checkSizeValidity()
void HGCalCoarseTriggerCellMapping::checkSizeValidity |
( |
int |
ctcSize | ) |
const |
◆ eventSetup()
void HGCalCoarseTriggerCellMapping::eventSetup |
( |
const edm::EventSetup & |
es | ) |
|
|
inline |
◆ getCoarseTriggerCellId()
uint32_t HGCalCoarseTriggerCellMapping::getCoarseTriggerCellId |
( |
uint32_t |
detid | ) |
const |
Definition at line 60 of file HGCalCoarseTriggerCellMapping.cc.
100 uPrime = tc_IdV9.triggerCellU();
101 vPrime = tc_IdV9.triggerCellV() - tc_IdV9.triggerCellU();
104 uPrime = tc_IdV9.triggerCellU() - tc_IdV9.triggerCellV() - 1;
105 vPrime = tc_IdV9.triggerCellV();
108 uPrime = tc_IdV9.triggerCellV() -
kRotate4_;
109 vPrime =
kRotate7_ - tc_IdV9.triggerCellU();
References HGCalDetId::cell(), hgcalConcentratorProducer_cfi::ctcSize, ctcSize_, DetId::det(), detIdToROC_, DetId::Forward, HGCSiliconDetIdToROC::getROCNumber(), DetId::HGCalHSc, DetId::HGCalTrigger, HGCScintillatorDetId::ietaAbs(), HGCScintillatorDetId::iphi(), HGCalTriggerTools::isScintillator(), HGCalDetId::kHGCalCellMask, kHGCalCellMaskV9Inv_, HGCScintillatorDetId::kHGCalRadiusOffset, kHGCalScinCellMaskInv_, kNHGCalLayersMax_, kRoc0deg_, kRoc120deg_, kRoc240deg_, kRocShift_, kRotate4_, kRotate7_, kSplit_, kSplit_v9_, kSplit_v9_Scin_, kUShift_, phase1PixelTopology::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().
◆ getCoarseTriggerCellPosition()
GlobalPoint HGCalCoarseTriggerCellMapping::getCoarseTriggerCellPosition |
( |
uint32_t |
ctcId | ) |
const |
◆ getConstituentTriggerCells()
std::vector< uint32_t > HGCalCoarseTriggerCellMapping::getConstituentTriggerCells |
( |
uint32_t |
ctcId | ) |
const |
Definition at line 122 of file HGCalCoarseTriggerCellMapping.cc.
127 std::vector<uint32_t> output_ids;
133 output_ids.emplace_back(ctcId);
136 for (
int i = 0;
i < splitInv + 1;
i++) {
137 if ((
i & splitInv) !=
i)
140 output_ids.emplace_back(ctcId |
i);
147 for (
int i = 0;
i < splitInv + 1;
i++) {
148 if ((
i & splitInv) !=
i)
156 output_ids.emplace_back(outid);
162 for (
int i = 0;
i < splitInv + 1;
i++) {
163 if ((
i & splitInv) !=
i)
176 u = uPrime + vPrime + 1;
188 output_ids.emplace_back(outid);
References hgcalConcentratorProducer_cfi::ctcSize, ctcSize_, DetId::det(), DetId::Forward, HGCalTriggerTools::getTriggerGeometry(), DetId::HGCalHSc, DetId::HGCalTrigger, mps_fire::i, HGCScintillatorDetId::iphi(), HGCScintillatorDetId::iradiusAbs(), HGCalTriggerTools::isScintillator(), kHGCalCellMaskV9Inv_, HGCalTriggerDetId::kHGCalCellUMask, HGCalTriggerDetId::kHGCalCellUOffset, HGCalTriggerDetId::kHGCalCellVMask, HGCalTriggerDetId::kHGCalCellVOffset, HGCScintillatorDetId::kHGCalRadiusOffset, kHGCalScinCellMaskInv_, kNHGCalLayersMax_, kRoc0deg_, kRoc120deg_, kRoc240deg_, kRocMask_, kRocShift_, kRotate4_, kRotate7_, kSplit_, kSplit_v9_, kSplit_v9_Scin_, kSTCidMaskInv_, kSTCidMaskInv_v9_, kUMask_, kUShift_, kVMask_, kVShift_, phase1PixelTopology::layer, HGCalTriggerTools::layerWithOffset(), Calorimetry_cff::thickness, HGCalTriggerTools::thicknessIndex(), triggerTools_, findQualityFiles::v, and HGCalTriggerGeometryBase::validTriggerCell().
Referenced by HGCalConcentratorSuperTriggerCellImpl::assignSuperTriggerCellEnergyAndPosition(), HGCalConcentratorSuperTriggerCellImpl::createAllTriggerCells(), getCoarseTriggerCellPosition(), and getRepresentativeDetId().
◆ getRepresentativeDetId()
uint32_t HGCalCoarseTriggerCellMapping::getRepresentativeDetId |
( |
uint32_t |
tcid | ) |
const |
◆ ctcSize_
std::vector<unsigned> HGCalCoarseTriggerCellMapping::ctcSize_ |
|
private |
◆ detIdToROC_
◆ kCTCsizeCoarse_
constexpr int HGCalCoarseTriggerCellMapping::kCTCsizeCoarse_ = 16 |
|
staticconstexpr |
◆ kCTCsizeFine_
constexpr int HGCalCoarseTriggerCellMapping::kCTCsizeFine_ = 4 |
|
staticconstexpr |
◆ kCTCsizeIndividual_
constexpr int HGCalCoarseTriggerCellMapping::kCTCsizeIndividual_ = 1 |
|
staticconstexpr |
◆ kCTCsizeMid_
constexpr int HGCalCoarseTriggerCellMapping::kCTCsizeMid_ = 8 |
|
staticconstexpr |
◆ kCTCsizeVeryFine_
constexpr int HGCalCoarseTriggerCellMapping::kCTCsizeVeryFine_ = 2 |
|
staticconstexpr |
◆ kHGCalCellMaskV9Inv_
constexpr int HGCalCoarseTriggerCellMapping::kHGCalCellMaskV9Inv_ = ~0xff |
|
staticconstexprprivate |
◆ kHGCalScinCellMaskInv_
constexpr int HGCalCoarseTriggerCellMapping::kHGCalScinCellMaskInv_ = ~0x1ffff |
|
staticconstexprprivate |
◆ kNHGCalLayersMax_
constexpr int HGCalCoarseTriggerCellMapping::kNHGCalLayersMax_ = 52 |
|
staticconstexprprivate |
◆ kNThicknesses_
constexpr int HGCalCoarseTriggerCellMapping::kNThicknesses_ = 4 |
|
staticconstexprprivate |
◆ kRoc0deg_
constexpr int HGCalCoarseTriggerCellMapping::kRoc0deg_ = 1 |
|
staticconstexprprivate |
◆ kRoc120deg_
constexpr int HGCalCoarseTriggerCellMapping::kRoc120deg_ = 2 |
|
staticconstexprprivate |
◆ kRoc240deg_
constexpr int HGCalCoarseTriggerCellMapping::kRoc240deg_ = 3 |
|
staticconstexprprivate |
◆ kRocMask_
constexpr int HGCalCoarseTriggerCellMapping::kRocMask_ = 0xf |
|
staticconstexprprivate |
◆ kRocShift_
constexpr int HGCalCoarseTriggerCellMapping::kRocShift_ = 4 |
|
staticconstexprprivate |
◆ kRotate4_
constexpr int HGCalCoarseTriggerCellMapping::kRotate4_ = 4 |
|
staticconstexprprivate |
◆ kRotate7_
constexpr int HGCalCoarseTriggerCellMapping::kRotate7_ = 7 |
|
staticconstexprprivate |
◆ kSplit_
const std::map< int, int > HGCalCoarseTriggerCellMapping::kSplit_ |
|
staticprivate |
◆ kSplit_v8_Coarse_
constexpr int HGCalCoarseTriggerCellMapping::kSplit_v8_Coarse_ = 0x30 |
|
staticconstexprprivate |
◆ kSplit_v8_Fine_
constexpr int HGCalCoarseTriggerCellMapping::kSplit_v8_Fine_ = 0x3a |
|
staticconstexprprivate |
◆ kSplit_v8_Individual_
constexpr int HGCalCoarseTriggerCellMapping::kSplit_v8_Individual_ = 0x3f |
|
staticconstexprprivate |
◆ kSplit_v8_Mid_
constexpr int HGCalCoarseTriggerCellMapping::kSplit_v8_Mid_ = 0x38 |
|
staticconstexprprivate |
◆ kSplit_v8_VeryFine_
constexpr int HGCalCoarseTriggerCellMapping::kSplit_v8_VeryFine_ = 0x3e |
|
staticconstexprprivate |
◆ kSplit_v9_
const std::map< int, int > HGCalCoarseTriggerCellMapping::kSplit_v9_ |
|
staticprivate |
◆ kSplit_v9_Coarse_
constexpr int HGCalCoarseTriggerCellMapping::kSplit_v9_Coarse_ = 0 |
|
staticconstexprprivate |
◆ kSplit_v9_Fine_
constexpr int HGCalCoarseTriggerCellMapping::kSplit_v9_Fine_ = 0xa |
|
staticconstexprprivate |
◆ kSplit_v9_Individual_
constexpr int HGCalCoarseTriggerCellMapping::kSplit_v9_Individual_ = 0xf |
|
staticconstexprprivate |
◆ kSplit_v9_Mid_
constexpr int HGCalCoarseTriggerCellMapping::kSplit_v9_Mid_ = 0x2 |
|
staticconstexprprivate |
◆ kSplit_v9_Scin_
const std::map< int, int > HGCalCoarseTriggerCellMapping::kSplit_v9_Scin_ |
|
staticprivate |
◆ kSplit_v9_Scin_Coarse_
constexpr int HGCalCoarseTriggerCellMapping::kSplit_v9_Scin_Coarse_ = 0x1f9fc |
|
staticconstexprprivate |
◆ kSplit_v9_Scin_Fine_
constexpr int HGCalCoarseTriggerCellMapping::kSplit_v9_Scin_Fine_ = 0x1fdfe |
|
staticconstexprprivate |
◆ kSplit_v9_Scin_Individual_
constexpr int HGCalCoarseTriggerCellMapping::kSplit_v9_Scin_Individual_ = 0x1ffff |
|
staticconstexprprivate |
◆ kSplit_v9_Scin_Mid_
constexpr int HGCalCoarseTriggerCellMapping::kSplit_v9_Scin_Mid_ = 0x1fdfc |
|
staticconstexprprivate |
◆ kSplit_v9_Scin_VeryFine_
constexpr int HGCalCoarseTriggerCellMapping::kSplit_v9_Scin_VeryFine_ = 0x1fffe |
|
staticconstexprprivate |
◆ kSplit_v9_VeryFine_
constexpr int HGCalCoarseTriggerCellMapping::kSplit_v9_VeryFine_ = 0xb |
|
staticconstexprprivate |
◆ kSTCidMaskInv_
constexpr int HGCalCoarseTriggerCellMapping::kSTCidMaskInv_ = ~0x3f |
|
staticconstexprprivate |
◆ kSTCidMaskInv_v9_
constexpr int HGCalCoarseTriggerCellMapping::kSTCidMaskInv_v9_ = ~0xf |
|
staticconstexprprivate |
◆ kUMask_
constexpr int HGCalCoarseTriggerCellMapping::kUMask_ = 0x3 |
|
staticconstexprprivate |
◆ kUShift_
constexpr int HGCalCoarseTriggerCellMapping::kUShift_ = 2 |
|
staticconstexprprivate |
◆ kVMask_
constexpr int HGCalCoarseTriggerCellMapping::kVMask_ = 0x3 |
|
staticconstexprprivate |
◆ kVShift_
constexpr int HGCalCoarseTriggerCellMapping::kVShift_ = 0 |
|
staticconstexprprivate |
◆ triggerTools_
int getROCNumber(HGCalTriggerDetId const &id) const
static constexpr int kSplit_v8_VeryFine_
static constexpr int kSplit_v9_Scin_Individual_
static constexpr int kCTCsizeCoarse_
int iphi() const
get the phi index
static constexpr int kUShift_
static constexpr int kCTCsizeVeryFine_
static const std::map< int, int > kSplit_
std::vector< unsigned > ctcSize_
static constexpr int kRoc120deg_
static constexpr int kSTCidMaskInv_
static constexpr int kHGCalScinCellMaskInv_
static const std::map< int, int > kSplit_v9_
std::vector< uint32_t > getConstituentTriggerCells(uint32_t ctcId) const
static constexpr int kSplit_v9_Scin_Coarse_
void checkSizeValidity(int ctcSize) const
static constexpr int kUMask_
static constexpr int kNThicknesses_
uint32_t getCoarseTriggerCellId(uint32_t detid) const
static constexpr int kRotate7_
static constexpr int kCTCsizeFine_
static constexpr int kSplit_v9_Mid_
static constexpr int kSplit_v8_Fine_
static constexpr int kSplit_v9_Scin_VeryFine_
static constexpr int kSplit_v8_Mid_
static const int kHGCalCellVOffset
static constexpr int kSplit_v9_Scin_Fine_
static constexpr int kRocMask_
static constexpr int kVMask_
static constexpr int kSplit_v9_Coarse_
static constexpr int kSplit_v8_Coarse_
constexpr std::array< uint8_t, layerIndexSize > layer
static const std::map< int, int > kSplit_v9_Scin_
static const int kHGCalRadiusOffset
static constexpr int kCTCsizeIndividual_
virtual bool validTriggerCell(const unsigned trigger_cell_id) const =0
static constexpr int kCTCsizeMid_
static constexpr int kRotate4_
static const int kHGCalCellVMask
static constexpr int kSplit_v9_VeryFine_
const BasicVectorType & basicVector() const
static const int kHGCalCellMask
static constexpr int kRoc240deg_
static constexpr int kHGCalCellMaskV9Inv_
HGCSiliconDetIdToROC detIdToROC_
HGCalTriggerTools triggerTools_
static constexpr int kRoc0deg_
static constexpr int kSplit_v8_Individual_
static const int kHGCalCellUMask
static constexpr int kRocShift_
static constexpr int kSplit_v9_Fine_
static constexpr int kSTCidMaskInv_v9_
static constexpr int kNHGCalLayersMax_
static constexpr int kVShift_
static constexpr int kSplit_v9_Individual_
static constexpr int kSplit_v9_Scin_Mid_
static const int kHGCalCellUOffset