]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/trigger/AliHLTTriggerDetectorGeom.cxx
Fix typo in docu
[u/mrichter/AliRoot.git] / HLT / trigger / AliHLTTriggerDetectorGeom.cxx
1 //**************************************************************************
2 //* This file is property of and copyright by the ALICE HLT Project        * 
3 //* ALICE Experiment at CERN, All rights reserved.                         *
4 //*                                                                        *
5 //* Primary Authors: Oystein Djuvsland                                     *
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.
21 ///         Used for the AliHLTTriggerBarrelGeomMultiplicity class
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"
30 #include <ostream>
31
32 /** ROOT macro for the implementation of ROOT specific class methods */
33 ClassImp(AliHLTTriggerDetectorGeom)
34
35 AliHLTTriggerDetectorGeom::AliHLTTriggerDetectorGeom()
36 : TObject(),
37   fEtaMin(0),
38   fEtaMax(0),
39   fPhiMin(0),
40   fPhiMax(0),
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
56 void AliHLTTriggerDetectorGeom::SetInitialPoint(Double_t *point)
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
65
66 void AliHLTTriggerDetectorGeom::SetNormVector(Double_t *nVector)
67 {
68   // See header file for class documentation
69   for(int i = 0; i < 3; i++)
70     {
71       fNormVector[i] = nVector[i];
72     }
73 }
74
75 void AliHLTTriggerDetectorGeom::GetInitialPoint(Double_t *point)
76 {
77   // See header file for class documentation
78   for(int i = 0; i < 3; i++)
79     {
80       point[i] = fInitalPoint[i];
81     }
82 }
83
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
93 void AliHLTTriggerDetectorGeom::PrintDetectorGeom(std::ostream &out)
94 {
95   // See header file for class documentation
96
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;
102   out << "Initial Point: {" << fInitalPoint[0] << ", " << fInitalPoint[1] << ", " << fInitalPoint[2] << "}" << std::endl; 
103   out << "Normal Vector: {" << fNormVector[0] << ", " << fNormVector[1] << ", " << fNormVector[2] << "}" << std::endl; 
104 }
105