#include "hpario.h"
#include "hdetpario.h"
ClassImp(HParIo)
HParIo::HParIo() {
detParIoList= new TList();
autoWritable=kTRUE;
}
HParIo::~HParIo() {
if(detParIoList){
detParIoList->Delete();
delete detParIoList;
detParIoList=0;
}
}
void HParIo::setDetParIo(HDetParIo* detParIo) {
Text_t* detName=(Char_t*)detParIo->GetName();
if (!detParIoList->FindObject(detName)) detParIoList->Add(detParIo);
}
void HParIo::setInputNumber(Int_t num) {
TIter next(detParIoList);
HDetParIo* io;
while ((io=(HDetParIo*)next())) {
io->setInputNumber(num);
}
}
HDetParIo* HParIo::getDetParIo(const Text_t* detName) {
return ((HDetParIo*)detParIoList->FindObject(detName));
}
void HParIo::removeDetParIo(const Text_t* detName) {
TObject* p=detParIoList->FindObject(detName);
if (p) {
delete p;
p=0;
}
}
Last change: Sat May 22 13:06:24 2010
Last generated: 2010-05-22 13:06
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.