Skip to content

Commit

Permalink
Merge pull request #384 from JeffersonLab/dirc_fix
Browse files Browse the repository at this point in the history
Dirc fix
  • Loading branch information
aaust authored May 29, 2020
2 parents 0897620 + 340a2b3 commit a13503b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/libraries/DIRC/DDIRCLut.cc
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ bool DDIRCLut::brun(JEventLoop *loop) {
jout << "Can't find requested /DIRC/bar_rotation in CCDB for this run!" << endl;

for(int ibar=0; ibar<DDIRCGeometry::kBars; ibar++) {
dRotationX[ibar] = bar_rotation[ibar].at("rotationX");
dRotationY[ibar] = bar_rotation[ibar].at("rotationY");
dRotationZ[ibar] = bar_rotation[ibar].at("rotationZ");
dRotationX[ibar] = bar_rotation[ibar].at("rotationX")*TMath::DegToRad();
dRotationY[ibar] = bar_rotation[ibar].at("rotationY")*TMath::DegToRad();
dRotationZ[ibar] = bar_rotation[ibar].at("rotationZ")*TMath::DegToRad();
}

return true;
Expand Down
2 changes: 1 addition & 1 deletion src/libraries/HDDM/DEventSourceREST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1379,7 +1379,7 @@ jerror_t DEventSourceREST::Extract_DDetectorMatches(JEventLoop* locEventLoop, hd
for(; dircIter != dircList.end(); ++dircIter)
{
size_t locTrackIndex = dircIter->getTrack();
if(locTrackIndex > locTrackTimeBasedVector.size()) continue;
if(locTrackIndex >= locTrackTimeBasedVector.size()) continue;

auto locTrackTimeBased = locTrackTimeBasedVector[locTrackIndex];
if( !locTrackTimeBased ) continue;
Expand Down

0 comments on commit a13503b

Please sign in to comment.