#include #include #include #include #include #include #include #include #include #include namespace RAT { int DataCleaningProc::fVerbose = 0; int DataCleaningProc::fProcessPass = 1; DataCleaningProc::DataCleaningProc(std::string _name, int _version) : Processor(_name), fName(_name), fCodeVersion(_version), fDBVersion(-1) { fBit = DU::Utility::Get()->GetDataCleaningBits().GetBitIndex( fName ); } void DataCleaningProc::UpdateMask(DS::EV& ev) { const size_t pass = MetaInformation::Get()->GetCurrentPass(); ev.GetDataCleaningFlags().GetFlags( pass ).Set(fBit,fPassFlag); ev.GetDataCleaningFlags().GetApplied( pass ).Set(fBit,true); if (!fPassFlag && fVerbose){ info << "DataCleaningProc::UpdateMask: " << fName << ": Event flagged by cut." << endl; } } } // namespace RAT