FairGeoPipe.cxx 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /********************************************************************************
  2. * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
  3. * *
  4. * This software is distributed under the terms of the *
  5. * GNU Lesser General Public Licence version 3 (LGPL) version 3, *
  6. * copied verbatim in the file "LICENSE" *
  7. ********************************************************************************/
  8. //*-- AUTHOR : Ilse Koenig
  9. //*-- Created : 10/11/2003
  10. /////////////////////////////////////////////////////////////
  11. // FairGeoPipe
  12. //
  13. // Class for geometry of support structure
  14. //
  15. /////////////////////////////////////////////////////////////
  16. #include "FairGeoPipe.h"
  17. #include "FairGeoInterface.h" // for FairGeoInterface
  18. #include "FairGeoLoader.h" // for FairGeoLoader
  19. #include "TList.h" // for TList
  20. #include "TString.h" // for TString
  21. #include <string.h> // for strcpy
  22. class FairGeoBuilder;
  23. class TObject;
  24. ClassImp(FairGeoPipe)
  25. FairGeoPipe::FairGeoPipe()
  26. : FairGeoSet()
  27. {
  28. // Constructor
  29. fName="pipe";
  30. strcpy(modName,"p");
  31. strcpy(eleName,"p");
  32. maxSectors=0;
  33. maxModules=1;
  34. }
  35. Bool_t FairGeoPipe::create ( FairGeoBuilder* build )
  36. {
  37. Bool_t rc = FairGeoSet::create( build );
  38. if ( rc ) {
  39. FairGeoLoader* loader=FairGeoLoader::Instance();
  40. FairGeoInterface* GeoInterface =loader->getGeoInterface();
  41. GeoInterface->getMasterNodes()->Add( static_cast<TObject*>( getVolume("pipeCentral") ) );
  42. }
  43. return rc;
  44. }
  45. FairGeoPipe::~FairGeoPipe()
  46. {
  47. }