BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
FairPipe.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/* Generated by Together */
9#include "FairPipe.h"
10
11#include "FairGeoBuilder.h" // for FairGeoBuilder
12#include "FairGeoInterface.h" // for FairGeoInterface
13#include "FairGeoLoader.h" // for FairGeoLoader
14#include "FairGeoMedia.h" // for FairGeoMedia
15
16#include <TGeoCompositeShape.h> // for TGeoCompositeShape
17#include <TGeoManager.h> // for TGeoManager, gGeoManager
18#include <TGeoMatrix.h> // for TGeoRotation
19#include <TGeoPcon.h> // for TGeoPcon
20#include <TGeoVolume.h> // for TGeoVolume, etc
21
22class FairGeoMedium;
23
25
27 : FairModule("FairPipe", "")
28{}
29
30FairPipe::FairPipe(const char* name, const char* title)
31 : FairModule(name, title)
32{}
33
35 : FairModule(rhs)
36{}
37
39{
40 TString fileName = GetGeometryFileName();
41 if (fileName.EndsWith(".geo"))
42 ConstructASCIIGeometry();
43 else if (fileName.EndsWith(".root"))
44 ConstructRootGeometry();
45 else
46 std::cout << "Geometry format not supported " << std::endl;
47}
48
50{
51 return new FairPipe(*this);
52}
virtual ~FairPipe()
Definition FairPipe.cxx:24
FairPipe(const char *name, const char *Title="PND Pipe")
Definition FairPipe.cxx:30
virtual void ConstructGeometry()
Definition FairPipe.cxx:38
virtual FairModule * CloneModule() const
Definition FairPipe.cxx:49
Bool_t EndsWith(const char *pat, ECaseCompare cmp=kExact) const