|
|
Go to the documentation of this file.
14 int subdet,
int zp,
int type,
int layer,
int waferU,
int waferV,
int cellU,
int cellV)
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 kHFNoseLayerOffset
static const int kHFNoseCellVOffset
static const int kHFNoseWaferUSignMask
static const int kHFNoseWaferUMask
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 kHFNoseCellUMask
HGCalTriggerSubdetector subdet() const
get the subdetector
std::vector< int > cellU() const
int type() const
get the type
static const int HFNoseCoarseTrigger
static const int kHFNoseWaferUSignOffset
static const int kHFNoseCellUOffset
static const int kHFNoseSubdetMask
std::ostream & operator<<(std::ostream &s, const HFNoseTriggerDetId &id)
static const int kHFNoseZsideOffset
static const int kHFNoseZsideMask
static const int kHFNoseSubdetOffset
static const int HFNoseFineTrigger
static const int kHFNoseWaferVSignMask
static const int kHFNoseWaferVOffset
static const int kHFNoseWaferUOffset
static const int kHFNoseCellVMask
static const int HFNoseTriggerCell
static const int kHFNoseTypeMask
static const int kHFNoseTypeOffset
std::vector< int > cellV() const
std::vector< std::pair< int, int > > cellUV() const
static const int kHFNoseWaferVMask
static const HFNoseTriggerDetId Undefined
HFNoseTriggerDetId & operator=(const DetId &id)
static const int kHFNoseWaferVSignOffset
Abs< T >::type abs(const T &t)
int layer() const
get the layer #
static const int kHFNoseLayerMask