#include <iostream>
#include <stdlib.h>
#include <stdint.h>
#include <bitset>
#include <string>
#include "UCTRegion.hh"
#include "UCTGeometry.hh"
#include "UCTLogging.hh"
#include "UCTTower.hh"
Go to the source code of this file.
uint32_t getHitTowerLocation |
( |
uint32_t * |
et | ) |
|
Definition at line 57 of file UCTRegion.cc.
58 uint32_t etSum = et[0] + et[1] + et[2] + et[3];
61 (et[1] >> 1) + et[1] +
62 (et[2] >> 1) + (et[2] << 1) +
63 (et[3] << 2) - (et[3] >> 1) ;
64 uint32_t iAve = 0xDEADBEEF;
65 if( iEtSum <= etSum) iAve = 0;
66 else if(iEtSum <= (etSum << 1)) iAve = 1;
67 else if(iEtSum <= (etSum + (etSum << 1))) iAve = 2;
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const UCTRegion & |
r |
|
) |
| |
Definition at line 268 of file UCTRegion.cc.
References TauDecayModes::dec.
270 os <<
"UCTRegion Summary for negative eta " <<
r.region
271 <<
" HitTower (eta, phi) = (" <<
std::dec <<
r.hitCaloEta() <<
", " <<
r.hitCaloPhi() <<
")"
272 <<
" summary = "<< std::hex <<
r.regionSummary << std::endl;
274 os <<
"UCTRegion Summary for positive eta " <<
r.region
275 <<
" HitTower (eta, phi) = (" <<
std::dec <<
r.hitCaloEta() <<
", " <<
r.hitCaloPhi() <<
")"
276 <<
" summary = "<< std::hex <<
r.regionSummary << std::endl;
bool vetoBit |
( |
bitset< 4 > |
etaPattern, |
|
|
bitset< 4 > |
phiPattern |
|
) |
| |
Definition at line 29 of file UCTRegion.cc.
References submit::answer.
31 bitset<4> badPattern5(
string(
"0101"));
32 bitset<4> badPattern7(
string(
"0111"));
33 bitset<4> badPattern9(
string(
"1001"));
34 bitset<4> badPattern10(
string(
"1010"));
35 bitset<4> badPattern11(
string(
"1011"));
36 bitset<4> badPattern13(
string(
"1101"));
37 bitset<4> badPattern14(
string(
"1110"));
38 bitset<4> badPattern15(
string(
"1111"));
42 if(etaPattern != badPattern5 && etaPattern != badPattern7 &&
43 etaPattern != badPattern10 && etaPattern != badPattern11 &&
44 etaPattern != badPattern13 && etaPattern != badPattern14 &&
45 etaPattern != badPattern15 && phiPattern != badPattern5 &&
47 phiPattern != badPattern10 &&
48 phiPattern != badPattern11 && phiPattern != badPattern13 &&
50 etaPattern != badPattern9 && phiPattern != badPattern9){
const float activityFraction = 0.125 |
const float ecalActivityFraction = 0.25 |
const float miscActivityFraction = 0.25 |