FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MyCave.cxx
Go to the documentation of this file.
1 
2 /********************************************************************************
3  * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
4  * *
5  * This software is distributed under the terms of the *
6  * GNU Lesser General Public Licence (LGPL) version 3, *
7  * copied verbatim in the file "LICENSE" *
8  ********************************************************************************/
9 
10 // -------------------------------------------------------------------------
11 // ----- MyCave file -----
12 // ----- Created 26/03/14 by M. Al-Turany -----
13 // -------------------------------------------------------------------------
14 #include "MyCave.h"
15 
16 #include "FairGeoInterface.h" // for FairGeoInterface
17 #include "FairGeoLoader.h" // for FairGeoLoader
18 #include "FairGeoNode.h" // for FairGeoNode
19 #include "FairGeoVolume.h" // for FairGeoVolume
20 #include "FairRun.h" // for FairRun
21 #include "FairRuntimeDb.h" // for FairRuntimeDb
22 #include "MyGeoCave.h" // for MyGeoCave
23 
24 #include <TList.h> // for TListIter, TList (ptr only)
25 #include <TObjArray.h> // for TObjArray
26 #include <TString.h> // for TString
27 #include <stddef.h> // for NULL
28 
30 
32 {
34  FairGeoInterface* GeoInterface = loader->getGeoInterface();
35  MyGeoCave* MGeo = new MyGeoCave();
37  GeoInterface->addGeoModule(MGeo);
38  Bool_t rc = GeoInterface->readSet(MGeo);
39  if (rc) {
40  MGeo->create(loader->getGeoBuilder());
41  }
42 }
44  : FairModule()
45 {}
46 
48 MyCave::MyCave(const char* name, const char* Title)
49  : FairModule(name, Title)
50 {
51  world[0] = 0;
52  world[1] = 0;
53  world[2] = 0;
54 }
55 
56 MyCave::MyCave(const MyCave& right)
57  : FairModule(right)
58 {
59  world[0] = right.world[0];
60  world[1] = right.world[1];
61  world[2] = right.world[2];
62 }
63 
64 FairModule* MyCave::CloneModule() const { return new MyCave(*this); }
Bool_t readSet(FairGeoSet *)
MyCave()
Definition: MyCave.cxx:43
FairGeoInterface * getGeoInterface()
Definition: FairGeoLoader.h:34
static FairGeoLoader * Instance()
virtual FairModule * CloneModule() const
Definition: MyCave.cxx:64
void addGeoModule(FairGeoSet *)
virtual Bool_t create(FairGeoBuilder *)
Definition: FairGeoSet.cxx:452
ClassImp(FairEventBuilder)
virtual void ConstructGeometry()
Definition: MyCave.cxx:31
virtual ~MyCave()
Definition: MyCave.cxx:47
FairGeoBuilder * getGeoBuilder()
Definition: FairGeoLoader.h:35
void setGeomFile(const char *filename)
Definition: FairGeoSet.h:75
virtual TString GetGeometryFileName()
Definition: FairModule.h:60
Definition: MyCave.h:21