]>
Commit | Line | Data |
---|---|---|
46906312 | 1 | //************************************************************************** |
2 | //* This file is property of and copyright by the ALICE HLT Project * | |
3 | //* ALICE Experiment at CERN, All rights reserved. * | |
4 | //* * | |
fde46e9e | 5 | //* Primary Authors: Oystein Djuvsland * |
46906312 | 6 | //* for The ALICE HLT Project. * |
7 | //* * | |
8 | //* Permission to use, copy, modify and distribute this software and its * | |
9 | //* documentation strictly for non-commercial purposes is hereby granted * | |
10 | //* without fee, provided that the above copyright notice appears in all * | |
11 | //* copies and that both the copyright notice and this permission notice * | |
12 | //* appear in the supporting documentation. The authors make no claims * | |
13 | //* about the suitability of this software for any purpose. It is * | |
14 | //* provided "as is" without express or implied warranty. * | |
15 | //************************************************************************** | |
16 | ||
17 | /// @file AliHLTTriggerDetectorGeom.cxx | |
18 | /// @author Oystein Djuvsland | |
19 | /// @date 2009-10-08 | |
20 | /// @brief HLT class describing simple geometry of (sub-)detectors. | |
c308d915 | 21 | /// Used for the AliHLTTriggerBarrelGeomMultiplicity class |
46906312 | 22 | |
23 | // see header file for class documentation | |
24 | // or | |
25 | // refer to README to build package | |
26 | // or | |
27 | // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt | |
28 | ||
29 | #include "AliHLTTriggerDetectorGeom.h" | |
1ecefac2 | 30 | #include <ostream> |
c308d915 | 31 | |
46906312 | 32 | /** ROOT macro for the implementation of ROOT specific class methods */ |
33 | ClassImp(AliHLTTriggerDetectorGeom) | |
34 | ||
c308d915 | 35 | AliHLTTriggerDetectorGeom::AliHLTTriggerDetectorGeom() |
46906312 | 36 | : TObject(), |
37 | fEtaMin(0), | |
38 | fEtaMax(0), | |
39 | fPhiMin(0), | |
40 | fPhiMax(0), | |
46906312 | 41 | fName('\0') |
42 | { | |
43 | // See header file for class documentation | |
44 | for(Int_t i = 0; i < 3; i++) | |
45 | { | |
46 | fInitalPoint[i] = 0; | |
47 | fNormVector[i] = 0; | |
48 | } | |
49 | } | |
50 | ||
51 | AliHLTTriggerDetectorGeom::~AliHLTTriggerDetectorGeom() | |
52 | { | |
53 | // See header file for class documentation | |
54 | } | |
55 | ||
1ecefac2 | 56 | void AliHLTTriggerDetectorGeom::SetInitialPoint(Double_t *point) |
46906312 | 57 | { |
58 | // See header file for class documentation | |
59 | for(int i = 0; i < 3; i++) | |
60 | { | |
61 | fInitalPoint[i] = point[i]; | |
62 | } | |
63 | } | |
64 | ||
21463652 | 65 | |
1ecefac2 | 66 | void AliHLTTriggerDetectorGeom::SetNormVector(Double_t *nVector) |
46906312 | 67 | { |
68 | // See header file for class documentation | |
69 | for(int i = 0; i < 3; i++) | |
70 | { | |
71 | fNormVector[i] = nVector[i]; | |
72 | } | |
73 | } | |
1ecefac2 | 74 | |
75 | void AliHLTTriggerDetectorGeom::GetInitialPoint(Double_t *point) | |
76 | { | |
c308d915 | 77 | // See header file for class documentation |
1ecefac2 | 78 | for(int i = 0; i < 3; i++) |
79 | { | |
80 | point[i] = fInitalPoint[i]; | |
81 | } | |
82 | } | |
83 | ||
c308d915 | 84 | void AliHLTTriggerDetectorGeom::GetNormVector(Double_t *vec) |
85 | { | |
86 | // See header file for class documentation | |
87 | for(int i = 0; i < 3; i++) | |
88 | { | |
89 | vec[i] = fNormVector[i]; | |
90 | } | |
91 | } | |
92 | ||
1ecefac2 | 93 | void AliHLTTriggerDetectorGeom::PrintDetectorGeom(std::ostream &out) |
94 | { | |
c308d915 | 95 | // See header file for class documentation |
96 | ||
1ecefac2 | 97 | out << "Name: " << fName << std::endl; |
98 | out << "Eta Min: " << fEtaMin << std::endl; | |
99 | out << "Eta Max: " << fEtaMax << std::endl; | |
100 | out << "Phi Min: " << fPhiMin << std::endl; | |
101 | out << "Phi Max: " << fPhiMax << std::endl; | |
fde46e9e | 102 | out << "Initial Point: {" << fInitalPoint[0] << ", " << fInitalPoint[1] << ", " << fInitalPoint[2] << "}" << std::endl; |
103 | out << "Normal Vector: {" << fNormVector[0] << ", " << fNormVector[1] << ", " << fNormVector[2] << "}" << std::endl; | |
1ecefac2 | 104 | } |
fde46e9e | 105 |