1 #ifndef WTAConeParallelHelper_h
2 #define WTAConeParallelHelper_h
10 #ifdef BITWISE_SIMULATION
12 const IntOrFloat ETA_MIN = 0;
13 const IntOrFloat ETA_MAX = 99;
14 const IntOrFloat ETA_LEN = 100;
15 const IntOrFloat PHI_MIN = 0;
16 const IntOrFloat PHI_MAX = 63;
17 const IntOrFloat PHI_LEN = 64;
18 const IntOrFloat CORE_DIST = 8;
19 #elif defined(FLOATING_POINT_SIMULATION)
21 const IntOrFloat ETA_MIN = -2.5;
22 const IntOrFloat ETA_MAX = 2.5;
23 const IntOrFloat ETA_LEN = 5.0;
24 const IntOrFloat PHI_MIN = -
PI;
25 const IntOrFloat PHI_MAX =
PI;
26 const IntOrFloat PHI_LEN = 2 *
PI;
27 const IntOrFloat CORE_DIST = 0.8;
29 #error "Simulation type not defined. Define either BITWISE_SIMULATION or FLOATING_POINT_SIMULATION."
43 void CreateBlocks(
const std::vector<WTATrigObj>& all_towers);
45 template<
typename WTAClassType>
64 std::vector<WTATrigObj> tmp_tower_vec;
65 std::vector<WTAJet> tmp_jet_vec;
84 IntOrFloat this_eta = tower.
eta();
92 if(min_wrap <= max_wrap){
93 inside = (this_phi >= min_wrap) && (this_phi < max_wrap);
96 inside = !((this_phi >= max_wrap) && (this_phi < min_wrap));
104 IntOrFloat BlockLow = -99;
105 IntOrFloat BlockHigh = -99;
106 const unsigned tower_n = all_towers.size();
112 BlockHigh = ETA_MAX + CORE_DIST - (
m_BlockN - 1 -
i) * (
float)(ETA_LEN /
m_BlockN);
117 BlockHigh = PHI_MAX + CORE_DIST - (
m_BlockN - 1 -
i) * (
float)(PHI_LEN /
m_BlockN);
119 for(
unsigned int t = 0;
t < tower_n;
t++)
131 template<
typename WTAClassType>
137 MyWTAMakerClass->SeedCleaning();
138 MyWTAMakerClass->MergeConstsToSeeds();
145 IntOrFloat BlockLow = -99;
146 IntOrFloat BlockHigh = -99;
147 std::vector<WTAJet> all_jets;
163 for(
int j = this_block_jet_n - 1; j >= 0; j--)
174 std::vector<WTAJet> all_jets;