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

#include <AdEnergyAlg.h>

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

List of all members.

Public Member Functions

 AdEnergyAlg (const std::string &name)
virtual ~AdEnergyAlg ()
virtual bool initialize ()
virtual bool execute ()
virtual bool finalize ()
const std::string & name ()
SvcBaseservice (const std::string &name)
TOutputSvcntupleSvc ()
bool setOption (const std::string &option, Type &var)

Protected Attributes

std::string m_name

Private Attributes

PhyEventBufm_buffer
TNtuple * m_tuple

Detailed Description

Definition at line 8 of file AdEnergyAlg.h.


Constructor & Destructor Documentation

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

Definition at line 10 of file AdEnergyAlg.cc.

: AlgBase(name)
{
}
virtual AdEnergyAlg::~AdEnergyAlg ( ) [inline, virtual]

Definition at line 12 of file AdEnergyAlg.h.

{}

Member Function Documentation

bool AdEnergyAlg::initialize ( ) [virtual]

Implements AlgBase.

Definition at line 15 of file AdEnergyAlg.cc.

{
    m_buffer = dynamic_cast<PhyEventBuf*>(service("Cycler"));
    m_tuple = ntupleSvc()->bookNtuple("FILE1/AdEnergy", "AdEnergy", "det:energy:x:y:z");
    return true;
}
bool AdEnergyAlg::execute ( ) [virtual]

Implements AlgBase.

Definition at line 27 of file AdEnergyAlg.cc.

{

  // If bad event, return
  PhyEvent *event = m_buffer->curEvt();
  //if(!event->m_good) return true;
  if(!event->isAD()) return true;

  // If in muon veto window, return
  MuonVeto *muonVeto = MuonVeto::instance();
  if(muonVeto->veto(event)) return true;
  
  //cout << *event;
  m_tuple->Fill(event->m_det,event->m_energy,event->m_x,event->m_y,event->m_z);

  return true;
}
bool AdEnergyAlg::finalize ( ) [virtual]

Implements AlgBase.

Definition at line 22 of file AdEnergyAlg.cc.

{
  return true;
}

Member Data Documentation

Definition at line 19 of file AdEnergyAlg.h.

TNtuple* AdEnergyAlg::m_tuple [private]

Definition at line 20 of file AdEnergyAlg.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:46 for AdEnergyAlg by doxygen 1.7.4