Skip to content

Commit

Permalink
Prevent throwing of a fatal error when build type is set to "MRD". (#252
Browse files Browse the repository at this point in the history
)

* Fixed mrdtotalentries being smaller than tanktotalentries throwing a fatal error in LoadRawData.cpp when build type is set to "MRD", since in this case only MRD data is expected to be loaded.
authored-by: Daniel T. Schmid <dschmid@fnal.gov>
  • Loading branch information
s4294967296 authored Dec 5, 2023
1 parent 6d5927b commit 90172d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UserTools/LoadRawData/LoadRawData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ bool LoadRawData::Execute(){
}

//If more MRD events than VME events abort
if (mrdtotalentries > tanktotalentries){
if (mrdtotalentries > tanktotalentries && BuildType != "MRD"){
std::cout << "LoadRawData tool ERROR: More MRD entries than VME entries! Stopping toolchain" << std::endl;
m_data->vars.Set("StopLoop",1);
}
Expand Down

0 comments on commit 90172d9

Please sign in to comment.