|
|
Go to the documentation of this file.
13 int subdet,
int zp,
int type,
int layer,
int waferU,
int waferV,
int cellU,
int cellV)
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 kHGCalWaferUSignOffset
static const int HGCalCoarseTrigger
int zside() const
get the z-side of the cell (1/-1)
static const int kHGCalSubdetMask
std::vector< int > cellV() const
std::vector< int > cellU() const
std::vector< std::pair< int, int > > cellUV() const
static const int kHGCalLayerOffset
static const int kHGCalWaferVSignMask
static const int kHGCalWaferUOffset
static const int kHGCalZsideOffset
int triggerCellU() const
get the cell #'s in u,v or in x,y
int layer() const
get the layer #
static const int kHGCalCellVOffset
std::ostream & operator<<(std::ostream &s, const HGCalTriggerDetId &id)
static const int kHGCalTypeOffset
static const int kHGCalWaferUSignMask
static const int HGCalTriggerCell
static const int kHGCalTypeMask
HGCalTriggerDetId & operator=(const DetId &id)
static const int kHGCalZsideMask
static const int kHGCalWaferVMask
HGCalTriggerSubdetector subdet() const
get the subdetector
static const int kHGCalWaferUMask
static const int kHGCalLayerMask
static const int kHGCalSubdetOffset
static const int kHGCalCellVMask
static const HGCalTriggerDetId Undefined
static const int HGCalFineTrigger
static const int kHGCalWaferVSignOffset
static const int kHGCalCellUMask
int type() const
get the type
Abs< T >::type abs(const T &t)
static const int kHGCalWaferVOffset
static const int kHGCalCellUOffset