ATTPCROOT  0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
AtCave.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 version 3 (LGPL) version 3, *
7  * copied verbatim in the file "LICENSE" *
8  ********************************************************************************/
9 
10 // -------------------------------------------------------------------------
11 // ----- AtCave file -----
12 // ----- Created 26/03/14 by M. Al-Turany -----
13 // -------------------------------------------------------------------------
14 #include "AtCave.h"
15 
16 #include "AtGeoCave.h" // for AtGeoCave
17 
18 #include <FairGeoInterface.h> // for FairGeoInterface
19 #include <FairGeoLoader.h> // for FairGeoLoader
20 #include <FairModule.h>
21 
22 #include <Rtypes.h>
23 #include <TString.h> // for TString
24 
26 
28 {
29  FairGeoLoader *loader = FairGeoLoader::Instance();
30  FairGeoInterface *GeoInterface = loader->getGeoInterface();
31  auto *MGeo = new AtGeoCave(); // NOLINT I have no idea who owns this...
32  MGeo->setGeomFile(GetGeometryFileName());
33  GeoInterface->addGeoModule(MGeo);
34  Bool_t rc = GeoInterface->readSet(MGeo);
35  if (rc) {
36  MGeo->create(loader->getGeoBuilder());
37  }
38 }
39 AtCave::AtCave() : FairModule() {}
40 
41 AtCave::~AtCave() = default;
42 AtCave::AtCave(const char *name, const char *Title) : FairModule(name, Title)
43 {
44  world[0] = 0;
45  world[1] = 0;
46  world[2] = 0;
47 }
AtCave::AtCave
AtCave()
Definition: AtCave.cxx:39
AtCave.h
AtGeoCave
Definition: AtGeoCave.h:33
AtCave
Definition: AtCave.h:25
ClassImp
ClassImp(AtCave)
AtCave::ConstructGeometry
virtual void ConstructGeometry()
Definition: AtCave.cxx:27
AtGeoCave.h
AtCave::~AtCave
virtual ~AtCave()