#include <iostream>
#include <cstdlib>
#include <cstdint>
#include <bitset>
#include <string>
#include "UCTRegion.hh"
#include "UCTGeometry.hh"
#include "UCTLogging.hh"
#include "UCTTower.hh"
Go to the source code of this file.
◆ getHitTowerLocation()
uint32_t getHitTowerLocation |
( |
uint32_t * |
et | ) |
|
Definition at line 53 of file UCTRegion.cc.
References EgHLTOffHistBins_cfi::et.
54 uint32_t etSum =
et[0] +
et[1] +
et[2] +
et[3];
55 uint32_t iEtSum = (
et[0] >> 1) +
56 (
et[1] >> 1) +
et[1] +
57 (
et[2] >> 1) + (
et[2] << 1) +
58 (
et[3] << 2) - (
et[3] >> 1);
59 uint32_t iAve = 0xDEADBEEF;
62 else if (iEtSum <= (etSum << 1))
64 else if (iEtSum <= (etSum + (etSum << 1)))
◆ operator<<()
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const UCTRegion & |
r |
|
) |
| |
Definition at line 277 of file UCTRegion.cc.
References TauDecayModes::dec, and alignCSCRings::r.
279 os <<
"UCTRegion Summary for negative eta " <<
r.region <<
" HitTower (eta, phi) = (" <<
std::dec <<
r.hitCaloEta()
280 <<
", " <<
r.hitCaloPhi() <<
")" 281 <<
" summary = " << std::hex <<
r.regionSummary << std::endl;
283 os <<
"UCTRegion Summary for positive eta " <<
r.region <<
" HitTower (eta, phi) = (" <<
std::dec <<
r.hitCaloEta()
284 <<
", " <<
r.hitCaloPhi() <<
")" 285 <<
" summary = " << std::hex <<
r.regionSummary << std::endl;
◆ vetoBit()
bool vetoBit |
( |
bitset< 4 > |
etaPattern, |
|
|
bitset< 4 > |
phiPattern |
|
) |
| |
Definition at line 29 of file UCTRegion.cc.
30 bitset<4> badPattern5(
string(
"0101"));
31 bitset<4> badPattern7(
string(
"0111"));
32 bitset<4> badPattern9(
string(
"1001"));
33 bitset<4> badPattern10(
string(
"1010"));
34 bitset<4> badPattern11(
string(
"1011"));
35 bitset<4> badPattern13(
string(
"1101"));
36 bitset<4> badPattern14(
string(
"1110"));
37 bitset<4> badPattern15(
string(
"1111"));
41 if (etaPattern != badPattern5 && etaPattern != badPattern7 && etaPattern != badPattern10 &&
42 etaPattern != badPattern11 && etaPattern != badPattern13 && etaPattern != badPattern14 &&
43 etaPattern != badPattern15 && phiPattern != badPattern5 &&
45 phiPattern != badPattern10 && phiPattern != badPattern11 && phiPattern != badPattern13 &&
47 etaPattern != badPattern9 && phiPattern != badPattern9) {
◆ activityFraction
const float activityFraction = 0.125 |
◆ ecalActivityFraction
const float ecalActivityFraction = 0.25 |
◆ miscActivityFraction
const float miscActivityFraction = 0.25 |