#ifndef __MMcTrig__ #define __MMcTrig__ #include #include #include #include #include #include #include "MParContainer.h" #include "MTriggerDefine.h" class MMcTrig : public MParContainer { private: Short_t fNumFirstLevel ; // Number of First Level Trigger in this Event Short_t fNumSecondLevel ; // Number of Second Level Trigger in this Event Float_t fTimeFirst[((Int_t)(TOTAL_TRIGGER_TIME/LEVEL1_DEAD_TIME))+1]; // Time when it triggers Byte_t fPixelsFirst[((Int_t)(TRIGGER_PIXELS/8))+1][((Int_t)(TOTAL_TRIGGER_TIME/LEVEL1_DEAD_TIME))+1]; // Pixel which are above threshold when trigger happens Short_t fFirstToSecond[((Int_t)(TOTAL_TRIGGER_TIME/LEVEL2_DEAD_TIME))+1]; public: MMcTrig() ; ~MMcTrig(); void Clear(Option_t *opt=NULL); void Print(Option_t *); void SetFirstLevel ( Short_t nTr ) { fNumFirstLevel = nTr ; } void SetSecondLevel ( Short_t nTr ) { fNumSecondLevel = nTr ; } void SetTime( Float_t t, Int_t i){ if (i>TOTAL_TRIGGER_TIME/LEVEL1_DEAD_TIME+1 || i<1){ cout<<"fNumFirstLevel out of range. Time will be -99"<