BmnRoot
Loading...
Searching...
No Matches
FairGeoPipe.cxx
Go to the documentation of this file.
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 (LGPL) version 3, *
6 * copied verbatim in the file "LICENSE" *
7 ********************************************************************************/
8//*-- AUTHOR : Ilse Koenig
9//*-- Created : 10/11/2003
10
12// FairGeoPipe
13//
14// Class for geometry of support structure
15//
17#include "FairGeoPipe.h"
18
19#include "FairGeoInterface.h" // for FairGeoInterface
20#include "FairGeoLoader.h" // for FairGeoLoader
21#include "FairGeoNode.h" // for FairGeoNode
22
23#include <TList.h> // for TList
24#include <TString.h> // for TString
25#include <string.h> // for strcpy
26
27class FairGeoBuilder;
28class TObject;
29
31 : FairGeoSet()
32{
33 // Constructor
34 fName = "pipe";
35 strcpy(modName, "p");
36 strcpy(eleName, "p");
37 maxSectors = 0;
38 maxModules = 1;
39}
40Bool_t FairGeoPipe::create(FairGeoBuilder* build)
41{
42 Bool_t rc = FairGeoSet::create(build);
43 if (rc) {
44 FairGeoLoader* loader = FairGeoLoader::Instance();
45 FairGeoInterface* GeoInterface = loader->getGeoInterface();
46
47 GeoInterface->getMasterNodes()->Add(static_cast<TObject*>(getVolume("pipeCentral")));
48 }
49 return rc;
50}
51
virtual ~FairGeoPipe()
char modName[2]
Definition FairGeoPipe.h:20
Bool_t create(FairGeoBuilder *)
char eleName[2]
Definition FairGeoPipe.h:21