Skip to content

Commit

Permalink
refactor: move StiCA functionality to Sti package (#640)
Browse files Browse the repository at this point in the history
Resolves #628
  • Loading branch information
plexoos authored Jan 31, 2024
1 parent 6df0792 commit 4298c80
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 17 deletions.
2 changes: 1 addition & 1 deletion StRoot/StBFChain/BigFullChain.h
Original file line number Diff line number Diff line change
Expand Up @@ -1715,7 +1715,7 @@ Bfc_st BFC[] = { // standard chains
// Sti/Stv chains
{"Sti" ,"Sti","","StiLib,StiLibs,SCL,StEvent,StDbT,TpcIT,compend,sim_T,tbutil","StiMaker"
, "StEventUtilities,StiUtilities,StiMaker","Sti tracker",kFALSE},
{"StiCA" ,"Sti","","Sti","StiMaker","TPCCATracker,StiCA" ,"StiCA tracker",kFALSE},
{"StiCA" ,"Sti","","Sti","StiMaker","TPCCATracker" ,"StiCA tracker",kFALSE},
{"StiCAPerf","","","","", "TPCCATrackerPerformance", "CA Performance",kFALSE},
{"StiCA" ,"Sti","","Sti,StiLib,StiCALib,StiLibs,SCL,StEvent,StDbT,TpcIT,compend,tbutil","StiMaker"
, "StEventUtilities,libEG,StiUtilities,StiMaker","Sti+CA tracker",kFALSE},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,5 +192,3 @@ StiDebug::Count("Reused_Pct",reUsed, pct);
}
mEnded = 3; return 0;
}
//________________________________________________________________________________
StiCATpcSeedFinder* StiCALoader::New() { return new StiCATpcSeedFinder;}
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,4 @@ class StiCATpcSeedFinder: public StiTrackFinder
std::vector<Seed_t> *mSeeds;
};

class StiCALoader {
public:
static StiCATpcSeedFinder* New();
#if 0
ClassDef(StiCALoader,0)
#endif
};

#endif
File renamed without changes.
File renamed without changes.
7 changes: 2 additions & 5 deletions StRoot/Sti/StiDefaultToolkit.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@
#include "Sti/StiDefaultTrackFilter.h"
#include "Sti/StiDetectorGroup.h"
#include "Sti/StiDetectorGroups.h"
#include "Sti/StiCATpcSeedFinder.h"
#include "StDetectorDbMaker/StiHitErrorCalculator.h"
#include "StiTpc/StiTpcHitLoader.h"
#include "StiSvt/StiSvtHitLoader.h"
Expand Down Expand Up @@ -639,11 +640,7 @@ StiTrackFinder * StiDefaultToolkit::getTrackSeedFinderKNN()
//______________________________________________________________________________
StiTrackFinder * StiDefaultToolkit::getTrackSeedFinderCA()
{
gSystem->Load("TPCCATracker");
gSystem->Load("StiCA");
auto *mySeed = (StiTrackFinder*)gROOT->ProcessLineFast("StiCALoader::New()");
assert(mySeed);
return mySeed;
return new StiCATpcSeedFinder();
}

//______________________________________________________________________________
Expand Down
2 changes: 1 addition & 1 deletion mgr/Conscript-standard
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,7 @@ if ( $pkg !~ /^sim$/ && $pkg !~ /^gen$/ ) {
$CPPPATH = "#StarVMC" . $main::PATH_SEPARATOR . $CPPPATH;
# print "StarVMC change CPPPATH to $CPPPATH =========\n";

} elsif ($pkg eq "TPCCATracker" or $pkg eq "StiCA") {
} elsif ($pkg eq "TPCCATracker" or $pkg eq "Sti") {
$CPPPATH .=
$main::PATH_SEPARATOR . "#" . $Dir . $main::PATH_SEPARATOR . "#" . $Dir . "/code";

Expand Down

0 comments on commit 4298c80

Please sign in to comment.