/search.css" rel="stylesheet" type="text/css"/> /search.js">
00001 #include "RpcNoiseTag.h" 00002 #include "LafKernel/PhyEvent.h" 00003 #include "LafKernel/ToolFactory.h" 00004 00005 DECLARE_TOOL(RpcNoiseTag); 00006 00007 RpcNoiseTag::RpcNoiseTag(const std::string& name) 00008 : ITagBase(name) 00009 { 00010 setOption("ApplyVeto", m_veto=false); 00011 } 00012 00013 bool RpcNoiseTag::tag(PhyEvent *event) 00014 { 00015 //LogDebug << "in RpcNoiseTag::tag()" << std::endl; 00016 // Tag pure 2/4 RPC event as noise 00017 if(event->m_trigType == 0x10020000) { 00018 event->m_rpcNoiseTag = true; 00019 event->m_good = false; 00020 return m_veto; 00021 } 00022 return false; 00023 }