9 #include "tbb/blocked_range.h"
10 #include "tbb/parallel_for.h"
11 #include "tbb/task_scheduler_init.h"
21 vector<unsigned char>& vSFlag;
22 vector<unsigned char>& vSFlagB;
23 std::vector<L1HitPoint>& vStsHits;
34 unsigned* portionStopIndex;
53 void operator()(
const blocked_range<size_t>& r)
const;
60 Tindex* StsHitsStartIndex_,
62 vector<unsigned char>& vSFlag_,
63 vector<unsigned char>& vSFlagB_,
64 std::vector<L1HitPoint>& vStsHits_,
75 unsigned* portionStopIndex_,
81 THitI* Duplets_start_,
94 , vStations(vStations_)
96 , StsHitsStartIndex(StsHitsStartIndex_)
97 , StsHitsStopIndex(StsHitsStopIndex_)
100 , vStsHits(vStsHits_)
103 , MaxInvMom(MaxInvMom_)
108 , TargetXYInfo(TargetXYInfo_)
112 , portionStopIndex(portionStopIndex_)
115 , hitsl_g1(hitsl_g1_)
119 Duplets_start(Duplets_start_)
120 , Duplets_hits(Duplets_hits_)
137 void ParalleledDup::operator()(
const blocked_range<size_t>& r)
const {
139 for (
Tindex istal = r.begin(); istal < (
Tindex) r.end(); ++istal) {
174 class ParalleledTrip {
179 Tindex* StsHitsStartIndex;
181 std::vector<L1HitPoint>& svStsHits;
183 double TRACK_CHI2_CUT;
192 unsigned* portionStopIndex;
201 THitI* Duplets_start;
203 std::vector<L1Triplet>* vTriplets_part;
204 unsigned* TripStartIndexH;
205 unsigned* TripStopIndexH;
208 void operator()(
const blocked_range<size_t>& r)
const;
215 Tindex* StsHitsStartIndex_,
216 Tindex* StsHitsStopIndex_,
217 std::vector<L1HitPoint>& vStsHits_,
219 double TRACK_CHI2_CUT_,
228 unsigned* portionStopIndex_,
237 THitI* Duplets_start_,
238 THitI* Duplets_hits_,
239 std::vector<L1Triplet>* vTriplets_part_,
240 unsigned* TripStartIndexH_,
241 unsigned* TripStopIndexH_)
244 , vStations(vStations_)
246 , StsHitsStartIndex(StsHitsStartIndex_)
247 , StsHitsStopIndex(StsHitsStopIndex_)
248 , svStsHits(vStsHits_)
250 , TRACK_CHI2_CUT(TRACK_CHI2_CUT_)
251 , MaxInvMom(MaxInvMom_)
257 , hitsl_g1(hitsl_g1_)
261 , portionStopIndex(portionStopIndex_)
272 Duplets_start(Duplets_start_)
273 , Duplets_hits(Duplets_hits_)
274 , vTriplets_part(vTriplets_part_)
275 , TripStartIndexH(TripStartIndexH_)
276 , TripStopIndexH(TripStopIndexH_) {};
278 ~ParalleledTrip() {};
281 void ParalleledTrip::operator()(
const blocked_range<size_t>& r)
const {
283 for (
Tindex istal = r.begin(); istal < (
Tindex) r.end(); ++istal) {