19 int waferUsign = (waferU >= 0) ? 0 : 1;
20 int waferVsign = (waferV >= 0) ? 0 : 1;
21 int zside = (zp < 0) ? 1 : 0;
61 std::vector<int> vc =
cellV();
63 for (
auto const &
v : vc) {
73 std::vector<int> uc =
cellU();
74 std::vector<int> vc =
cellV();
76 for (
unsigned int k=0;
k<uc.size(); ++
k) {
77 y += (2*uc[
k]-(N+vc[
k]));
89 for (
int i=0;
i<nT; ++
i) {
90 for (
int j=0; j<nT; ++j) {
91 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+
i);
104 for (
int i=0;
i<nT; ++
i) {
105 for (
int j=0; j<nT; ++j) {
106 uc.emplace_back(u0+j);
122 for (
int i=0;
i<nT; ++
i) {
123 for (
int j=0; j<nT; ++j) {
124 vc.emplace_back(v0+j);
130 for (
int i=0;
i<nT; ++
i) {
131 for (
int j=0; j<nT; ++j) {
132 vc.emplace_back(v0+j);
138 for (
int i=0;
i<nT; ++
i) {
139 for (
int j=0; j<nT; ++j) {
140 vc.emplace_back(v0+
i);
149 std::vector<int> uc =
cellU();
150 std::vector<int> vc =
cellV();
151 std::vector<std::pair<int,int> > uv;
152 for (
unsigned int k=0;
k<uc.size(); ++
k) {
153 uv.emplace_back(std::pair<int,int>(uc[
k],vc[k]));
159 return s <<
" EE:HSil= " <<
id.isEE() <<
":" <<
id.isHSilicon()
160 <<
" type= " <<
id.type() <<
" z= " <<
id.zside()
161 <<
" layer= " <<
id.layer()
162 <<
" wafer(u,v:x,y)= (" <<
id.waferU() <<
"," <<
id.waferV() <<
":" 163 <<
id.waferX() <<
"," <<
id.waferY() <<
")" 164 <<
" triggerCell(u,v:x,y)= (" <<
id.triggerCellU() <<
"," 165 <<
id.triggerCellV() <<
":" <<
id.triggerCellX() <<
"," 166 <<
id.triggerCellY() <<
")";
static const int kHGCalSubdetMask
HGCalTriggerSubdetector subdet() const
get the subdetector
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)
static const int kHGCalTypeOffset
int type() const
get the type
static const int kHGCalLayerOffset
static const int kHGCalCellVOffset
int layer() const
get the layer #
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
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 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
static const int kHGCalWaferVOffset
static const int kHGCalCellUMask
std::ostream & operator<<(std::ostream &s, const HGCalTriggerDetId &id)
static const int HGCalFineTrigger
static const int kHGCalWaferUSignOffset
constexpr Detector det() const
get the detector field from this detid