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

#include <FlasherTag.h>

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

List of all members.

Public Member Functions

 FlasherTag (const std::string &name)
virtual ~FlasherTag ()
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_ratioMaxQ_Cut
float m_quadrant_Cut
float m_2inchFlasher_Cut

Detailed Description

Definition at line 6 of file FlasherTag.h.


Constructor & Destructor Documentation

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

Definition at line 8 of file FlasherTag.cc.

    : ITagBase(name)
{
    setOption("ApplyVeto", m_veto=false);
    setOption("RatioMaxQCut", m_ratioMaxQ_Cut);
    setOption("Quadrantcut", m_quadrant_Cut);
    OptionParser::setOption(name, "calibPMTFlasherCut", m_2inchFlasher_Cut=0.);
}
virtual FlasherTag::~FlasherTag ( ) [inline, virtual]

Definition at line 10 of file FlasherTag.h.

{}

Member Function Documentation

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

Implements ITagBase.

Definition at line 17 of file FlasherTag.cc.

{
  //LogDebug << "in FlasherTag::tag()" << std::endl;
  if(event->isAD()) {
    if((event->m_quadrant/m_quadrant_Cut)*(event->m_quadrant/m_quadrant_Cut) +
        (event->m_maxQ/m_ratioMaxQ_Cut)*(event->m_maxQ/m_ratioMaxQ_Cut) > 1) {
      event->m_flasherTag = true;
      event->m_good = false;
    }

    // 2inch PMT flasher
    if(m_2inchFlasher_Cut!=0.) {
      if(event->m_maxQ_2inchPMT>m_2inchFlasher_Cut && event->energy() <20.) {
        event->m_good = false;
        event->m_2inchFlasherTag = true;
        LogDebug << "detector, ipmt, charge, energy : " << event->m_det << ", " << event->m_Column_2inchPMT << ", " << event->m_maxQ_2inchPMT << ", " <<event->energy()<< std::endl;;
      }
    }

    if(event->m_flasherTag || event->m_2inchFlasherTag) return m_veto;
  }

  return false;
}

Member Data Documentation

float FlasherTag::m_ratioMaxQ_Cut [private]

Definition at line 15 of file FlasherTag.h.

float FlasherTag::m_quadrant_Cut [private]

Definition at line 16 of file FlasherTag.h.

Definition at line 17 of file FlasherTag.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