• Main Page
  • Related Pages
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

onlinemonitor/spadicmonitor/TSpadicEvent.h (r4864/r3461)

Go to the documentation of this file.
00001 #ifndef TSPADICEVENT_H
00002 #define TSPADICEVENT_H
00003 
00004 #include "TGo4EventElement.h"
00005 #include "TGo4CompositeEvent.h"
00006 
00007 /*
00008  * Put all definitions here and use them in processor,
00009  * since they are necessary for data structure of event
00010  */
00011 
00012 
00013 
00014 #define MAX_SPADIC           24
00015 // number of maximum connected spadics
00016 
00017 #define NUM_SPADIC_CHA             8
00018 // channels per spadic
00019 
00020 #define SPADIC_TRACE_SIZE                  45
00021 // in samples
00022 
00024 // note that these defaults can be overwritten in spadic parameter
00025 // or by setup script!
00026 // spadic id:               0  1  2  3  4  5  6  7  8
00027 //                              |  |  |  |  |  |  |  |  |
00028 #define SET_SPADICS        {0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
00029 // set 0 for spadic of id not existing, otherwise 1
00030 
00031 
00032 
00033 class TSpadicData : public TGo4EventElement {
00034  public:
00035   TSpadicData();
00036   TSpadicData(const char* name, Short_t id=0);
00037   virtual ~TSpadicData();
00038 
00040   virtual void Clear(Option_t *t="");
00041 
00042   /* the raw pulse shape trace data for each channel */
00043   UChar_t fSpadicPulse[NUM_SPADIC_CHA][SPADIC_TRACE_SIZE];
00044 
00045   /* the compensated pulse shape trace data for each channel */
00046   Double_t fSpadicCompensated[NUM_SPADIC_CHA][SPADIC_TRACE_SIZE];
00047 
00048   /*  */
00049   Bool_t fSpadicOffSpillEvent;
00050 
00051   /* flag for events with overflow signals */
00052   Bool_t fSpadicOverFlowEvent;
00053 
00054   /* raw data overflowting time bins */
00055   Bool_t fSpadicOverflows[NUM_SPADIC_CHA][SPADIC_TRACE_SIZE];
00056 
00057   /* flag for events with overflow signals */
00058   Bool_t fSpadicUndershootsEvent;
00059 
00060   /* raw data overflowting time bins */
00061   Bool_t fSpadicUndershoots[NUM_SPADIC_CHA][SPADIC_TRACE_SIZE];
00062 
00063   /* highest channel after first correction*/
00064   Int_t fSpadicHighestChannel;
00065 
00066   /* signal channels identified by onlinemonitor */
00067   Bool_t fSpadicSignalCh[NUM_SPADIC_CHA];
00068 
00069   /* accumulated intensity per channel */
00070   Double_t fSpadicIntensity[NUM_SPADIC_CHA];
00071 
00072   /* flag to indicate that intensity is inside gate */
00073   Bool_t fIntensityGate[NUM_SPADIC_CHA];
00074 
00075 
00076   ClassDef(TSpadicData,1)
00077     };
00078 
00079 
00080 
00081 
00082 
00083 class TSpadicEvent : public TGo4CompositeEvent {
00084    public:
00085       TSpadicEvent();
00086       TSpadicEvent(const char* name, Short_t id=0);
00087       virtual ~TSpadicEvent();
00088 
00089       static UInt_t    ConfigSpadics[MAX_SPADIC];
00090      
00091    ClassDef(TSpadicEvent,2)
00092 };
00093 #endif //TEVENT_H
00094 
00095 
00096 

Generated on Tue Dec 10 2013 04:52:23 for ROCsoft by  doxygen 1.7.1