#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 55 of file HFNoseNumberingScheme.cc.
56 std::pair<float, float>
xy;
58 double z1(0), tolR(10.0), tolZ(1.0);
64 xy =
hgcons_.
locateCell(lay,
id.waferU(),
id.waferV(),
id.cellU(),
id.cellV(),
false,
true);
70 double r2 =
pos.perp();
75 bool inok = ((
r2 >= rrange.first) && (
r2 <= rrange.second) && (
z2 >=
zrange.first) && (
z2 <=
zrange.second));
76 bool outok = ((
r1 >= rrange.first) && (
r1 <= rrange.second) && (z1 >=
zrange.first) && (z1 <=
zrange.second));
77 std::string ck = (((
r1 < rrange.first - tolR) || (
r1 > rrange.second + tolR) || (z1 <
zrange.first - tolZ) ||
78 (z1 >
zrange.second + tolZ))
81 if (!(
match && inok && outok)) {
83 <<
" R " <<
r2 <<
":" <<
r1 <<
":" << rrange.first <<
":" << rrange.second <<
" Z "
85 <<
":" << inok <<
":" << outok <<
" " << ck;
89 double wt = 0,
xx = ((
pos.z() > 0) ?
pos.x() : -
pos.x());
90 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 17 of file HFNoseNumberingScheme.cc.
22 int cellU(0), cellV(0), waferType(-1), waferU(0), waferV(0);
24 waferType =
module / 1000000;
26 if ((
module / 10000) % 10 > 0)
28 waferV = (
module / 100) % 100;
29 if ((
module / 100000) % 10 > 0)
32 cellV = (cell / 100) % 100;
40 edm::LogVerbatim(
"HFNSim") <<
"OK WaferType " << waferType <<
" Wafer " << waferU <<
":" << waferV <<
" Cell "
41 << cellU <<
":" << cellV;
47 edm::LogVerbatim(
"HFNSim") <<
"HFNoseNumberingScheme::i/p " << layer <<
":" <<
module <<
":" << cell <<
":" << iz
48 <<
":" <<
pos.x() <<
":" <<
pos.y() <<
":" <<
pos.z() <<
" ID " << std::hex <<
index
References checkPosition(), TauDecayModes::dec, 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.