From 8929756a1e4a29ae22a16776639145ae9d49150c Mon Sep 17 00:00:00 2001
From: Whitney Armstrong <warmstrong@anl.gov>
Date: Sun, 17 Feb 2019 21:01:48 -0500
Subject: [PATCH] Hacks to get missing time ref monitor working online.

---
 src/THcHitList.h            | 5 +++--
 src/THcScalerEvtHandler.cxx | 1 +
 src/THcScalerEvtHandler.h   | 3 ++-
 3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/THcHitList.h b/src/THcHitList.h
index 3315722..186e861 100644
--- a/src/THcHitList.h
+++ b/src/THcHitList.h
@@ -61,6 +61,9 @@ public:
   TClass*       fRawHitClass; // Class of raw hit object to use
   THaDetMap*    fdMap;
 
+  Int_t fNTDCRef_miss;
+  Int_t fNADCRef_miss;
+
 protected:
 
   struct RefIndexMap { // Mapping for one reference channel
@@ -84,8 +87,6 @@ protected:
   Int_t                   fNSB;
   Int_t                   fNPED;
 
-  Int_t fNTDCRef_miss;
-  Int_t fNADCRef_miss;
 
   Decoder::THaCrateMap*                    fMap; /* The Crate map */
   Int_t                                    fTISlot;
diff --git a/src/THcScalerEvtHandler.cxx b/src/THcScalerEvtHandler.cxx
index 808feb5..ea41240 100644
--- a/src/THcScalerEvtHandler.cxx
+++ b/src/THcScalerEvtHandler.cxx
@@ -201,6 +201,7 @@ Int_t THcScalerEvtHandler::Analyze(THaEvData *evdata)
     EvDump(evdata);
   }
 
+  /// \todo : Put this first event stuff in separte function
   if (lfirst && !fScalerTree) {
 
 
diff --git a/src/THcScalerEvtHandler.h b/src/THcScalerEvtHandler.h
index d22c45b..0426673 100644
--- a/src/THcScalerEvtHandler.h
+++ b/src/THcScalerEvtHandler.h
@@ -49,7 +49,6 @@ public:
    virtual void SetOnlyBanks(Bool_t b = kFALSE) {fOnlyBanks = b;fRocSet.clear();}
    virtual void SetOnlyUseSyncEvents(Bool_t b=kFALSE) {fOnlySyncEvents = b;}
 
-private:
 
    void AddVars(TString name, TString desc, UInt_t iscal, UInt_t ichan, UInt_t ikind);
    void DefVars();
@@ -91,6 +90,8 @@ private:
    std::set<UInt_t> fRocSet;
    std::set<UInt_t> fModuleSet;
 
+private:
+
    THcScalerEvtHandler(const THcScalerEvtHandler& fh);
    THcScalerEvtHandler& operator=(const THcScalerEvtHandler& fh);
 
-- 
GitLab