Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

Commit ce2f36b

Browse files
authored
Merge pull request #280 from SegmentLinking/syncWithCMSSW
Sync latest standalone developments with CMSSW class
2 parents b5dfd9d + 7031ab2 commit ce2f36b

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

SDL/LST.cc

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ void SDL::LST::eventSetup() {
1010
SDL::initModules(path);
1111
}
1212

13-
void SDL::LST::run(cudaStream_t stream,bool verbose,
13+
void SDL::LST::run(cudaStream_t stream,
14+
bool verbose,
1415
const std::vector<float> see_px,
1516
const std::vector<float> see_py,
1617
const std::vector<float> see_pz,
@@ -25,14 +26,13 @@ void SDL::LST::run(cudaStream_t stream,bool verbose,
2526
const std::vector<float> see_stateTrajGlbPy,
2627
const std::vector<float> see_stateTrajGlbPz,
2728
const std::vector<int> see_q,
28-
const std::vector<unsigned int> see_algo,
2929
const std::vector<std::vector<int>> see_hitIdx,
3030
const std::vector<unsigned int> ph2_detId,
3131
const std::vector<float> ph2_x,
3232
const std::vector<float> ph2_y,
3333
const std::vector<float> ph2_z) {
34-
auto event = SDL::Event(stream,verbose);
35-
prepareInput(see_px, see_py, see_pz, see_dxy, see_dz, see_ptErr, see_etaErr, see_stateTrajGlbX, see_stateTrajGlbY, see_stateTrajGlbZ, see_stateTrajGlbPx, see_stateTrajGlbPy, see_stateTrajGlbPz, see_q, see_algo, see_hitIdx, ph2_detId, ph2_x, ph2_y, ph2_z);
34+
auto event = SDL::Event(stream, verbose);
35+
prepareInput(see_px, see_py, see_pz, see_dxy, see_dz, see_ptErr, see_etaErr, see_stateTrajGlbX, see_stateTrajGlbY, see_stateTrajGlbZ, see_stateTrajGlbPx, see_stateTrajGlbPy, see_stateTrajGlbPz, see_q, see_hitIdx, ph2_detId, ph2_x, ph2_y, ph2_z);
3636

3737
event.addHitToEvent(in_trkX_, in_trkY_, in_trkZ_, in_hitId_, in_hitIdxs_); // TODO : Need to fix the hitIdxs
3838
event.addPixelSegmentToEvent(in_hitIndices_vec0_, in_hitIndices_vec1_, in_hitIndices_vec2_, in_hitIndices_vec3_,
@@ -176,7 +176,6 @@ void SDL::LST::prepareInput(const std::vector<float> see_px,
176176
const std::vector<float> see_stateTrajGlbPy,
177177
const std::vector<float> see_stateTrajGlbPz,
178178
const std::vector<int> see_q,
179-
const std::vector<unsigned int> see_algo,
180179
const std::vector<std::vector<int>> see_hitIdx,
181180
const std::vector<unsigned int> ph2_detId,
182181
const std::vector<float> ph2_x,
@@ -227,11 +226,6 @@ void SDL::LST::prepareInput(const std::vector<float> see_px,
227226
const int hit_size = trkX.size();
228227

229228
for (auto &&[iSeed, _] : iter::enumerate(see_stateTrajGlbPx)) {
230-
bool good_seed_type = false;
231-
if (see_algo[iSeed] == 4) good_seed_type = true;
232-
if (see_algo[iSeed] == 22) good_seed_type = true;
233-
if (not good_seed_type) continue;
234-
235229
ROOT::Math::PxPyPzMVector p3LH(see_stateTrajGlbPx[iSeed], see_stateTrajGlbPy[iSeed], see_stateTrajGlbPz[iSeed], 0);
236230
ROOT::Math::XYZVector p3LH_helper(see_stateTrajGlbPx[iSeed], see_stateTrajGlbPy[iSeed], see_stateTrajGlbPz[iSeed]);
237231
float ptIn = p3LH.Pt();

SDL/LST.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ namespace SDL {
3232
const std::vector<float> see_stateTrajGlbPy,
3333
const std::vector<float> see_stateTrajGlbPz,
3434
const std::vector<int> see_q,
35-
const std::vector<unsigned int> see_algo,
3635
const std::vector<std::vector<int>> see_hitIdx,
3736
const std::vector<unsigned int> ph2_detId,
3837
const std::vector<float> ph2_x,
@@ -62,7 +61,6 @@ namespace SDL {
6261
const std::vector<float> see_stateTrajGlbPy,
6362
const std::vector<float> see_stateTrajGlbPz,
6463
const std::vector<int> see_q,
65-
const std::vector<unsigned int> see_algo,
6664
const std::vector<std::vector<int>> see_hitIdx,
6765
const std::vector<unsigned int> ph2_detId,
6866
const std::vector<float> ph2_x,

0 commit comments

Comments
 (0)