1 //**************************************************************************
2 //* This file is property of and copyright by the ALICE HLT Project *
3 //* ALICE Experiment at CERN, All rights reserved. *
5 //* Primary Authors: Oystein Djuvsland *
6 //* for The ALICE HLT Project. *
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 //**************************************************************************
17 /// @file AliHLTTriggerDetectorGeom.cxx
18 /// @author Oystein Djuvsland
20 /// @brief HLT class describing simple geometry of (sub-)detectors.
21 /// Used for the AliHLTTriggerBarrelGeomMultiplicity class
23 // see header file for class documentation
25 // refer to README to build package
27 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
29 #include "AliHLTTriggerDetectorGeom.h"
32 /** ROOT macro for the implementation of ROOT specific class methods */
33 ClassImp(AliHLTTriggerDetectorGeom)
35 AliHLTTriggerDetectorGeom::AliHLTTriggerDetectorGeom()
43 // See header file for class documentation
44 for(Int_t i = 0; i < 3; i++)
51 AliHLTTriggerDetectorGeom::~AliHLTTriggerDetectorGeom()
53 // See header file for class documentation
56 void AliHLTTriggerDetectorGeom::SetInitialPoint(Double_t *point)
58 // See header file for class documentation
59 for(int i = 0; i < 3; i++)
61 fInitalPoint[i] = point[i];
66 void AliHLTTriggerDetectorGeom::SetNormVector(Double_t *nVector)
68 // See header file for class documentation
69 for(int i = 0; i < 3; i++)
71 fNormVector[i] = nVector[i];
75 void AliHLTTriggerDetectorGeom::GetInitialPoint(Double_t *point)
77 // See header file for class documentation
78 for(int i = 0; i < 3; i++)
80 point[i] = fInitalPoint[i];
84 void AliHLTTriggerDetectorGeom::GetNormVector(Double_t *vec)
86 // See header file for class documentation
87 for(int i = 0; i < 3; i++)
89 vec[i] = fNormVector[i];
93 void AliHLTTriggerDetectorGeom::PrintDetectorGeom(std::ostream &out)
95 // See header file for class documentation
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;