using namespace std;
#include <stdlib.h>
#include <iostream>
#include "hhypUserFunc.h"
#include "hypinfodef.h"
ClassImp(HHypUserFunc)
HHypUserFunc::HHypUserFunc(Char_t *name_i, Option_t par[])
:HHypBaseAlgorithm(name_i,par)
{
userfunc=NULL;
}
HHypUserFunc::~HHypUserFunc()
{
}
Bool_t HHypUserFunc::execute()
{
if(userfunc){
mylist->CombIteratorReset();
while (mylist->CombIterator())
{
userfunc(mylist,beam);
}
}
if (exitIdx > -1)
return kTRUE;
return kFALSE;
}
Bool_t HHypUserFunc::init()
{
if(!userfunc){
cerr << "Error in "<< algoName << ": userfunc is missing! " << endl;
return kFALSE;
}
if (!beam) {
cerr << "Error in "<< algoName << ": needs beam particle! " << endl;
return kFALSE;
}
return kTRUE;
}
Bool_t HHypUserFunc::reinit()
{
return kTRUE;
}
Bool_t HHypUserFunc::finalize()
{
return kTRUE;
}
Last change: Sat May 22 12:58:09 2010
Last generated: 2010-05-22 12:58
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.