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
int32_t waferU(const int32_t index)
constexpr bool null() const
is this a null id ?
static const int kHGCalWaferVSignMask
int triggerCellU() const
get the cell #'s in u,v or in x,y
std::vector< std::pair< int, int > > cellUV() const
constexpr uint32_t rawId() const
get the raw id
int zside() const
get the z-side of the cell (1/-1)
std::ostream & operator<<(std::ostream &out, const ALILine &li)
static const int kHGCalTypeOffset
int type() const
get the type
constexpr std::array< uint8_t, layerIndexSize > layer
static const int kHGCalLayerOffset
static const int kHGCalCellVOffset
static const int kHGCalZsideMask
static const int kHGCalWaferUSignMask
static const int HGCalTriggerCell
static const int kHGCalWaferUOffset
static const int kHGCalZsideOffset
static const int HGCalCoarseTrigger
static const int kHGCalWaferVMask
Abs< T >::type abs(const T &t)
static const int kHGCalTypeMask
std::vector< int > cellV() const
static const int kHGCalSubdetOffset
static const int kHGCalCellVMask
static const HGCalTriggerDetId Undefined
HGCalTriggerDetId & operator=(const DetId &id)
static const int kHGCalWaferUMask
static const int kHGCalLayerMask
static const int kHGCalWaferVSignOffset
std::vector< int > cellU() const
static const int kHGCalCellUOffset
int32_t waferV(const int32_t index)
static const int kHGCalWaferVOffset
static const int kHGCalCellUMask
static const int HGCalFineTrigger
static const int kHGCalWaferUSignOffset
constexpr Detector det() const
get the detector field from this detid