R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3BModule.h
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (C) 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH *
3 * Copyright (C) 2019-2025 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#ifndef R3BMODULE_H
15#define R3BMODULE_H
16
17#include "FairModule.h"
18#include "TGeoMatrix.h"
19#include "TString.h"
20
21class R3BModule : public FairModule
22{
23 public:
24 R3BModule();
25
26 R3BModule(const TString& name, const TString& title, const Bool_t active = kFALSE);
27
28 R3BModule(const TString& name,
29 const TString& title,
30 const Bool_t active,
31 const TString& geoFile,
32 const TGeoTranslation& trans,
33 const TGeoRotation& rot = TGeoRotation());
34
35 R3BModule(const TString& name,
36 const TString& title,
37 const Bool_t active,
38 const TString& geoFile,
39 const TGeoCombiTrans& combi = TGeoCombiTrans());
40
42 virtual void ConstructGeometry() override;
43 virtual void ConstructRootGeometry(TGeoMatrix* p = nullptr) override;
44
46 virtual void SetPosition(const TGeoTranslation& trans) { fCombiTrans.SetTranslation(trans); }
47
49 virtual void SetRotation(const TGeoRotation& rot) { fCombiTrans.SetRotation(rot); }
50
51 protected:
52 TGeoCombiTrans fCombiTrans;
53
54 // ClassDef(R3BModule, 3)
55 ClassDefOverride(R3BModule, 3)
56};
57
58#endif // R3BMODULE_H
virtual void ConstructGeometry() override
Construct geometry from root files.
Definition R3BModule.cxx:49
TGeoCombiTrans fCombiTrans
Definition R3BModule.h:52
virtual void ConstructRootGeometry(TGeoMatrix *p=nullptr) override
Definition R3BModule.cxx:58
virtual void SetRotation(const TGeoRotation &rot)
Method to setup the rotation of the detector.
Definition R3BModule.h:49
virtual void SetPosition(const TGeoTranslation &trans)
Method to setup the position of the detector-origin.
Definition R3BModule.h:46