Skip to content

Commit

Permalink
Merge pull request #155 from JeffersonLab/ST_gPAMRSright
Browse files Browse the repository at this point in the history
change code to use gPAMRS as it is inteded to
  • Loading branch information
rjones30 authored Apr 24, 2019
2 parents 4804a81 + 173d5a6 commit 13711b2
Showing 1 changed file with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,26 @@ jerror_t JEventProcessor_ST_online_efficiency::init(void)
// japp->RootUnLock();
//
// Do not reconstruct tracks with start counter time
gPARMS->SetParameter("TRKFIT:USE_SC_TIME",false);
int USE_SC_TIME = 0;
if(gPARMS->Exists("TRKFIT:USE_SC_TIME"))
gPARMS->GetParameter("TRKFIT:USE_SC_TIME", USE_SC_TIME);
if(gPARMS){
gPARMS->SetDefaultParameter("TRKFIT:USE_SC_TIME", USE_SC_TIME,"Do not reconstruct tracks with start counter time if set to 0!");
}
//cout << "USE_SC_TIME = " << USE_SC_TIME << endl;
// Warning message if sc time is used in track reconstruction
if (USE_SC_TIME == 0)
{
cout << "=========================================================================="<< endl;
cout << "TRKFIT: USE_SC_TIME = 0; WARNING SC TIME WILL NOT BE USED IN TRACK FITTING"<< endl;
cout << "This is required in ST_online_efficiency plugin "<< endl;
cout << "Which is required in this ST_online_efficiency plugin "<< endl;
cout << "=========================================================================="<< endl;
}
else
{
cout << "=========================================================================="<< endl;
cout << "TRKFIT: USE_SC_TIME = 1; "<< endl;
cout << "Which will render this publing ST_online_efficiency useless! "<< endl;
cout << "=========================================================================="<< endl;
}
// Create root folder for ST and cd to it, store main dir
TDirectory *main = gDirectory;
gDirectory->mkdir("st_efficiency")->cd();
Expand Down

0 comments on commit 13711b2

Please sign in to comment.