Skip to content

Commit

Permalink
Return early from brun if TRIG:BYPASS is set to 1. Get number of FCAL…
Browse files Browse the repository at this point in the history
… channels from FCALGeometry.
  • Loading branch information
staylorjlab committed Sep 2, 2024
1 parent f4dfb8a commit 68c7d77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libraries/TRIGGER/DL1MCTrigger_factory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ jerror_t DL1MCTrigger_factory::init(void)
//------------------
jerror_t DL1MCTrigger_factory::brun(jana::JEventLoop *eventLoop, int32_t runnumber)
{
if (BYPASS) return NOERROR;

int use_rcdb = 1;

Expand Down Expand Up @@ -1479,7 +1480,7 @@ int DL1MCTrigger_factory::FindTriggers(DL1MCTrigger *trigger, vector<const DSCHi
// Fill fcal calibration tables similar to FCALHit factory
void DL1MCTrigger_factory::LoadFCALConst(fcal_constants_t &table, const vector<double> &fcal_const_ch,
const DFCALGeometry &fcalGeom){
for (int ch = 0; ch < static_cast<int>(fcal_const_ch.size()); ch++) {
for (int ch = 0; ch < fcalGeom.numFcalChannels(); ch++) {
int row = fcalGeom.row(ch);
int col = fcalGeom.column(ch);
table[row][col] = fcal_const_ch[ch];
Expand Down

0 comments on commit 68c7d77

Please sign in to comment.