1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- /********************************************************************************
- * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
- * *
- * This software is distributed under the terms of the *
- * GNU Lesser General Public Licence version 3 (LGPL) version 3, *
- * copied verbatim in the file "LICENSE" *
- ********************************************************************************/
- //*-- AUTHOR : Ilse Koenig
- //*-- Created : 10/11/2003
- /////////////////////////////////////////////////////////////
- // FairGeoPipe
- //
- // Class for geometry of support structure
- //
- /////////////////////////////////////////////////////////////
- #include "FairGeoPipe.h"
- #include "FairGeoInterface.h" // for FairGeoInterface
- #include "FairGeoLoader.h" // for FairGeoLoader
- #include "TList.h" // for TList
- #include "TString.h" // for TString
- #include <string.h> // for strcpy
- class FairGeoBuilder;
- class TObject;
- ClassImp(FairGeoPipe)
- FairGeoPipe::FairGeoPipe()
- : FairGeoSet()
- {
- // Constructor
- fName="pipe";
- strcpy(modName,"p");
- strcpy(eleName,"p");
- maxSectors=0;
- maxModules=1;
- }
- Bool_t FairGeoPipe::create ( FairGeoBuilder* build )
- {
- Bool_t rc = FairGeoSet::create( build );
- if ( rc ) {
- FairGeoLoader* loader=FairGeoLoader::Instance();
- FairGeoInterface* GeoInterface =loader->getGeoInterface();
- GeoInterface->getMasterNodes()->Add( static_cast<TObject*>( getVolume("pipeCentral") ) );
- }
- return rc;
- }
- FairGeoPipe::~FairGeoPipe()
- {
- }
|