Skip to content
Snippets Groups Projects
Commit b434a498 authored by Thomas Owen James's avatar Thomas Owen James
Browse files

added condition for prescalefactor ==0 i.e disabled

parent a0fefa28
No related branches found
No related tags found
2 merge requests!59CMSSW json file,!9added configuration option that prescales the DMA packets
Pipeline #4358048 passed
...@@ -197,7 +197,7 @@ void StreamProcessor::process(Slice& input, Slice& out) ...@@ -197,7 +197,7 @@ void StreamProcessor::process(Slice& input, Slice& out)
control.packet_count++; control.packet_count++;
//Implement prescale - only for CALO //Implement prescale - only for CALO
if (processorType == ProcessorType::CALO) { if ((processorType == ProcessorType::CALO) && (prescaleFactor!=0)) {
if(control.packet_count%prescaleFactor != 0){return;} if(control.packet_count%prescaleFactor != 0){return;}
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment