17 int waferUsign = (
waferU >= 0) ? 0 : 1;
18 int waferVsign = (
waferV >= 0) ? 0 : 1;
19 int zside = (zp < 0) ? 1 : 0;
33 <<
"Cannot initialize HFNoseTriggerDetId from " << std::hex <<
gen.rawId() <<
std::dec;
43 <<
"Cannot assign HFNoseTriggerDetId from " << std::hex <<
gen.rawId() <<
std::dec;
53 std::vector<int> vc =
cellV();
55 for (
auto const&
v : vc) {
56 x += (3 * (
v -
N) + 2);
58 return (
x / static_cast<int>(vc.size()));
64 std::vector<int> uc =
cellU();
65 std::vector<int> vc =
cellV();
67 for (
unsigned int k = 0;
k < uc.size(); ++
k) {
68 y += (2 * uc[
k] - (
N + vc[
k]));
70 return (
y / static_cast<int>(vc.size()));
78 for (
int i = 0;
i < nT; ++
i) {
79 for (
int j = 0;
j < nT; ++
j) {
80 uc.emplace_back(u0 +
i);
85 for (
int i = 0;
i < nT; ++
i) {
86 for (
int j = 0;
j < nT; ++
j) {
87 uc.emplace_back(u0 +
i);
92 for (
int i = 0;
i < nT; ++
i) {
93 for (
int j = 0;
j < nT; ++
j) {
94 uc.emplace_back(u0 +
j);
107 for (
int i = 0;
i < nT; ++
i) {
108 for (
int j = 0;
j < nT; ++
j) {
109 vc.emplace_back(
v0 +
j);
114 for (
int i = 0;
i < nT; ++
i) {
115 for (
int j = 0;
j < nT; ++
j) {
116 vc.emplace_back(
v0 +
j);
122 for (
int i = 0;
i < nT; ++
i) {
123 for (
int j = 0;
j < nT; ++
j) {
124 vc.emplace_back(
v0 +
i);
132 std::vector<int> uc =
cellU();
133 std::vector<int> vc =
cellV();
134 std::vector<std::pair<int, int> > uv;
135 for (
unsigned int k = 0;
k < uc.size(); ++
k) {
136 uv.emplace_back(uc[
k], vc[
k]);
142 return s <<
" EE:HSil= " <<
id.isEE() <<
":" <<
id.isHSilicon() <<
" type= " <<
id.type() <<
" z= " <<
id.zside()
143 <<
" layer= " <<
id.layer() <<
" wafer(u,v:x,y)= (" <<
id.waferU() <<
"," <<
id.waferV() <<
":" 144 <<
id.waferX() <<
"," <<
id.waferY() <<
")" 145 <<
" triggerCell(u,v:x,y)= (" <<
id.triggerCellU() <<
"," <<
id.triggerCellV() <<
":" <<
id.triggerCellX()
146 <<
"," <<
id.triggerCellY() <<
")";
static const int kHFNoseWaferUOffset
std::vector< std::pair< int, int > > cellUV() const
static const int kHFNoseCellVMask
static const int kHFNoseWaferVSignOffset
static const int HFNoseCoarseTrigger
int32_t waferU(const int32_t index)
static const int kHFNoseTypeOffset
std::ostream & operator<<(std::ostream &s, const HFNoseTriggerDetId &id)
static const int kHFNoseWaferVOffset
int zside() const
get the z-side of the cell (1/-1)
constexpr std::array< uint8_t, layerIndexSize< TrackerTraits > > layer
static const int HFNoseFineTrigger
int layer() const
get the layer #
static const int kHFNoseLayerOffset
static const int kHFNoseWaferUSignOffset
static const int kHFNoseCellVOffset
Abs< T >::type abs(const T &t)
static const int kHFNoseSubdetMask
static const int kHFNoseCellUMask
int triggerCellU() const
get the cell #'s in u,v or in x,y
static const int kHFNoseWaferVSignMask
int type() const
get the type
static const int HFNoseTriggerCell
std::vector< int > cellU() const
HGCalTriggerSubdetector subdet() const
get the subdetector
std::vector< int > cellV() const
static const int kHFNoseLayerMask
int32_t waferV(const int32_t index)
static const int kHFNoseWaferUSignMask
static const int kHFNoseZsideOffset
static const int kHFNoseWaferVMask
static const int kHFNoseWaferUMask
static const int kHFNoseZsideMask
static const HFNoseTriggerDetId Undefined
static const int kHFNoseCellUOffset
HFNoseTriggerDetId & operator=(const DetId &id)
static const int kHFNoseSubdetOffset
static const int kHFNoseTypeMask