Skip to content

Commit

Permalink
Merge pull request #7713 from deguio/fixL1T0
Browse files Browse the repository at this point in the history
protection agains zero size vector
  • Loading branch information
davidlange6 committed Feb 13, 2015
2 parents 7b14dc5 + 1a79cc1 commit c368fa6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions DQMOffline/L1Trigger/src/L1TRate_Offline.cc
Expand Up @@ -507,8 +507,11 @@ void L1TRate_Offline::analyze(const Event & iEvent, const EventSetup & eventSetu
if(gtFdlVectorData[i].bxInEvent()==0){indexFDL=i; break;}
}

int CurrentPrescalesIndex = gtFdlVectorData[indexFDL].gtPrescaleFactorIndexAlgo(); // <###### WE NEED TO STORE THIS
m_lsPrescaleIndex[eventLS] = CurrentPrescalesIndex;
if(gtFdlVectorData.size() != 0)
{
int CurrentPrescalesIndex = gtFdlVectorData[indexFDL].gtPrescaleFactorIndexAlgo(); // <###### WE NEED TO STORE THIS
m_lsPrescaleIndex[eventLS] = CurrentPrescalesIndex;
}

}

Expand Down

0 comments on commit c368fa6

Please sign in to comment.