4 #ifndef WTAConeParallelHelper_h
5 #define WTAConeParallelHelper_h
14 #ifdef BITWISE_SIMULATION
16 const IntOrFloat ETA_MIN = 0;
17 const IntOrFloat ETA_MAX = 99;
18 const IntOrFloat ETA_LEN = 100;
19 const IntOrFloat PHI_MIN = 0;
20 const IntOrFloat PHI_MAX = 63;
21 const IntOrFloat PHI_LEN = 64;
22 const IntOrFloat CORE_DIST = 8;
23 #elif defined(FLOATING_POINT_SIMULATION)
25 const IntOrFloat ETA_MIN = -2.5;
26 const IntOrFloat ETA_MAX = 2.5;
27 const IntOrFloat ETA_LEN = 5.0;
28 const IntOrFloat PHI_MIN = -
PI;
29 const IntOrFloat PHI_MAX =
PI;
30 const IntOrFloat PHI_LEN = 2 *
PI;
31 const IntOrFloat CORE_DIST = 0.8;
33 #error "Simulation type not defined. Define either BITWISE_SIMULATION or FLOATING_POINT_SIMULATION."
47 void CreateBlocks(
const std::vector<WTATrigObj>& all_towers);
49 template<
typename WTAClassType>
86 IntOrFloat this_eta = tower.
eta();
94 if(min_wrap <= max_wrap){
95 inside = (this_phi >= min_wrap) && (this_phi < max_wrap);
98 inside = !((this_phi >= max_wrap) && (this_phi < min_wrap));
106 IntOrFloat BlockLow = -99;
107 IntOrFloat BlockHigh = -99;
108 const unsigned tower_n = all_towers.size();
114 BlockHigh = ETA_MAX + CORE_DIST - (
m_BlockN - 1 -
i) * (
float)(ETA_LEN /
m_BlockN);
119 BlockHigh = PHI_MAX + CORE_DIST - (
m_BlockN - 1 -
i) * (
float)(PHI_LEN /
m_BlockN);
121 for(
unsigned int t = 0;
t < tower_n;
t++)
133 template<
typename WTAClassType>
139 MyWTAMakerClass->SeedCleaning();
140 MyWTAMakerClass->MergeConstsToSeeds();
147 IntOrFloat BlockLow = -99;
148 IntOrFloat BlockHigh = -99;
149 std::vector<WTAJet> all_jets;
165 for(
int j = this_block_jet_n - 1; j >= 0; j--)
176 std::vector<WTAJet> all_jets;