forked from AliceO2Group/AliceO2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCave.cxx
More file actions
82 lines (66 loc) · 2.2 KB
/
Copy pathCave.cxx
File metadata and controls
82 lines (66 loc) · 2.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/********************************************************************************
* Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* *
* This software is distributed under the terms of the *
* GNU Lesser General Public Licence version 3 (LGPL) version 3, *
* copied verbatim in the file "LICENSE" *
********************************************************************************/
// -------------------------------------------------------------------------
// ----- Cave file -----
// ----- Created 26/03/14 by M. Al-Turany -----
// -------------------------------------------------------------------------
#include "Cave.h"
#include "FairGeoInterface.h" // for FairGeoInterface
#include "FairGeoLoader.h" // for FairGeoLoader
#include "GeoCave.h" // for GeoCave
#include "TString.h" // for TString
#include <stddef.h> // for NULL
using namespace AliceO2::Passive;
ClassImp(AliceO2::Passive::Cave)
void Cave::ConstructGeometry()
{
FairGeoLoader* loader=FairGeoLoader::Instance();
FairGeoInterface* GeoInterface =loader->getGeoInterface();
GeoCave* MGeo=new GeoCave();
MGeo->setGeomFile(GetGeometryFileName());
GeoInterface->addGeoModule(MGeo);
Bool_t rc = GeoInterface->readSet(MGeo);
if ( rc ) { MGeo->create(loader->getGeoBuilder()); }
}
Cave::Cave()
:FairModule()
{
}
Cave::~Cave()
{
}
Cave::Cave(const char* name, const char* Title)
: FairModule(name ,Title)
{
mWorld[0] = 0;
mWorld[1] = 0;
mWorld[2] = 0;
}
Cave::Cave(const Cave& rhs)
: FairModule(rhs)
{
mWorld[0] = rhs.mWorld[0];
mWorld[1] = rhs.mWorld[1];
mWorld[2] = rhs.mWorld[2];
}
Cave& Cave::operator=(const Cave& rhs)
{
// self assignment
if (this == &rhs) return *this;
// base class assignment
FairModule::operator=(rhs);
// assignment operator
mWorld[0] = rhs.mWorld[0];
mWorld[1] = rhs.mWorld[1];
mWorld[2] = rhs.mWorld[2];
return *this;
}
FairModule* Cave::CloneModule() const
{
return new Cave(*this);
}