From 38409434b2b30eefd6fabd8126703710f4ce5a55 Mon Sep 17 00:00:00 2001
From: Whitney Armstrong <warmstrong@anl.gov>
Date: Wed, 4 Dec 2019 16:42:51 -0600
Subject: [PATCH] Hard coding fadc parameters as to avoid ev type 125

This avoids the requirment to have evtype 125 at the start of the run.
This is to allow the online monitor to start mid run.

	modified:   src/THcHitList.cxx
---
 src/THcHitList.cxx | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/src/THcHitList.cxx b/src/THcHitList.cxx
index 39c2e74..1ae9b0b 100644
--- a/src/THcHitList.cxx
+++ b/src/THcHitList.cxx
@@ -399,12 +399,17 @@ Int_t THcHitList::DecodeToHitList( const THaEvData& evdata, Bool_t suppresswarni
 
         if (fPSE125) {
 	  if(!fHaveFADCInfo) {
-	    fNSA = fPSE125->GetNSA(d->crate);
-	    fNSB = fPSE125->GetNSB(d->crate);
-	    fNPED = fPSE125->GetNPED(d->crate);
+	    //fNSA = fPSE125->GetNSA(d->crate);
+	    //fNSB = fPSE125->GetNSB(d->crate);
+	    //fNPED = fPSE125->GetNPED(d->crate);
+            // Hard coding for now so we don't need event typ 125 at the start of run.
+            fNSA   = 26;
+            fNSB   = 3;
+            fNPED  = 4;
 	    fHaveFADCInfo = kTRUE;
-	  }
-	  // Set F250 parameters.
+          }
+          //std::cout << fNSA << ", " << fNSB << ", " << fNPED << "\n";
+          // Set F250 parameters.
           rawhit->SetF250Params(fNSA, fNSB, fNPED);
         }
 	
-- 
GitLab