/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

AdEnergyTag.cc
Go to the documentation of this file.
00001 #include "AdEnergyTag.h"
00002 #include "LafKernel/PhyEvent.h"
00003 #include "LafKernel/ToolFactory.h"
00004 
00005 DECLARE_TOOL(AdEnergyTag);
00006 
00007 AdEnergyTag::AdEnergyTag(const std::string& name)
00008     : ITagBase(name)
00009 {
00010     setOption("ApplyVeto", m_veto=false);
00011     setOption("AdEnergyThreshold", m_adEngThr);
00012 }
00013 
00014 bool AdEnergyTag::tag(PhyEvent *event)
00015 {
00016   //LogDebug << "in AdEnergyTag::tag()" << std::endl;
00017   if(event->isAD()) {
00018     if(event->energy() <m_adEngThr) {
00019       event->m_adLowEnergyTag = true;
00020       event->m_good = false;
00021       return m_veto;
00022     }
00023   }
00024 
00025   return false;
00026 }
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:50:56 for SelCycler by doxygen 1.7.4