From 3f68959735b72dc90bc68fae60bf92e4d607afb7 Mon Sep 17 00:00:00 2001
From: Thomas Owen James <tjames@cmd-scouting-ctrlhub.dyndns.cern.ch>
Date: Thu, 15 Apr 2021 18:15:19 +0200
Subject: [PATCH] added some comments

---
 src/processor.cc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/processor.cc b/src/processor.cc
index f61bcb9f..129770b5 100644
--- a/src/processor.cc
+++ b/src/processor.cc
@@ -110,6 +110,7 @@ Slice* StreamProcessor::process(Slice& input, Slice& out)
 				memcpy(q,(char*)&bl->mu1f[i],4); q+=4;
 				memcpy(q,(char*)&bl->mu1s[i],4); q+=4;
 				//memcpy(q,(char*)&(bl->bx[i] &= ~0x1),4); q+=4; //set bit 0 to 0 for first muon
+		// next creating mu.extra which is a copy of bl->bx with a change to the first bit		
 				if(brill_word == true){
 					memcpy(q,&brill_marker,4); q+=4;
 				}	else {
@@ -123,7 +124,8 @@ Slice* StreamProcessor::process(Slice& input, Slice& out)
 				memcpy(q,(char*)&bl->mu2f[i],4); q+=4;
 				memcpy(q,(char*)&bl->mu2s[i],4); q+=4;
 				//memcpy(q,(char*)&(bl->bx[i] |= 0x1),4); q+=4; //set bit 0 to 1 for second muon
-				if(brill_word == true){
+		// next creating mu.extra which is a copy of bl->bx with a change to the first bit		
+		if(brill_word == true){
 					memcpy(q,&brill_marker,4); q+=4; 
 				}	else{
 					memcpy(q,(char*)&(bl->bx[i] |= 0x1),4); q+=4; //set bit 0 to 1 for second muon
-- 
GitLab