-
Eoin Clerkin authored
Decision to not use doxygen for licence headers. Removes doxygen formatting and file tag.
Eoin Clerkin authoredDecision to not use doxygen for licence headers. Removes doxygen formatting and file tag.
CbmGeoPassivePar.cxx 1.13 KiB
/* Copyright (C) 2005-2012 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
SPDX-License-Identifier: GPL-3.0-only
Authors: Denis Bertini [committer], Florian Uhlig, Mohammad Al-Turany */
#include "CbmGeoPassivePar.h"
#include "FairParamList.h"
#include "TObjArray.h"
ClassImp(CbmGeoPassivePar)
CbmGeoPassivePar::CbmGeoPassivePar(const char* name, const char* title, const char* context)
: FairParGenericSet(name, title, context)
, fGeoSensNodes(new TObjArray())
, fGeoPassNodes(new TObjArray())
{
}
CbmGeoPassivePar::~CbmGeoPassivePar(void) {}
void CbmGeoPassivePar::clear(void)
{
if (fGeoSensNodes) delete fGeoSensNodes;
if (fGeoPassNodes) delete fGeoPassNodes;
}
void CbmGeoPassivePar::putParams(FairParamList* l)
{
if (!l) return;
l->addObject("FairGeoNodes Sensitive List", fGeoSensNodes);
l->addObject("FairGeoNodes Passive List", fGeoPassNodes);
}
Bool_t CbmGeoPassivePar::getParams(FairParamList* l)
{
if (!l) return kFALSE;
if (!l->fillObject("FairGeoNodes Sensitive List", fGeoSensNodes)) return kFALSE;
if (!l->fillObject("FairGeoNodes Passive List", fGeoPassNodes)) return kFALSE;
return kTRUE;
}