uLib-0.2
Main Page
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Solid.h
Go to the documentation of this file.
1
/*//////////////////////////////////////////////////////////////////////////////
2
// CMT Cosmic Muon Tomography project //////////////////////////////////////////
4
5
Copyright (c) 2014, Universita' degli Studi di Padova, INFN sez. di Padova
6
All rights reserved
7
8
Authors: Andrea Rigoni Garola < andrea.rigoni@pd.infn.it >
9
10
------------------------------------------------------------------
11
This library is free software; you can redistribute it and/or
12
modify it under the terms of the GNU Lesser General Public
13
License as published by the Free Software Foundation; either
14
version 3.0 of the License, or (at your option) any later version.
15
16
This library is distributed in the hope that it will be useful,
17
but WITHOUT ANY WARRANTY; without even the implied warranty of
18
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19
Lesser General Public License for more details.
20
21
You should have received a copy of the GNU Lesser General Public
22
License along with this library.
23
25
26
27
28
#ifndef SOLID_H
29
#define SOLID_H
30
31
#include "Core/Object.h"
32
#include "Math/Dense.h"
33
#include "Math/TriangleMesh.h"
34
#include "Detectors/Matter.h"
35
36
class G4Material;
37
class G4LogicalVolume;
38
class G4TessellatedSolid;
39
40
41
namespace uLib {
42
43
class Solid : public Object {
44
public:
45
46
Solid();
47
Solid(const char *name);
48
49
void SetNistMaterial(const char *name);
50
51
void SetMaterial(G4Material *material);
52
53
uLibGetMacro(Material,G4Material *)
54
uLibGetMacro(Logical,G4LogicalVolume *)
55
56
protected:
57
G4Material *m_Material;
58
G4LogicalVolume *m_Logical;
59
};
60
61
62
63
64
65
class TessellatedSolid : public Solid {
66
typedef Solid BaseClass;
67
68
public:
69
TessellatedSolid(const char *name);
70
71
void SetMesh(TriangleMesh &mesh);
72
73
uLibGetMacro(Solid,G4TessellatedSolid *)
74
private:
75
G4TessellatedSolid *m_Solid;
76
};
77
78
79
80
81
}
82
83
84
85
86
#endif // SOLID_H
Detectors
Solid.h
Generated by
1.8.5