/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
RpcValidTag Class Reference

#include <RpcValidTag.h>

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

List of all members.

Public Member Functions

 RpcValidTag (const std::string &name)
virtual ~RpcValidTag ()
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

bool m_notValid
int m_fileNum
std::vector< std::string > m_vFlist

Detailed Description

Definition at line 7 of file RpcValidTag.h.


Constructor & Destructor Documentation

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

Definition at line 9 of file RpcValidTag.cc.

    : ITagBase(name),
      m_notValid(false),
      m_fileNum(-1)
{
    std::string  listname;
    setOption("GoodFileList", listname);

    std::string  fname;
    std::ifstream  fs(listname.c_str());
    while ( (fs>>fname).good() ) {
        m_vFlist.push_back(fname);
    }
}
RpcValidTag::~RpcValidTag ( ) [virtual]

Definition at line 24 of file RpcValidTag.cc.

{
}

Member Function Documentation

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

Implements ITagBase.

Definition at line 28 of file RpcValidTag.cc.

{
    if ( event->m_det != 7 )  return false;  //not RPC event

    if ( m_fileNum != event->m_fileNum ) {
        m_fileNum = event->m_fileNum;
        std::vector<std::string>::iterator itf =
            std::find(m_vFlist.begin(), m_vFlist.end(), event->getFileName());
        m_notValid = (itf == m_vFlist.end());
    }
    return m_notValid;
}

Member Data Documentation

bool RpcValidTag::m_notValid [private]

Definition at line 18 of file RpcValidTag.h.

int RpcValidTag::m_fileNum [private]

Definition at line 19 of file RpcValidTag.h.

std::vector<std::string> RpcValidTag::m_vFlist [private]

Definition at line 20 of file RpcValidTag.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