#include "muDilepEmulationSim.h"
#include "hdebug.h"
#include "hades.h"
#include "hcategory.h"
#include "hiterator.h"
#include "hruntimedb.h"
#include "hspectrometer.h"
#include "hevent.h"
#include "hmatchurich.h"
#include "hmatchutof.h"
#include "hmatchushower.h"
#include "hmuleptons.h"
#include "hmatrixcatiter.h"
#include "triggerinfodef.h"
#include "htriggerdetector.h"
#include "hlocation.h"
#include "hgeomvector.h"
#include "htriggerparmudilep.h"
#include "hmessagemgr.h"
HMUDilepEmulationSim::HMUDilepEmulationSim(void)
{
reset();
}
HMUDilepEmulationSim::HMUDilepEmulationSim(const Text_t *name,const Text_t *title)
: HMUDilepEmulation(name, title)
{
reset();
}
HMUDilepEmulationSim::~HMUDilepEmulationSim()
{
if(pEmuDiLeptons)
{
delete pEmuDiLeptons;
pEmuDiLeptons=NULL;
}
nEmuDiLeptons=0;
ptlHMULeptons=NULL;
ptlHMUEMUDiLeptons=NULL;
if (iterHMULeptons) delete iterHMULeptons;
iterHMULeptons=NULL;
if (iterHMULeptons2) delete iterHMULeptons2;
iterHMULeptons2=NULL;
}
Bool_t HMUDilepEmulationSim::init()
{
HSpectrometer *spec = gHades->getSetup();
HRuntimeDb *rtdb = gHades->getRuntimeDb();
HTriggerDetector * pTrigDet = (HTriggerDetector*)gHades->getSetup()->getDetector("Trigger");
if (pTrigDet)
{
if(!initParContainer(spec,rtdb))
{
return kFALSE;
}
}
INFO_msg(10,HMessageMgr::DET_TRIGGER,"dilep parameters initialized");
if((ptlHMULeptons=gHades->getCurrentEvent()->getCategory(catMUEMULeptons))==NULL) return kFALSE;
iterHMULeptons = (HIterator*)ptlHMULeptons->MakeIterator("native");
iterHMULeptons2 = (HIterator*)ptlHMULeptons->MakeIterator("native");
INFO_msg(10,HMessageMgr::DET_TRIGGER,"emuleptons inbput initialized");
ptlHMUEMUDiLeptons=gHades->getCurrentEvent()->getCategory(catMUEMUDiLeptons);
if(!ptlHMUEMUDiLeptons)
{
ptlHMUEMUDiLeptons=pTrigDet->buildLinearCat("HMUEMUDiLeptonsSim");
if (!ptlHMUEMUDiLeptons)
{
return kFALSE;
}
else
{
gHades->getCurrentEvent()->addCategory(catMUEMUDiLeptons, ptlHMUEMUDiLeptons, "EmuDiLeptons");
}
}
INFO_msg(10,HMessageMgr::DET_TRIGGER,"dilep output initialized");
return kTRUE;
}
Bool_t HMUDilepEmulationSim::finalize(void)
{
return kTRUE;
}
ClassImp(HMUDilepEmulationSim)
Last change: Sat May 22 12:59:11 2010
Last generated: 2010-05-22 12:59
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.