FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
27 class FairGeoBuilder;
28 class TObject;
29 
31 
33  : FairGeoSet()
34 {
35  // Constructor
36  fName = "pipe";
37  strcpy(modName, "p");
38  strcpy(eleName, "p");
39  maxSectors = 0;
40  maxModules = 1;
41 }
43 {
44  Bool_t rc = FairGeoSet::create(build);
45  if (rc) {
47  FairGeoInterface* GeoInterface = loader->getGeoInterface();
48 
49  GeoInterface->getMasterNodes()->Add(static_cast<TObject*>(getVolume("pipeCentral")));
50  }
51  return rc;
52 }
53 
virtual ~FairGeoPipe()
Definition: FairGeoPipe.cxx:54
FairGeoInterface * getGeoInterface()
Definition: FairGeoLoader.h:34
static FairGeoLoader * Instance()
TList * getMasterNodes()
virtual Bool_t create(FairGeoBuilder *)
Definition: FairGeoSet.cxx:452
ClassImp(FairEventBuilder)
Int_t maxSectors
Definition: FairGeoSet.h:55
FairGeoNode * getVolume(const char *name)
Definition: FairGeoSet.h:83
Int_t maxModules
Definition: FairGeoSet.h:57
Bool_t create(FairGeoBuilder *)
Definition: FairGeoPipe.cxx:42
char modName[2]
Definition: FairGeoPipe.h:20
char eleName[2]
Definition: FairGeoPipe.h:21