R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3BModule.h
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (C) 2009 GSI Helmholtzzentrum für Schwerionenforschung GmbH *
3 * Copyright (C) 2009-2026 Members of R3B Collaboration *
4 * *
5 * This software is distributed under the terms of the *
6 * GNU General Public Licence (GPL) version 3, *
7 * copied verbatim in the file "LICENSE". *
8 * *
9 * In applying this license GSI does not waive the privileges and immunities *
10 * granted to it by virtue of its status as an Intergovernmental Organization *
11 * or submit itself to any jurisdiction. *
12 ******************************************************************************/
13
14#pragma once
15
16#include <FairModule.h>
17#include <TGeoMatrix.h>
18#include <TString.h>
19
20class R3BModule : public FairModule
21{
22 public:
23 R3BModule();
24
25 R3BModule(const TString& name, const TString& title, const Bool_t active = kFALSE);
26
27 R3BModule(const TString& name,
28 const TString& title,
29 const Bool_t active,
30 const TString& geoFile,
31 const TGeoTranslation& trans,
32 const TGeoRotation& rot = TGeoRotation());
33
34 R3BModule(const TString& name,
35 const TString& title,
36 const Bool_t active,
37 const TString& geoFile,
38 const TGeoCombiTrans& combi = TGeoCombiTrans());
39
41 virtual void ConstructGeometry() override;
42 virtual void ConstructRootGeometry(TGeoMatrix* p = nullptr) override;
43
45 virtual void SetPosition(const TGeoTranslation& trans) { fCombiTrans.SetTranslation(trans); }
46
48 virtual void SetRotation(const TGeoRotation& rot) { fCombiTrans.SetRotation(rot); }
49
50 protected:
51 TGeoCombiTrans fCombiTrans;
52
53 public:
55};
virtual void ConstructGeometry() override
Construct geometry from root files.
Definition R3BModule.cxx:49
TGeoCombiTrans fCombiTrans
Definition R3BModule.h:51
virtual void ConstructRootGeometry(TGeoMatrix *p=nullptr) override
Definition R3BModule.cxx:58
ClassDefOverride(R3BModule, 3)
virtual void SetRotation(const TGeoRotation &rot)
Method to setup the rotation of the detector.
Definition R3BModule.h:48
virtual void SetPosition(const TGeoTranslation &trans)
Method to setup the position of the detector-origin.
Definition R3BModule.h:45