16 int waferUsign = (
waferU >= 0) ? 0 : 1;
17 int waferVsign = (
waferV >= 0) ? 0 : 1;
18 int zside = (zp < 0) ? 1 : 0;
32 <<
"Cannot initialize HGCalTriggerDetId from " << std::hex <<
gen.rawId() <<
std::dec;
42 <<
"Cannot assign HGCalTriggerDetId from " << std::hex <<
gen.rawId() <<
std::dec;
54 std::vector<int> vc =
cellV();
56 for (
auto const&
v : vc) {
57 x += (3 * (
v -
N) + 2);
59 return (
x / static_cast<int>(vc.size()));
67 std::vector<int> uc =
cellU();
68 std::vector<int> vc =
cellV();
70 for (
unsigned int k = 0;
k < uc.size(); ++
k) {
71 y += (2 * uc[
k] - (
N + vc[
k]));
73 return (
y / static_cast<int>(vc.size()));
83 for (
int i = 0;
i < nT; ++
i) {
84 for (
int j = 0;
j < nT; ++
j) {
85 uc.emplace_back(u0 +
i);
90 for (
int i = 0;
i < nT; ++
i) {
91 for (
int j = 0;
j < nT; ++
j) {
92 uc.emplace_back(u0 +
i);
97 for (
int i = 0;
i < nT; ++
i) {
98 for (
int j = 0;
j < nT; ++
j) {
99 uc.emplace_back(u0 +
j);
114 for (
int i = 0;
i < nT; ++
i) {
115 for (
int j = 0;
j < nT; ++
j) {
116 vc.emplace_back(
v0 +
j);
121 for (
int i = 0;
i < nT; ++
i) {
122 for (
int j = 0;
j < nT; ++
j) {
123 vc.emplace_back(
v0 +
j);
129 for (
int i = 0;
i < nT; ++
i) {
130 for (
int j = 0;
j < nT; ++
j) {
131 vc.emplace_back(
v0 +
i);
139 std::vector<int> uc =
cellU();
140 std::vector<int> vc =
cellV();
141 std::vector<std::pair<int, int> > uv;
142 for (
unsigned int k = 0;
k < uc.size(); ++
k) {
143 uv.emplace_back(std::pair<int, int>(uc[
k], vc[
k]));
149 return s <<
" EE:HSil= " <<
id.isEE() <<
":" <<
id.isHSilicon() <<
" type= " <<
id.type() <<
" z= " <<
id.zside()
150 <<
" layer= " <<
id.layer() <<
" wafer(u,v:x,y)= (" <<
id.waferU() <<
"," <<
id.waferV() <<
":" 151 <<
id.waferX() <<
"," <<
id.waferY() <<
")" 152 <<
" triggerCell(u,v:x,y)= (" <<
id.triggerCellU() <<
"," <<
id.triggerCellV() <<
":" <<
id.triggerCellX()
153 <<
"," <<
id.triggerCellY() <<
")";
static const int kHGCalSubdetMask
std::vector< int > cellV() const
std::vector< int > cellU() const
int32_t waferU(const int32_t index)
static const int kHGCalWaferVSignMask
int zside() const
get the z-side of the cell (1/-1)
int triggerCellU() const
get the cell #'s in u,v or in x,y
static const int kHGCalTypeOffset
static const int kHGCalLayerOffset
int layer() const
get the layer #
static const int kHGCalCellVOffset
static const int kHGCalZsideMask
static constexpr int32_t HGCalCoarseTrigger
static const int kHGCalWaferUSignMask
static const int HGCalTriggerCell
std::vector< std::pair< int, int > > cellUV() const
static const int kHGCalWaferUOffset
static const int kHGCalZsideOffset
static const int kHGCalWaferVMask
HGCalTriggerSubdetector subdet() const
get the subdetector
Abs< T >::type abs(const T &t)
static const int kHGCalTypeMask
static constexpr int32_t HGCalFineTrigger
static const int kHGCalSubdetOffset
static const int kHGCalCellVMask
static const HGCalTriggerDetId Undefined
HGCalTriggerDetId & operator=(const DetId &id)
static const int kHGCalWaferUMask
int type() const
get the type
static const int kHGCalLayerMask
static const int kHGCalWaferVSignOffset
static const int kHGCalCellUOffset
int32_t waferV(const int32_t index)
static const int kHGCalWaferVOffset
static const int kHGCalCellUMask
std::ostream & operator<<(std::ostream &s, const HGCalTriggerDetId &id)
static const int kHGCalWaferUSignOffset