CbmRoot
CbmPipe.cxx
Go to the documentation of this file.
1
/* Generated by Together */
2
#include "
CbmPipe.h
"
3
4
#include "
CbmGeometryUtils.h
"
5
6
#include <TString.h>
7
8
#include "TObjArray.h"
9
10
#include "TFile.h"
11
#include "TGeoManager.h"
12
#include "TKey.h"
13
14
15
// ----- Default constructor ------------------------------------------------
16
CbmPipe::CbmPipe
() : FairModule(), fCombiTrans(), fVolumeName(
""
) {}
17
// ----------------------------------------------------------------------------
18
19
20
// ----- Constructor --------------------------------------------------------
21
CbmPipe::CbmPipe
(
const
char
* name,
const
char
* title)
22
: FairModule(name, title), fCombiTrans(), fVolumeName(
""
) {}
23
// ----------------------------------------------------------------------------
24
25
26
// ----- Destructor ---------------------------------------------------------
27
CbmPipe::~CbmPipe
() {}
28
// ----------------------------------------------------------------------------
29
30
31
// ----- ConstructGeometry --------------------------------------------------
32
void
CbmPipe::ConstructGeometry
() {
33
TString fileName = GetGeometryFileName();
34
if
(fileName.EndsWith(
".root"
)) {
35
if
(
Cbm::GeometryUtils::IsNewGeometryFile
(fgeoName)) {
36
LOG(info) <<
"Importing Pipe geometry from ROOT file "
<< fgeoName.Data();
37
Cbm::GeometryUtils::ImportRootGeometry
(fgeoName,
this
);
38
}
else
{
39
LOG(info) <<
"Constructing Pipe geometry from ROOT file "
40
<< fgeoName.Data();
41
FairModule::ConstructRootGeometry();
42
}
43
}
else
44
LOG(fatal) <<
"Geometry format of PIPE file "
<< fileName.Data()
45
<<
" not supported."
;
46
}
47
// ----------------------------------------------------------------------------
48
49
ClassImp
(
CbmPipe
)
CbmPipe.h
CbmPipe
Definition:
CbmPipe.h:9
CbmPipe::~CbmPipe
virtual ~CbmPipe()
Definition:
CbmPipe.cxx:27
Cbm::GeometryUtils::IsNewGeometryFile
Bool_t IsNewGeometryFile(TString &filename)
Definition:
CbmGeometryUtils.cxx:133
CbmPipe::ConstructGeometry
virtual void ConstructGeometry()
Definition:
CbmPipe.cxx:32
ClassImp
ClassImp(CbmConverterManager) InitStatus CbmConverterManager
Definition:
CbmConverterManager.cxx:12
Cbm::GeometryUtils::ImportRootGeometry
void ImportRootGeometry(TString &filename, FairModule *mod, TGeoMatrix *mat)
Definition:
CbmGeometryUtils.cxx:140
CbmPipe::CbmPipe
CbmPipe()
Definition:
CbmPipe.cxx:16
CbmGeometryUtils.h
sim
passive
CbmPipe.cxx
Generated on Wed Oct 28 2020 15:11:43 for CbmRoot by
1.8.18