#include #include using namespace std; namespace RAT { void MissingCAENData::BeginOfRun(DS::Run&) { // Do Nothing } Processor::Result MissingCAENData::DSEvent(DS::Run&, DS::Entry& ds) { bool pass = true; // If any triggered event fails, they all fail for( size_t iEV = 0; iEV < ds.GetEVCount(); iEV++ ) if( Event(ds, ds.GetEV(iEV)) != OKTRUE ) pass = false; return pass ? OKTRUE : OKFALSE; } Processor::Result MissingCAENData::Event(DS::Entry&, DS::EV& ev) { fPassFlag = true; if(ev.DigitiserExists()){ UpdateMask(ev); return fPassFlag ? OKFALSE : OKTRUE; } else{ fPassFlag = false; UpdateMask(ev); return fPassFlag ? OKFALSE : OKTRUE; } } } // namespace RAT