forked from wiechula/AliceO2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModule.cxx
More file actions
72 lines (58 loc) · 1.89 KB
/
Module.cxx
File metadata and controls
72 lines (58 loc) · 1.89 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
/// \file Module.cxx
/// \brief Implementation of the Module class
#include "Module.h"
#include <Riostream.h>
#include <TVirtualMC.h>
using std::endl;
using std::cout;
using std::fstream;
using std::ios;
using std::ostream;
using namespace AliceO2::Base;
ClassImp(AliceO2::Base::Module)
Float_t Module::mDensityFactor = 1.0;
Module::Module()
: FairModule()
{
}
Module::Module(const char* name, const char* title, Bool_t Active)
: FairModule(name, title, Active)
{
}
Module::~Module()
{
}
void Module::Material(Int_t imat, const char* name, Float_t a, Float_t z, Float_t dens,
Float_t radl, Float_t absl, Float_t* buf, Int_t nwbuf) const
{
TString uniquename = GetName();
uniquename.Append("_");
uniquename.Append(name);
// Check this!!!
gMC->Material(imat, uniquename.Data(), a, z, dens * mDensityFactor, radl, absl, buf, nwbuf);
}
void Module::Mixture(Int_t imat, const char* name, Float_t* a, Float_t* z, Float_t dens,
Int_t nlmat, Float_t* wmat) const
{
TString uniquename = GetName();
uniquename.Append("_");
uniquename.Append(name);
// Check this!!!
gMC->Mixture(imat, uniquename.Data(), a, z, dens * mDensityFactor, nlmat, wmat);
}
void Module::Medium(Int_t numed, const char* name, Int_t nmat, Int_t isvol, Int_t ifield,
Float_t fieldm, Float_t tmaxfd, Float_t stemax, Float_t deemax, Float_t epsil,
Float_t stmin, Float_t* ubuf, Int_t nbuf) const
{
TString uniquename = GetName();
uniquename.Append("_");
uniquename.Append(name);
// Check this!!!
gMC->Medium(numed, uniquename.Data(), nmat, isvol, ifield, fieldm, tmaxfd, stemax, deemax, epsil,
stmin, ubuf, nbuf);
}
void Module::Matrix(Int_t& nmat, Float_t theta1, Float_t phi1, Float_t theta2, Float_t phi2,
Float_t theta3, Float_t phi3) const
{
gMC->Matrix(nmat, theta1, phi1, theta2, phi2, theta3, phi3);
}