#include <HFNoseNumberingScheme.h>
Definition at line 14 of file HFNoseNumberingScheme.h.
◆ HFNoseNumberingScheme() [1/2]
◆ ~HFNoseNumberingScheme()
HFNoseNumberingScheme::~HFNoseNumberingScheme |
( |
| ) |
|
|
inline |
◆ HFNoseNumberingScheme() [2/2]
HFNoseNumberingScheme::HFNoseNumberingScheme |
( |
| ) |
|
|
privatedelete |
◆ checkPosition()
void HFNoseNumberingScheme::checkPosition |
( |
uint32_t |
index, |
|
|
const G4ThreeVector & |
pos |
|
) |
| const |
|
private |
Definition at line 52 of file HFNoseNumberingScheme.cc.
53 std::pair<float, float>
xy;
55 double z1(0), tolR(10.0), tolZ(1.0);
61 xy =
hgcons_.
locateCell(lay,
id.waferU(),
id.waferV(),
id.cellU(),
id.cellV(),
false,
true);
67 double r2 =
pos.perp();
72 bool inok = ((
r2 >= rrange.first) && (
r2 <= rrange.second) && (
z2 >=
zrange.first) && (
z2 <=
zrange.second));
73 bool outok = ((
r1 >= rrange.first) && (
r1 <= rrange.second) && (z1 >=
zrange.first) && (z1 <=
zrange.second));
74 std::string ck = (((
r1 < rrange.first - tolR) || (
r1 > rrange.second + tolR) || (z1 <
zrange.first - tolZ) ||
75 (z1 >
zrange.second + tolZ))
78 if (!(
match && inok && outok)) {
80 <<
" R " <<
r2 <<
":" <<
r1 <<
":" << rrange.first <<
":" << rrange.second <<
" Z "
82 <<
":" << inok <<
":" << outok <<
" " << ck;
86 double wt = 0,
xx = ((
pos.z() > 0) ?
pos.x() : -
pos.x());
87 int waferU, waferV, cellU, cellV, waferType;
References funct::abs(), DetId::det(), DetId::Forward, HFNose, hgcons_, HGCalDDDConstants::locateCell(), match(), convertSQLiteXML::ok, diffTwoXMLs::r1, diffTwoXMLs::r2, HGCalDDDConstants::rangeR(), HGCalDDDConstants::rangeZ(), mathSSE::sqrt(), AlCaHLTBitMon_QueryRunRegistry::string, HGCalDDDConstants::waferFromPosition(), HGCalDDDConstants::waferZ(), geometryCSVtoXML::xx, geometryCSVtoXML::xy, testProducerWithPsetDescEmpty_cfi::z2, and TkClusParameters_cff::zrange.
Referenced by getUnitID().
◆ getUnitID()
uint32_t HFNoseNumberingScheme::getUnitID |
( |
int |
layer, |
|
|
int |
module, |
|
|
int |
cell, |
|
|
int |
iz, |
|
|
const G4ThreeVector & |
pos, |
|
|
double & |
wt |
|
) |
| |
assigns the det id to a hit
Definition at line 18 of file HFNoseNumberingScheme.cc.
23 int cellU(0), cellV(0), waferType(-1), waferU(0), waferV(0);
37 edm::LogVerbatim(
"HFNSim") <<
"OK WaferType " << waferType <<
" Wafer " << waferU <<
":" << waferV <<
" Cell "
38 << cellU <<
":" << cellV;
44 edm::LogVerbatim(
"HFNSim") <<
"HFNoseNumberingScheme::i/p " << layer <<
":" << module <<
":" << cell <<
":" << iz
45 <<
":" <<
pos.x() <<
":" <<
pos.y() <<
":" <<
pos.z() <<
" ID " << std::hex <<
index
References checkPosition(), TauDecayModes::dec, HGCalTypes::getUnpackedCellU(), HGCalTypes::getUnpackedCellV(), HGCalTypes::getUnpackedType(), HGCalTypes::getUnpackedU(), HGCalTypes::getUnpackedV(), HGCalGeometryMode::Hexagon8Full, hgcons_, mode_, DetId::rawId(), HGCalDDDConstants::waferFromPosition(), and geometryCSVtoXML::xx.
◆ hgcons_
◆ mode_
std::pair< typename Association::data_type::first_type, double > match(Reference key, Association association, bool bestMatchByMaxValue)
Generic matching function.