R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3BAladinMagnet.cxx
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#include "R3BAladinMagnet.h"
15#include "FairLogger.h"
16
17const Double_t __ALADIN_POS_DX = 0.;
18const Double_t __ALADIN_POS_DY = 0.;
19const Double_t __ALADIN_POS_DZ = 350. - 95.;
20const Double_t __ALADIN_ROT = +7.;
21const TString __ALADIN_NAME = "Aladin Magnet";
22
24 // NOTE: Delegate Constructor, such that geometry operations are set up.
25 : R3BAladinMagnet("")
26{
27}
28
29R3BAladinMagnet::R3BAladinMagnet(const TString& geoFile)
32 kFALSE,
33 geoFile,
35 { "", -90., __ALADIN_ROT, 90. })
36{
37}
38
39void R3BAladinMagnet::SetPosition(const TGeoTranslation&)
40{
41 LOG(fatal) << "Moving " << GetName() << " (which is a " << ClassName() << ") is not allowed!";
42}
43
44void R3BAladinMagnet::SetRotation(const TGeoRotation&)
45{
46 LOG(fatal) << "Rotating " << GetName() << " (which is a " << ClassName() << ") is not allowed!";
47}
48
const Double_t __ALADIN_POS_DX
const TString __ALADIN_NAME
const Double_t __ALADIN_POS_DZ
const Double_t __ALADIN_ROT
const Double_t __ALADIN_POS_DY
ClassImp(R3B::Neuland::Cal2HitPar)
void SetPosition(const TGeoTranslation &)
Method to setup the position of the detector-origin.
void SetRotation(const TGeoRotation &)
Method to setup the rotation of the detector.