BmnRoot
Loading...
Searching...
No Matches
FairPassiveDet.cxx
Go to the documentation of this file.
1/* Generated by Together */
2#include "FairPassiveDet.h"
3
4#include "FairGeoBuilder.h" // for FairGeoBuilder
5#include "FairGeoInterface.h" // for FairGeoInterface
6#include "FairGeoLoader.h" // for FairGeoLoader
7#include "FairGeoMedia.h" // for FairGeoMedia
8
9#include <TGeoCompositeShape.h> // for TGeoCompositeShape
10#include <TGeoManager.h> // for TGeoManager, gGeoManager
11#include <TGeoMatrix.h> // for TGeoRotation
12#include <TGeoPcon.h> // for TGeoPcon
13#include <TGeoVolume.h> // for TGeoVolume, etc
14
15class FairGeoMedium;
16
18
20 : FairModule("FairPassiveDet", "")
21{}
22
23FairPassiveDet::FairPassiveDet(const char* name, const char* title)
24 : FairModule(name, title)
25{}
26
28 : FairModule(rhs)
29{}
30
32{
33 TString fileName = GetGeometryFileName();
34 if (fileName.EndsWith(".geo"))
35 ConstructASCIIGeometry();
36 else if (fileName.EndsWith(".root"))
37 ConstructRootGeometry();
38 else
39 std::cout << "Geometry format not supported " << std::endl;
40}
41
42FairModule* FairPassiveDet::CloneModule() const
43{
44 return new FairPassiveDet(*this);
45}
virtual FairModule * CloneModule() const
virtual void ConstructGeometry()
virtual ~FairPassiveDet()