using namespace std;
#include "hmdctrackgcontfact.h"
#include "hruntimedb.h"
#include "hparset.h"
#include "hparamlist.h"
#include "hcontfact.h"
#include "hmdctrackgcorrpar.h"
#include "hmdctrackgfieldpar.h"
#include "hmetamatchpar.h"
#include "henergylosscorrpar.h"
#include <iostream>
#include <iomanip>
ClassImp(HMdcTrackGContFact)
static HMdcTrackGContFact gHMdcTrackGContFact;
HMdcTrackGContFact::HMdcTrackGContFact() {
fName ="MdcTrackGContFact";
fTitle="Factory for parameter containers in libMdcTrackG";
setAllContainers();
HRuntimeDb::instance()->addContFactory(this);
}
void HMdcTrackGContFact::setAllContainers() {
containers->Add(new HContainer("MdcTrackGCorrPar",
"parameters for Splinemomentum fit",
"MdcTrackGCorrParProduction"));
containers->Add(new HContainer("MdcTrackGFieldPar",
"Fieldmap",
"MdcTrackGFieldParProduction"));
HContainer* cm=new HContainer("MetaMatchPar",
"Parameters for HMetaMatchF",
"MetaMatchProductionCuts");
cm->addContext("MetaMatchSharpCuts");
cm->addContext("MetaMatchWideCuts");
containers->Add(cm);
containers->Add(new HContainer("EnergyLossCorrPar",
"Energy losses correction parameters",
"EnergyLossCorrParProduction"));
}
HParSet* HMdcTrackGContFact::createContainer(HContainer* c) {
const Char_t* name=c->GetName();
if (strcmp(name,"MdcTrackGCorrPar")==0)
return new HMdcTrackGCorrPar(c->getConcatName().Data(),c->GetTitle(),c->getContext());
if (strcmp(name,"MdcTrackGFieldPar")==0)
return new HMdcTrackGFieldPar(c->getConcatName().Data(),c->GetTitle(),c->getContext());
if (strcmp(name,"MetaMatchPar")==0)
return new HMetaMatchPar(c->getConcatName().Data(),c->GetTitle(),c->getContext());
if (strcmp(name,"EnergyLossCorrPar")==0)
return new HEnergyLossCorrPar(c->getConcatName().Data(),c->GetTitle(),c->getContext());
return 0;
}
Last change: Sat May 22 13:04:03 2010
Last generated: 2010-05-22 13:04
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.