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
static const int kHFNoseCellVMask
static const int kHFNoseWaferVSignOffset
static const int HFNoseCoarseTrigger
int32_t waferU(const int32_t index)
constexpr bool null() const
is this a null id ?
static const int kHFNoseTypeOffset
constexpr uint32_t rawId() const
get the raw id
std::vector< int > cellV() const
static const int kHFNoseWaferVOffset
std::ostream & operator<<(std::ostream &out, const ALILine &li)
int triggerCellU() const
get the cell #'s in u,v or in x,y
std::vector< std::pair< int, int > > cellUV() const
constexpr std::array< uint8_t, layerIndexSize > layer
static const int HFNoseFineTrigger
int type() const
get the type
static const int kHFNoseLayerOffset
static const int kHFNoseWaferUSignOffset
int zside() const
get the z-side of the cell (1/-1)
static const int kHFNoseCellVOffset
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
Abs< T >::type abs(const T &t)
static const int kHFNoseSubdetMask
static const int kHFNoseCellUMask
std::vector< int > cellU() const
static const int kHFNoseWaferVSignMask
static const int HFNoseTriggerCell
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
constexpr Detector det() const
get the detector field from this detid