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;
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()));
65 std::vector<int> uc =
cellU();
66 std::vector<int> vc =
cellV();
68 for (
unsigned int k = 0;
k < uc.size(); ++
k) {
69 y += (2 * uc[
k] - (
N + vc[
k]));
71 return (
y / static_cast<int>(vc.size()));
80 for (
int i = 0;
i < nT; ++
i) {
81 for (
int j = 0;
j < nT; ++
j) {
82 uc.emplace_back(u0 +
i);
87 for (
int i = 0;
i < nT; ++
i) {
88 for (
int j = 0;
j < nT; ++
j) {
89 uc.emplace_back(u0 +
i);
94 for (
int i = 0;
i < nT; ++
i) {
95 for (
int j = 0;
j < nT; ++
j) {
96 uc.emplace_back(u0 +
j);
110 for (
int i = 0;
i < nT; ++
i) {
111 for (
int j = 0;
j < nT; ++
j) {
112 vc.emplace_back(
v0 +
j);
117 for (
int i = 0;
i < nT; ++
i) {
118 for (
int j = 0;
j < nT; ++
j) {
119 vc.emplace_back(
v0 +
j);
125 for (
int i = 0;
i < nT; ++
i) {
126 for (
int j = 0;
j < nT; ++
j) {
127 vc.emplace_back(
v0 +
i);
135 std::vector<int> uc =
cellU();
136 std::vector<int> vc =
cellV();
137 std::vector<std::pair<int, int> > uv;
138 for (
unsigned int k = 0;
k < uc.size(); ++
k) {
139 uv.emplace_back(std::pair<int, int>(uc[
k], vc[
k]));
145 return s <<
" EE:HSil= " <<
id.isEE() <<
":" <<
id.isHSilicon() <<
" type= " <<
id.type() <<
" z= " <<
id.zside()
146 <<
" layer= " <<
id.layer() <<
" wafer(u,v:x,y)= (" <<
id.waferU() <<
"," <<
id.waferV() <<
":" 147 <<
id.waferX() <<
"," <<
id.waferY() <<
")" 148 <<
" triggerCell(u,v:x,y)= (" <<
id.triggerCellU() <<
"," <<
id.triggerCellV() <<
":" <<
id.triggerCellX()
149 <<
"," <<
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