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

In This Package:

Public Member Functions | Protected Attributes | Private Attributes
AdEnergyTag Class Reference

#include <AdEnergyTag.h>

Inheritance diagram for AdEnergyTag:
Inheritance graph
[legend]
Collaboration diagram for AdEnergyTag:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 AdEnergyTag (const std::string &name)
virtual ~AdEnergyTag ()
virtual bool tag (PhyEvent *event)
const std::string & name ()
bool setOption (const std::string &option, Type &var)

Protected Attributes

bool m_veto
std::string m_name

Private Attributes

float m_adEngThr

Detailed Description

Definition at line 6 of file AdEnergyTag.h.


Constructor & Destructor Documentation

AdEnergyTag::AdEnergyTag ( const std::string &  name)

Definition at line 7 of file AdEnergyTag.cc.

    : ITagBase(name)
{
    setOption("ApplyVeto", m_veto=false);
    setOption("AdEnergyThreshold", m_adEngThr);
}
virtual AdEnergyTag::~AdEnergyTag ( ) [inline, virtual]

Definition at line 10 of file AdEnergyTag.h.

{}

Member Function Documentation

bool AdEnergyTag::tag ( PhyEvent event) [virtual]

Implements ITagBase.

Definition at line 14 of file AdEnergyTag.cc.

{
  //LogDebug << "in AdEnergyTag::tag()" << std::endl;
  if(event->isAD()) {
    if(event->energy() <m_adEngThr) {
      event->m_adLowEnergyTag = true;
      event->m_good = false;
      return m_veto;
    }
  }

  return false;
}

Member Data Documentation

float AdEnergyTag::m_adEngThr [private]

Definition at line 15 of file AdEnergyTag.h.

bool ITagBase::m_veto [protected, inherited]

Definition at line 17 of file ITagBase.h.


The documentation for this class was generated from the following files:
| 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