Difference between revisions of "ROOT Analyzer/Notes"

From HallCWiki
Jump to navigationJump to search
(Pedestal event discussion)
 
(Add code for indexing)
Line 20: Line 20:
  
 
How can we add pedestal analysis in a clean way?  In THcAnalyzer (our version of THaAnalyzer, which doesn't add anything at the moment) add a Set method for the user to declare the pedestal event type.  Then in each detector's decode or coarse method, do the above type of analysis, if this event type has been set.  Each detector will need to, at a minimum, ignore pedestal events.  There may be some methods common to all detectors desired to help with this.  Could we use multiple-inheritance?  (Each Hall C detector already inherits from both THaNonTrackingDetector and THcHitList.)
 
How can we add pedestal analysis in a clean way?  In THcAnalyzer (our version of THaAnalyzer, which doesn't add anything at the moment) add a Set method for the user to declare the pedestal event type.  Then in each detector's decode or coarse method, do the above type of analysis, if this event type has been set.  Each detector will need to, at a minimum, ignore pedestal events.  There may be some methods common to all detectors desired to help with this.  Could we use multiple-inheritance?  (Each Hall C detector already inherits from both THaNonTrackingDetector and THcHitList.)
 +
 +
[[category:12GeV Software]]

Revision as of 10:58, 18 August 2012

Put here random notes and thoughts about the C++ analyzer that don't have another place to go yet. Please preface your notes with a signature/timestamp.

Pedestal Events

--Saw 21:24, 17 August 2012 (UTC)

The Hall C DAQ is usually setup to acculumate 1000 (event type 4) pedestal events (trigger by a pulser) before starting to take regular events. How can this be added to the Hall A frame work. In the Hall C ENGINE, all events, including pedestal events are analyzed by g_reconstruction which looks like

 decode raw event
 if(evtype==4)
   accumulate pedestal data
   update_peds = true
   return
 endif
 if(update_peds)
   compute pedestals
   update_peds = false
 endif
 do normal physics event analysis

How can we add pedestal analysis in a clean way? In THcAnalyzer (our version of THaAnalyzer, which doesn't add anything at the moment) add a Set method for the user to declare the pedestal event type. Then in each detector's decode or coarse method, do the above type of analysis, if this event type has been set. Each detector will need to, at a minimum, ignore pedestal events. There may be some methods common to all detectors desired to help with this. Could we use multiple-inheritance? (Each Hall C detector already inherits from both THaNonTrackingDetector and THcHitList.)