Hall C ROOT/C++ Analyzer (hcana)
THcConfigEvtHandler Class Reference

Analyze Hall C Configuration events. (Event type 125).

Hall C Configuration events contain information such as FADC250 thresholds, mode settings, window settings, pulse mode settings, etc. or CAEN1190 window and resolution settings.

To analyze these events, add

gHaEvtHandlers->Add (new THcConfigEvtHandler("hallcpre","for evtype 125"));

to the analysis script. The first argument ("hallcpre") is an arbitrary name that will be used to construct THcParmList type parameters with names of the form ghallcpre_*. These parameters hold the configuration information that is found in the events.

All the configuation data can also be printed out with the PrintConfig method

Stephen Wood (saw@j.nosp@m.lab..nosp@m.org)

Definition at line 18 of file THcConfigEvtHandler.h.


struct  CrateInfo_t

Public Member Functions

virtual void AddEventType (Int_t evtype)
virtual Int_t Analyze (THaEvData *evdata)
virtual Int_t GetNPED (Int_t crate)
virtual Int_t GetNSA (Int_t crate)
virtual Int_t GetNSB (Int_t crate)
virtual EStatus Init (const TDatime &run_time)
virtual Int_t IsPresent (Int_t crate)
virtual void MakeParms (Int_t roc)
virtual void PrintConfig ()
 THcConfigEvtHandler (const char *name, const char *description)
virtual ~THcConfigEvtHandler ()

Private Member Functions

void DeleteCrateInfoMap ()
THcConfigEvtHandleroperator= (const THcConfigEvtHandler &fh)
 THcConfigEvtHandler (const THcConfigEvtHandler &fh)

Private Attributes

std::map< Int_t, CrateInfo_t * > CrateInfoMap

#include <THcConfigEvtHandler.h>

Inheritance diagram for THcConfigEvtHandler:

Constructor & Destructor Documentation

THcConfigEvtHandler::THcConfigEvtHandler ( const char *  name,
const char *  description 

Definition at line 37 of file THcConfigEvtHandler.cxx.

THcConfigEvtHandler::~THcConfigEvtHandler ( )

Definition at line 42 of file THcConfigEvtHandler.cxx.

THcConfigEvtHandler::THcConfigEvtHandler ( const THcConfigEvtHandler fh)

Member Function Documentation

void THcConfigEvtHandler::AddEventType ( Int_t  evtype)

Definition at line 373 of file THcConfigEvtHandler.cxx.

Int_t THcConfigEvtHandler::Analyze ( THaEvData evdata)

Definition at line 78 of file THcConfigEvtHandler.cxx.

void THcConfigEvtHandler::DeleteCrateInfoMap ( )

Definition at line 57 of file THcConfigEvtHandler.cxx.

Int_t THcConfigEvtHandler::GetNPED ( Int_t  crate)

Definition at line 366 of file THcConfigEvtHandler.cxx.

Int_t THcConfigEvtHandler::GetNSA ( Int_t  crate)

Definition at line 352 of file THcConfigEvtHandler.cxx.

Int_t THcConfigEvtHandler::GetNSB ( Int_t  crate)

Definition at line 359 of file THcConfigEvtHandler.cxx.

THaAnalysisObject::EStatus THcConfigEvtHandler::Init ( const TDatime run_time)

Definition at line 378 of file THcConfigEvtHandler.cxx.

Int_t THcConfigEvtHandler::IsPresent ( Int_t  crate)

Definition at line 345 of file THcConfigEvtHandler.cxx.

void THcConfigEvtHandler::MakeParms ( Int_t  roc)

Add parameters to gHcParms for this roc

Definition at line 196 of file THcConfigEvtHandler.cxx.

THcConfigEvtHandler& THcConfigEvtHandler::operator= ( const THcConfigEvtHandler fh)
void THcConfigEvtHandler::PrintConfig ( )

Stub of method to pretty print the config data

Definition at line 286 of file THcConfigEvtHandler.cxx.

Member Data Documentation

std::map<Int_t, CrateInfo_t *> THcConfigEvtHandler::CrateInfoMap

Definition at line 73 of file THcConfigEvtHandler.h.

Collaboration diagram for THcConfigEvtHandler:

The documentation for this class was generated from the following files: