Skip to content

Commit

Permalink
Finished cleaning namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
ariostas committed Sep 3, 2024
1 parent d2b9e89 commit 46f7f22
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
3 changes: 2 additions & 1 deletion RecoTracker/LSTCore/standalone/bin/lst.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <typeinfo>

using LSTEvent = ALPAKA_ACCELERATOR_NAMESPACE::lst::Event;
using namespace ::lst;

//___________________________________________________________________________________________________________________________________________________________________________________________
int main(int argc, char **argv) {
Expand Down Expand Up @@ -340,7 +341,7 @@ void run_lst() {
std::vector<std::vector<int>> out_charge_vec;
std::vector<std::vector<unsigned int>> out_seedIdx_vec;
std::vector<std::vector<int>> out_superbin_vec;
std::vector<std::vector<::lst::PixelType>> out_pixelType_vec;
std::vector<std::vector<PixelType>> out_pixelType_vec;
std::vector<std::vector<char>> out_isQuad_vec;
std::vector<int> evt_num;
std::vector<TString> file_name;
Expand Down
14 changes: 7 additions & 7 deletions RecoTracker/LSTCore/standalone/code/core/trkCore.cc
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ void addInputsToLineSegmentTrackingPreLoad(std::vector<std::vector<float>> &out_
std::vector<std::vector<int>> &out_charge_vec,
std::vector<std::vector<unsigned int>> &out_seedIdx_vec,
std::vector<std::vector<int>> &out_superbin_vec,
std::vector<std::vector<::lst::PixelType>> &out_pixelType_vec,
std::vector<std::vector<PixelType>> &out_pixelType_vec,
std::vector<std::vector<char>> &out_isQuad_vec) {
unsigned int count = 0;
auto n_see = trk.see_stateTrajGlbPx().size();
Expand Down Expand Up @@ -651,7 +651,7 @@ void addInputsToLineSegmentTrackingPreLoad(std::vector<std::vector<float>> &out_
std::vector<unsigned int> hitIdxs(trk.ph2_detId().size());

std::vector<int> superbin_vec;
std::vector<::lst::PixelType> pixelType_vec;
std::vector<PixelType> pixelType_vec;
std::vector<char> isQuad_vec;
std::iota(hitIdxs.begin(), hitIdxs.end(), 0);
const int hit_size = trkX.size();
Expand Down Expand Up @@ -719,14 +719,14 @@ void addInputsToLineSegmentTrackingPreLoad(std::vector<std::vector<float>> &out_
int charge = trk.see_q()[iSeed];
unsigned int seedIdx = iSeed;

::lst::PixelType pixtype = ::lst::PixelType::kInvalid;
PixelType pixtype = PixelType::kInvalid;
if (ptIn >= 2.0) {
pixtype = ::lst::PixelType::kHighPt;
pixtype = PixelType::kHighPt;
} else if (ptIn >= (PT_CUT - 2 * ptErr) and ptIn < 2.0) {
if (pixelSegmentDeltaPhiChange >= 0) {
pixtype = ::lst::PixelType::kLowPtPosCurv;
pixtype = PixelType::kLowPtPosCurv;
} else {
pixtype = ::lst::PixelType::kLowPtNegCurv;
pixtype = PixelType::kLowPtNegCurv;
}
} else {
continue;
Expand Down Expand Up @@ -866,7 +866,7 @@ float addInputsToEventPreLoad(LSTEvent *event,
std::vector<int> charge_vec,
std::vector<unsigned int> seedIdx_vec,
std::vector<int> superbin_vec,
std::vector<::lst::PixelType> pixelType_vec,
std::vector<PixelType> pixelType_vec,
std::vector<char> isQuad_vec) {
TStopwatch my_timer;

Expand Down
5 changes: 3 additions & 2 deletions RecoTracker/LSTCore/standalone/code/core/trkCore.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <filesystem>

using LSTEvent = ALPAKA_ACCELERATOR_NAMESPACE::lst::Event;
using ::lst::PixelType;

// --------------------- ======================== ---------------------

Expand Down Expand Up @@ -69,7 +70,7 @@ void addInputsToLineSegmentTrackingPreLoad(std::vector<std::vector<float>> &out_
std::vector<std::vector<int>> &out_charge_vec,
std::vector<std::vector<unsigned int>> &out_seedIdx_vec,
std::vector<std::vector<int>> &out_superbin_vec,
std::vector<std::vector<::lst::PixelType>> &out_pixelType_vec,
std::vector<std::vector<PixelType>> &out_pixelType_vec,
std::vector<std::vector<char>> &out_isQuad_vec);

float addInputsToEventPreLoad(LSTEvent *event,
Expand All @@ -95,7 +96,7 @@ float addInputsToEventPreLoad(LSTEvent *event,
std::vector<int> charge_vec,
std::vector<unsigned int> seedIdx_vec,
std::vector<int> superbin_vec,
std::vector<::lst::PixelType> pixelType_vec,
std::vector<PixelType> pixelType_vec,
std::vector<char> isQuad_vec);

void printTimingInformation(std::vector<std::vector<float>> &timing_information, float fullTime, float fullavg);
Expand Down

0 comments on commit 46f7f22

Please sign in to comment.